msm-pcm-routing-v2.c 970 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513
  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 int0_mi2s_switch_enable;
  53. static int int4_mi2s_switch_enable;
  54. static int pri_mi2s_switch_enable;
  55. static int sec_mi2s_switch_enable;
  56. static int tert_mi2s_switch_enable;
  57. static int quat_mi2s_switch_enable;
  58. static int quin_mi2s_switch_enable;
  59. static int fm_pcmrx_switch_enable;
  60. static int usb_switch_enable;
  61. static int lsm_port_index;
  62. static int slim0_rx_aanc_fb_port;
  63. static int msm_route_ec_ref_rx;
  64. static int msm_ec_ref_ch = 4;
  65. static int msm_ec_ref_ch_downmixed = 4;
  66. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  67. static int msm_ec_ref_sampling_rate = 48000;
  68. static uint32_t voc_session_id = ALL_SESSION_VSID;
  69. static int msm_route_ext_ec_ref;
  70. static bool is_custom_stereo_on;
  71. static bool is_ds2_on;
  72. static bool swap_ch;
  73. static int aanc_level;
  74. static int num_app_cfg_types;
  75. static int msm_ec_ref_port_id;
  76. #define WEIGHT_0_DB 0x4000
  77. /* all the FEs which can support channel mixer */
  78. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  79. /* all the FES which can support channel mixer for bidirection */
  80. static struct msm_pcm_channel_mixer
  81. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  82. /* input BE for each FE */
  83. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  84. enum {
  85. MADNONE,
  86. MADAUDIO,
  87. MADBEACON,
  88. MADULTRASOUND,
  89. MADSWAUDIO,
  90. };
  91. #define ADM_LSM_PORT_INDEX 9
  92. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  93. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  94. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  95. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  96. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  97. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  98. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  99. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  100. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  101. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  102. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  103. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  104. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  105. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  106. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  107. #define LSM_FUNCTION_TEXT "LSM Function"
  108. static const char * const lsm_port_text[] = {
  109. "None",
  110. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  111. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  112. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  113. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  114. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  115. };
  116. struct msm_pcm_route_bdai_pp_params {
  117. u16 port_id; /* AFE port ID */
  118. unsigned long pp_params_config;
  119. bool mute_on;
  120. int latency;
  121. };
  122. static struct msm_pcm_route_bdai_pp_params
  123. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  124. {HDMI_RX, 0, 0, 0},
  125. {DISPLAY_PORT_RX, 0, 0, 0},
  126. };
  127. /*
  128. * The be_dai_name_table is passed to HAL so that it can specify the
  129. * BE ID for the BE it wants to enable based on the name. Thus there
  130. * is a matching table and structure in HAL that need to be updated
  131. * if any changes to these are made.
  132. */
  133. struct msm_pcm_route_bdai_name {
  134. unsigned int be_id;
  135. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  136. };
  137. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  138. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  139. int fe_id);
  140. static void msm_routing_load_topology(size_t data_size, void *data);
  141. static void msm_routing_unload_topology(uint32_t topology_id);
  142. static int msm_routing_get_bit_width(unsigned int format)
  143. {
  144. int bit_width;
  145. switch (format) {
  146. case SNDRV_PCM_FORMAT_S32_LE:
  147. bit_width = 32;
  148. break;
  149. case SNDRV_PCM_FORMAT_S24_LE:
  150. case SNDRV_PCM_FORMAT_S24_3LE:
  151. bit_width = 24;
  152. break;
  153. case SNDRV_PCM_FORMAT_S16_LE:
  154. default:
  155. bit_width = 16;
  156. }
  157. return bit_width;
  158. }
  159. static bool msm_is_resample_needed(int input_sr, int output_sr)
  160. {
  161. bool rc = false;
  162. if (input_sr != output_sr)
  163. rc = true;
  164. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  165. (rc ? "oh yes" : "not really"),
  166. input_sr, output_sr);
  167. return rc;
  168. }
  169. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  170. int channels)
  171. {
  172. int rc = 0;
  173. switch (topology) {
  174. case SRS_TRUMEDIA_TOPOLOGY_ID:
  175. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  176. msm_dts_srs_tm_init(port_id, copp_idx);
  177. break;
  178. case DS2_ADM_COPP_TOPOLOGY_ID:
  179. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  180. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  185. __func__, topology, port_id,
  186. is_custom_stereo_on, rc);
  187. break;
  188. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  189. if (is_ds2_on) {
  190. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  191. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  192. is_custom_stereo_on);
  193. if (rc < 0)
  194. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  195. __func__, topology, port_id, rc);
  196. } else {
  197. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  198. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. }
  204. break;
  205. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  206. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  207. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  208. if (rc < 0)
  209. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  210. __func__, topology, port_id, copp_idx, rc);
  211. break;
  212. default:
  213. /* custom topology specific feature param handlers */
  214. break;
  215. }
  216. }
  217. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  218. {
  219. switch (topology) {
  220. case SRS_TRUMEDIA_TOPOLOGY_ID:
  221. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  222. msm_dts_srs_tm_deinit(port_id);
  223. break;
  224. case DS2_ADM_COPP_TOPOLOGY_ID:
  225. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  226. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  227. msm_ds2_dap_deinit(port_id);
  228. break;
  229. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  230. if (is_ds2_on) {
  231. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_ds2_dap_deinit(port_id);
  233. } else {
  234. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  235. msm_dolby_dap_deinit(port_id);
  236. }
  237. break;
  238. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  239. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  240. msm_qti_pp_asphere_deinit(port_id);
  241. break;
  242. default:
  243. /* custom topology specific feature deinit handlers */
  244. break;
  245. }
  246. }
  247. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  248. int path_type, int perf_mode)
  249. {
  250. int itr = 0, rc = 0;
  251. if ((path_type == ADM_PATH_PLAYBACK) &&
  252. (perf_mode == LEGACY_PCM_MODE) &&
  253. is_custom_stereo_on) {
  254. for (itr = 0; itr < payload.num_copps; itr++) {
  255. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  256. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  257. continue;
  258. }
  259. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  260. payload.port_id[itr],
  261. payload.copp_idx[itr],
  262. payload.session_id,
  263. Q14_GAIN_ZERO_POINT_FIVE,
  264. Q14_GAIN_ZERO_POINT_FIVE,
  265. Q14_GAIN_ZERO_POINT_FIVE,
  266. Q14_GAIN_ZERO_POINT_FIVE);
  267. if (rc < 0)
  268. pr_err("%s: err setting custom stereo\n",
  269. __func__);
  270. }
  271. }
  272. }
  273. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  274. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  275. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  276. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  277. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  278. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  279. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  280. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  281. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  282. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  283. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  284. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  285. LPASS_BE_AFE_PCM_RX},
  286. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  287. LPASS_BE_AFE_PCM_TX},
  288. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_AUXPCM_RX},
  290. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_AUXPCM_TX},
  292. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_VOICE_PLAYBACK_TX},
  294. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_VOICE2_PLAYBACK_TX},
  296. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_INCALL_RECORD_RX},
  298. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_INCALL_RECORD_TX},
  300. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  301. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  302. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  303. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  304. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  305. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  306. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  307. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  308. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  309. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  310. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  311. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  312. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  313. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  314. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  315. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  316. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  317. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  318. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  319. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  320. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  321. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  322. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  323. LPASS_BE_QUAT_MI2S_RX},
  324. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  325. LPASS_BE_QUAT_MI2S_TX},
  326. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_SEC_MI2S_RX},
  328. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_SEC_MI2S_TX},
  330. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_PRI_MI2S_RX},
  332. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_PRI_MI2S_TX},
  334. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_TERT_MI2S_RX},
  336. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_TERT_MI2S_TX},
  338. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_AUDIO_I2S_RX},
  340. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_SEC_AUXPCM_RX},
  342. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_SEC_AUXPCM_TX},
  344. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_PRI_SPDIF_RX},
  346. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SEC_MI2S_RX_SD1},
  348. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_QUIN_MI2S_RX},
  350. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_QUIN_MI2S_TX},
  352. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_SENARY_MI2S_TX},
  354. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_PRI_TDM_RX_0},
  356. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_PRI_TDM_TX_0},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_1},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_1},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_2},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_2},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_3},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_3},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_4},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_4},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_5},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_5},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_6},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_6},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_7},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_7},
  386. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_SEC_TDM_RX_0},
  388. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_SEC_TDM_TX_0},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_1},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_1},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_2},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_2},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_3},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_3},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_4},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_4},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_5},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_5},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_6},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_6},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_7},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_7},
  418. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_TERT_TDM_RX_0},
  420. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_TERT_TDM_TX_0},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_1},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_1},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_2},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_2},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_3},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_3},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_4},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_4},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_5},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_5},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_6},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_6},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_7},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_7},
  450. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_QUAT_TDM_RX_0},
  452. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_QUAT_TDM_TX_0},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_1},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_1},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_2},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_2},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_3},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_3},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_4},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_4},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_5},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_5},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_6},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_6},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_7},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_7},
  482. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUIN_TDM_RX_0},
  484. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUIN_TDM_TX_0},
  486. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_1},
  488. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_1},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_2},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_2},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_3},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_3},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_4},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_4},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_5},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_5},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_6},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_6},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_7},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_7},
  514. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_INT_BT_A2DP_RX},
  516. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_USB_AUDIO_RX},
  518. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_USB_AUDIO_TX},
  520. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_DISPLAY_PORT},
  522. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_DISPLAY_PORT1},
  524. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_TERT_AUXPCM_RX},
  526. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_TERT_AUXPCM_TX},
  528. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_QUAT_AUXPCM_RX},
  530. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_QUAT_AUXPCM_TX},
  532. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_QUIN_AUXPCM_RX},
  534. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_QUIN_AUXPCM_TX},
  536. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_INT0_MI2S_RX},
  538. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_INT0_MI2S_TX},
  540. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_INT1_MI2S_RX},
  542. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_INT1_MI2S_TX},
  544. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_INT2_MI2S_RX},
  546. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_INT2_MI2S_TX},
  548. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_INT3_MI2S_RX},
  550. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT3_MI2S_TX},
  552. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_INT4_MI2S_RX},
  554. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT4_MI2S_TX},
  556. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_INT5_MI2S_RX},
  558. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_INT5_MI2S_TX},
  560. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_INT6_MI2S_RX},
  562. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_INT6_MI2S_TX},
  564. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_SEN_AUXPCM_RX},
  566. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_SEN_AUXPCM_TX},
  568. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_SENARY_MI2S_RX},
  570. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_WSA_CDC_DMA_RX_0},
  572. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_WSA_CDC_DMA_TX_0},
  574. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_WSA_CDC_DMA_RX_1},
  576. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_WSA_CDC_DMA_TX_1},
  578. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_WSA_CDC_DMA_TX_2},
  580. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_VA_CDC_DMA_TX_0},
  582. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_VA_CDC_DMA_TX_1},
  584. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_VA_CDC_DMA_TX_2},
  586. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_RX_CDC_DMA_RX_0},
  588. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_TX_CDC_DMA_TX_0},
  590. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_RX_CDC_DMA_RX_1},
  592. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_TX_CDC_DMA_TX_1},
  594. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_RX_CDC_DMA_RX_2},
  596. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_TX_CDC_DMA_TX_2},
  598. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_RX_CDC_DMA_RX_3},
  600. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_TX_CDC_DMA_TX_3},
  602. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_RX_CDC_DMA_RX_4},
  604. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_TX_CDC_DMA_TX_4},
  606. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_RX_CDC_DMA_RX_5},
  608. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_TX_CDC_DMA_TX_5},
  610. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_RX_CDC_DMA_RX_6},
  612. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_RX_CDC_DMA_RX_7},
  614. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_PRI_SPDIF_TX},
  616. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_SEC_SPDIF_RX},
  618. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_SEC_SPDIF_TX},
  620. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  621. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  622. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  623. };
  624. /* Track ASM playback & capture sessions of DAI
  625. * Track LSM listen sessions
  626. */
  627. static struct msm_pcm_routing_fdai_data
  628. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  629. /* MULTIMEDIA1 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  632. /* MULTIMEDIA2 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  635. /* MULTIMEDIA3 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  638. /* MULTIMEDIA4 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  641. /* MULTIMEDIA5 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  644. /* MULTIMEDIA6 */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  647. /* MULTIMEDIA7*/
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  650. /* MULTIMEDIA8 */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  653. /* MULTIMEDIA9 */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  656. /* MULTIMEDIA10 */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  659. /* MULTIMEDIA11 */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  662. /* MULTIMEDIA12 */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  665. /* MULTIMEDIA13 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  668. /* MULTIMEDIA14 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  671. /* MULTIMEDIA15 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  674. /* MULTIMEDIA16 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA17 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA18 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA19 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA20 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA21 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA26 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* MULTIMEDIA27 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* MULTIMEDIA28 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* MULTIMEDIA29 */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* VOIP */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* AFE_RX */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* AFE_TX */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* VOICE_STUB */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* DTMF_RX */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* QCHAT */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* VOLTE_STUB */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* LSM1 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* LSM2 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* LSM3 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* LSM4 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* LSM5 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* LSM6 */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* LSM7 */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* LSM8 */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. /* VOICE2_STUB */
  750. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  751. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  752. /* VOICEMMODE1 */
  753. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  754. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  755. /* VOICEMMODE2 */
  756. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  757. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  758. };
  759. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  760. [MSM_BACKEND_DAI_MAX];
  761. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  762. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  763. static struct msm_pcm_stream_app_type_cfg
  764. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  765. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  766. /* The caller of this should acquire routing lock */
  767. void msm_pcm_routing_get_bedai_info(int be_idx,
  768. struct msm_pcm_routing_bdai_data *be_dai)
  769. {
  770. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  771. memcpy(be_dai, &msm_bedais[be_idx],
  772. sizeof(struct msm_pcm_routing_bdai_data));
  773. }
  774. /* The caller of this should acquire routing lock */
  775. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  776. struct msm_pcm_routing_fdai_data *fe_dai)
  777. {
  778. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  779. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  780. sizeof(struct msm_pcm_routing_fdai_data));
  781. }
  782. void msm_pcm_routing_acquire_lock(void)
  783. {
  784. mutex_lock(&routing_lock);
  785. }
  786. void msm_pcm_routing_release_lock(void)
  787. {
  788. mutex_unlock(&routing_lock);
  789. }
  790. static int msm_pcm_routing_get_app_type_idx(int app_type)
  791. {
  792. int idx;
  793. pr_debug("%s: app_type: %d\n", __func__, app_type);
  794. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  795. if (app_type_cfg[idx].app_type == app_type)
  796. return idx;
  797. }
  798. pr_info("%s: App type not available, fallback to default\n", __func__);
  799. return 0;
  800. }
  801. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  802. {
  803. int idx;
  804. pr_debug("%s: app_type: %d\n", __func__, app_type);
  805. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  806. if (lsm_app_type_cfg[idx].app_type == app_type)
  807. return idx;
  808. }
  809. pr_debug("%s: App type not available, fallback to default\n", __func__);
  810. return 0;
  811. }
  812. static int get_port_id(int port_id)
  813. {
  814. return (port_id == AFE_LOOPBACK_TX ? msm_ec_ref_port_id : port_id);
  815. }
  816. static bool is_mm_lsm_fe_id(int fe_id)
  817. {
  818. bool rc = true;
  819. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  820. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  821. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  822. rc = false;
  823. }
  824. return rc;
  825. }
  826. /*
  827. * msm_pcm_routing_send_chmix_cfg:
  828. * send the channel mixer command to mix the input channels
  829. * into output channels.
  830. *
  831. * @fe_id: front end id
  832. * @ip_channel_cnt: input channel count
  833. * @op_channel_cnt: output channel count
  834. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  835. * @session_type: indicates session is of type TX or RX
  836. * @stream_type: indicates either Audio or Listen stream type
  837. */
  838. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  839. int op_channel_cnt, int *ch_wght_coeff,
  840. int session_type, int stream_type)
  841. {
  842. int rc = 0, idx = 0;
  843. int be_index = 0, port_id;
  844. unsigned int session_id = 0;
  845. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  846. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  847. stream_type);
  848. if (!is_mm_lsm_fe_id(fe_id)) {
  849. /* bad ID assigned in machine driver */
  850. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  851. return -EINVAL;
  852. }
  853. if (ch_wght_coeff == NULL) {
  854. pr_err("%s: Null channel weightage coefficients passed\n",
  855. __func__);
  856. return -EINVAL;
  857. }
  858. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  859. port_id = msm_bedais[be_index].port_id;
  860. if (!msm_bedais[be_index].active ||
  861. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  862. continue;
  863. session_id = fe_dai_map[fe_id][session_type].strm_id;
  864. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  865. unsigned long copp =
  866. session_copp_map[fe_id][session_type][be_index];
  867. if (!test_bit(idx, &copp))
  868. continue;
  869. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  870. session_id, ip_channel_cnt,
  871. op_channel_cnt, ch_wght_coeff,
  872. session_type, stream_type);
  873. if (rc < 0)
  874. pr_err("%s: err setting channel mix config\n",
  875. __func__);
  876. }
  877. }
  878. return 0;
  879. }
  880. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  881. /**
  882. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  883. * setting before use case start.
  884. *
  885. * @fe_id: frontend idx
  886. * @type: stream direction type
  887. * @params: parameters of channel mixer setting
  888. *
  889. * Return 0 for success
  890. */
  891. int msm_pcm_routing_set_channel_mixer_cfg(
  892. int fe_id, int type,
  893. struct msm_pcm_channel_mixer *params)
  894. {
  895. int i, j = 0;
  896. channel_mixer_v2[fe_id][type].enable = params->enable;
  897. channel_mixer_v2[fe_id][type].rule = params->rule;
  898. channel_mixer_v2[fe_id][type].input_channel =
  899. params->input_channel;
  900. channel_mixer_v2[fe_id][type].output_channel =
  901. params->output_channel;
  902. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  903. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  904. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  905. params->in_ch_map[i];
  906. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  907. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  908. params->out_ch_map[i];
  909. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  910. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  911. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  912. params->channel_weight[i][j];
  913. channel_mixer_v2[fe_id][type].override_in_ch_map =
  914. params->override_in_ch_map;
  915. channel_mixer_v2[fe_id][type].override_out_ch_map =
  916. params->override_out_ch_map;
  917. return 0;
  918. }
  919. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  920. int msm_pcm_routing_reg_stream_app_type_cfg(
  921. int fedai_id, int session_type, int be_id,
  922. struct msm_pcm_stream_app_type_cfg *cfg_data)
  923. {
  924. int ret = 0;
  925. if (cfg_data == NULL) {
  926. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  927. ret = -EINVAL;
  928. goto done;
  929. }
  930. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  931. __func__, fedai_id, session_type, be_id,
  932. cfg_data->app_type, cfg_data->acdb_dev_id,
  933. cfg_data->sample_rate);
  934. if (!is_mm_lsm_fe_id(fedai_id)) {
  935. pr_err("%s: Invalid machine driver ID %d\n",
  936. __func__, fedai_id);
  937. ret = -EINVAL;
  938. goto done;
  939. }
  940. if (session_type != SESSION_TYPE_RX &&
  941. session_type != SESSION_TYPE_TX) {
  942. pr_err("%s: Invalid session type %d\n",
  943. __func__, session_type);
  944. ret = -EINVAL;
  945. goto done;
  946. }
  947. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  948. pr_err("%s: Received out of bounds be_id %d\n",
  949. __func__, be_id);
  950. ret = -EINVAL;
  951. goto done;
  952. }
  953. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  954. /*
  955. * Store the BE ID of the configuration information set as the latest so
  956. * the get mixer control knows what to return.
  957. */
  958. last_be_id_configured[fedai_id][session_type] = be_id;
  959. done:
  960. return ret;
  961. }
  962. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  963. /**
  964. * msm_pcm_routing_get_stream_app_type_cfg
  965. *
  966. * Receives fedai_id, session_type, be_id, and populates app_type,
  967. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  968. * -EINVAL and does not alter passed values.
  969. *
  970. * fedai_id - Passed value, front end ID for which app type config is wanted
  971. * session_type - Passed value, session type for which app type config
  972. * is wanted
  973. * be_id - Returned value, back end device id the app type config data is for
  974. * cfg_data - Returned value, configuration data used by app type config
  975. */
  976. int msm_pcm_routing_get_stream_app_type_cfg(
  977. int fedai_id, int session_type, int *bedai_id,
  978. struct msm_pcm_stream_app_type_cfg *cfg_data)
  979. {
  980. int be_id;
  981. int ret = 0;
  982. if (bedai_id == NULL) {
  983. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  984. ret = -EINVAL;
  985. goto done;
  986. } else if (cfg_data == NULL) {
  987. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  988. ret = -EINVAL;
  989. goto done;
  990. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  991. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  992. ret = -EINVAL;
  993. goto done;
  994. } else if (session_type != SESSION_TYPE_RX &&
  995. session_type != SESSION_TYPE_TX) {
  996. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  997. ret = -EINVAL;
  998. goto done;
  999. }
  1000. be_id = last_be_id_configured[fedai_id][session_type];
  1001. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1002. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1003. ret = -EINVAL;
  1004. goto done;
  1005. }
  1006. *bedai_id = be_id;
  1007. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1008. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1009. __func__, fedai_id, session_type, *bedai_id,
  1010. cfg_data->app_type, cfg_data->acdb_dev_id,
  1011. cfg_data->sample_rate);
  1012. done:
  1013. return ret;
  1014. }
  1015. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1016. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1017. int cal_index)
  1018. {
  1019. struct list_head *ptr, *next;
  1020. struct cal_block_data *cal_block = NULL;
  1021. pr_debug("%s\n", __func__);
  1022. list_for_each_safe(ptr, next,
  1023. &cal_data[cal_index]->cal_blocks) {
  1024. cal_block = list_entry(ptr,
  1025. struct cal_block_data, list);
  1026. if (cal_utils_is_cal_stale(cal_block))
  1027. continue;
  1028. if (((struct audio_cal_info_adm_top *)cal_block
  1029. ->cal_info)->path == path) {
  1030. return cal_block;
  1031. }
  1032. }
  1033. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1034. return NULL;
  1035. }
  1036. static struct cal_block_data *msm_routing_find_topology(int path,
  1037. int app_type,
  1038. int acdb_id,
  1039. int cal_index,
  1040. bool exact)
  1041. {
  1042. struct list_head *ptr, *next;
  1043. struct cal_block_data *cal_block = NULL;
  1044. struct audio_cal_info_adm_top *cal_info;
  1045. pr_debug("%s\n", __func__);
  1046. list_for_each_safe(ptr, next,
  1047. &cal_data[cal_index]->cal_blocks) {
  1048. cal_block = list_entry(ptr,
  1049. struct cal_block_data, list);
  1050. if (cal_utils_is_cal_stale(cal_block))
  1051. continue;
  1052. cal_info = (struct audio_cal_info_adm_top *)
  1053. cal_block->cal_info;
  1054. if ((cal_info->path == path) &&
  1055. (cal_info->app_type == app_type) &&
  1056. (cal_info->acdb_id == acdb_id)) {
  1057. return cal_block;
  1058. }
  1059. }
  1060. pr_debug("%s: Can't find topology for path %d, app %d, "
  1061. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1062. exact ? "fail" : "defaulting to search by path");
  1063. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1064. cal_index);
  1065. }
  1066. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1067. int acdb_dev_id, int idx,
  1068. bool exact)
  1069. {
  1070. int topology = -EINVAL;
  1071. struct cal_block_data *cal_block = NULL;
  1072. mutex_lock(&cal_data[idx]->lock);
  1073. cal_block = msm_routing_find_topology(session_type, app_type,
  1074. acdb_dev_id, idx, exact);
  1075. if (cal_block != NULL) {
  1076. topology = ((struct audio_cal_info_adm_top *)
  1077. cal_block->cal_info)->topology;
  1078. }
  1079. mutex_unlock(&cal_data[idx]->lock);
  1080. return topology;
  1081. }
  1082. /*
  1083. * Retrieving cal_block will mark cal_block as stale.
  1084. * Hence it cannot be reused or resent unless the flag
  1085. * is reset.
  1086. */
  1087. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1088. int be_id)
  1089. {
  1090. int topology = NULL_COPP_TOPOLOGY;
  1091. int app_type = 0, acdb_dev_id = 0;
  1092. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1093. __func__, fedai_id, session_type, be_id);
  1094. if (cal_data == NULL)
  1095. goto done;
  1096. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1097. acdb_dev_id =
  1098. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1099. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1100. topology = msm_routing_find_topology_on_index(session_type,
  1101. app_type,
  1102. acdb_dev_id,
  1103. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1104. true /*exact*/);
  1105. if (topology < 0) {
  1106. pr_debug("%s: Check for compatible topology\n", __func__);
  1107. topology = msm_routing_find_topology_on_index(session_type,
  1108. app_type,
  1109. acdb_dev_id,
  1110. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1111. false /*exact*/);
  1112. if (topology < 0)
  1113. topology = NULL_COPP_TOPOLOGY;
  1114. }
  1115. done:
  1116. pr_debug("%s: Using topology %d\n", __func__, topology);
  1117. return topology;
  1118. }
  1119. static uint8_t is_be_dai_extproc(int be_dai)
  1120. {
  1121. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1122. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1123. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1124. return 1;
  1125. else
  1126. return 0;
  1127. }
  1128. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1129. int path_type, int perf_mode,
  1130. uint32_t passthr_mode)
  1131. {
  1132. int i, port_type, j, num_copps = 0;
  1133. struct route_payload payload;
  1134. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1135. path_type == ADM_PATH_COMPRESSED_RX) ?
  1136. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1137. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1138. if (!is_be_dai_extproc(i) &&
  1139. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1140. (msm_bedais[i].active) &&
  1141. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1142. int port_id = get_port_id(msm_bedais[i].port_id);
  1143. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1144. unsigned long copp =
  1145. session_copp_map[fedai_id][sess_type][i];
  1146. if (test_bit(j, &copp)) {
  1147. payload.port_id[num_copps] = port_id;
  1148. payload.copp_idx[num_copps] = j;
  1149. payload.app_type[num_copps] =
  1150. fe_dai_app_type_cfg
  1151. [fedai_id][sess_type][i]
  1152. .app_type;
  1153. payload.acdb_dev_id[num_copps] =
  1154. fe_dai_app_type_cfg
  1155. [fedai_id][sess_type][i]
  1156. .acdb_dev_id;
  1157. payload.sample_rate[num_copps] =
  1158. fe_dai_app_type_cfg
  1159. [fedai_id][sess_type][i]
  1160. .sample_rate;
  1161. num_copps++;
  1162. }
  1163. }
  1164. }
  1165. }
  1166. if (num_copps) {
  1167. payload.num_copps = num_copps;
  1168. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1169. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1170. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1171. }
  1172. }
  1173. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1174. int stream_type)
  1175. {
  1176. int i, session_type, path_type, port_type;
  1177. u32 mode = 0;
  1178. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1179. /* bad ID assigned in machine driver */
  1180. pr_err("%s: bad MM ID\n", __func__);
  1181. return;
  1182. }
  1183. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1184. session_type = SESSION_TYPE_RX;
  1185. path_type = ADM_PATH_PLAYBACK;
  1186. port_type = MSM_AFE_PORT_TYPE_RX;
  1187. } else {
  1188. session_type = SESSION_TYPE_TX;
  1189. path_type = ADM_PATH_LIVE_REC;
  1190. port_type = MSM_AFE_PORT_TYPE_TX;
  1191. }
  1192. mutex_lock(&routing_lock);
  1193. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1194. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1195. if (!is_be_dai_extproc(i) &&
  1196. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1197. (msm_bedais[i].active) &&
  1198. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1199. mode = afe_get_port_type(msm_bedais[i].port_id);
  1200. adm_connect_afe_port(mode, dspst_id,
  1201. msm_bedais[i].port_id);
  1202. break;
  1203. }
  1204. }
  1205. mutex_unlock(&routing_lock);
  1206. }
  1207. static bool route_check_fe_id_adm_support(int fe_id)
  1208. {
  1209. bool rc = true;
  1210. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1211. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1212. /* fe id is listen while port is set to afe */
  1213. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1214. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1215. __func__, fe_id, lsm_port_index);
  1216. rc = false;
  1217. }
  1218. }
  1219. return rc;
  1220. }
  1221. /*
  1222. * msm_pcm_routing_get_pp_ch_cnt:
  1223. * Read the processed channel count
  1224. *
  1225. * @fe_id: Front end ID
  1226. * @session_type: Inidicates RX or TX session type
  1227. */
  1228. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1229. {
  1230. struct msm_pcm_stream_app_type_cfg cfg_data;
  1231. int be_id = 0, app_type_idx = 0, app_type = 0;
  1232. int ret = -EINVAL;
  1233. memset(&cfg_data, 0, sizeof(cfg_data));
  1234. if (!is_mm_lsm_fe_id(fe_id)) {
  1235. pr_err("%s: bad MM ID\n", __func__);
  1236. return -EINVAL;
  1237. }
  1238. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1239. &be_id, &cfg_data);
  1240. if (ret) {
  1241. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1242. return ret;
  1243. }
  1244. app_type = cfg_data.app_type;
  1245. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1246. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1247. }
  1248. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1249. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1250. int dspst_id, int stream_type,
  1251. uint32_t passthr_mode)
  1252. {
  1253. int i, j, session_type, path_type, port_type, topology;
  1254. int num_copps = 0;
  1255. struct route_payload payload;
  1256. u32 channels, sample_rate;
  1257. u16 bit_width = 16;
  1258. bool is_lsm;
  1259. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1260. __func__, fe_id, perf_mode, dspst_id,
  1261. stream_type, passthr_mode);
  1262. if (!is_mm_lsm_fe_id(fe_id)) {
  1263. /* bad ID assigned in machine driver */
  1264. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1265. return -EINVAL;
  1266. }
  1267. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1268. session_type = SESSION_TYPE_RX;
  1269. if (passthr_mode != LEGACY_PCM)
  1270. path_type = ADM_PATH_COMPRESSED_RX;
  1271. else
  1272. path_type = ADM_PATH_PLAYBACK;
  1273. port_type = MSM_AFE_PORT_TYPE_RX;
  1274. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1275. session_type = SESSION_TYPE_TX;
  1276. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1277. path_type = ADM_PATH_COMPRESSED_TX;
  1278. else
  1279. path_type = ADM_PATH_LIVE_REC;
  1280. port_type = MSM_AFE_PORT_TYPE_TX;
  1281. } else {
  1282. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1283. return -EINVAL;
  1284. }
  1285. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1286. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1287. mutex_lock(&routing_lock);
  1288. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1289. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1290. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1291. if (!route_check_fe_id_adm_support(fe_id)) {
  1292. /* ignore adm open if not supported for fe_id */
  1293. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1294. mutex_unlock(&routing_lock);
  1295. return 0;
  1296. }
  1297. payload.num_copps = 0; /* only RX needs to use payload */
  1298. /* re-enable EQ if active */
  1299. msm_qti_pp_send_eq_values(fe_id);
  1300. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1301. if (!is_be_dai_extproc(i) &&
  1302. (afe_get_port_type(msm_bedais[i].port_id) ==
  1303. port_type) &&
  1304. (msm_bedais[i].active) &&
  1305. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1306. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1307. int port_id = get_port_id(msm_bedais[i].port_id);
  1308. /*
  1309. * check if ADM needs to be configured with different
  1310. * channel mapping than backend
  1311. */
  1312. if (!msm_bedais[i].adm_override_ch)
  1313. channels = msm_bedais[i].channel;
  1314. else
  1315. channels = msm_bedais[i].adm_override_ch;
  1316. bit_width = msm_routing_get_bit_width(
  1317. msm_bedais[i].format);
  1318. app_type =
  1319. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1320. if (app_type && is_lsm) {
  1321. app_type_idx =
  1322. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1323. sample_rate =
  1324. fe_dai_app_type_cfg[fe_id][session_type][i]
  1325. .sample_rate;
  1326. bit_width =
  1327. lsm_app_type_cfg[app_type_idx].bit_width;
  1328. } else if (app_type) {
  1329. app_type_idx =
  1330. msm_pcm_routing_get_app_type_idx(
  1331. app_type);
  1332. sample_rate =
  1333. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1334. bit_width =
  1335. app_type_cfg[app_type_idx].bit_width;
  1336. } else {
  1337. sample_rate = msm_bedais[i].sample_rate;
  1338. }
  1339. acdb_dev_id =
  1340. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1341. topology = msm_routing_get_adm_topology(fe_id,
  1342. session_type,
  1343. i);
  1344. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1345. || (passthr_mode ==
  1346. COMPRESSED_PASSTHROUGH_GEN)
  1347. || (passthr_mode ==
  1348. COMPRESSED_PASSTHROUGH_IEC61937))
  1349. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1350. pr_debug("%s: Before adm open topology %d\n", __func__,
  1351. topology);
  1352. copp_idx =
  1353. adm_open(port_id, path_type, sample_rate,
  1354. channels, topology, perf_mode,
  1355. bit_width, app_type, acdb_dev_id,
  1356. session_type);
  1357. if ((copp_idx < 0) ||
  1358. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1359. pr_err("%s:adm open failed coppid:%d\n",
  1360. __func__, copp_idx);
  1361. mutex_unlock(&routing_lock);
  1362. return -EINVAL;
  1363. }
  1364. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1365. __func__, fe_id, session_type, i);
  1366. set_bit(copp_idx,
  1367. &session_copp_map[fe_id][session_type][i]);
  1368. if (msm_is_resample_needed(
  1369. sample_rate,
  1370. msm_bedais[i].sample_rate))
  1371. adm_copp_mfc_cfg(port_id, copp_idx,
  1372. msm_bedais[i].sample_rate);
  1373. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1374. unsigned long copp =
  1375. session_copp_map[fe_id][session_type][i];
  1376. if (test_bit(j, &copp)) {
  1377. payload.port_id[num_copps] = port_id;
  1378. payload.copp_idx[num_copps] = j;
  1379. payload.app_type[num_copps] =
  1380. fe_dai_app_type_cfg
  1381. [fe_id][session_type][i]
  1382. .app_type;
  1383. payload.acdb_dev_id[num_copps] =
  1384. fe_dai_app_type_cfg
  1385. [fe_id][session_type][i]
  1386. .acdb_dev_id;
  1387. payload.sample_rate[num_copps] =
  1388. fe_dai_app_type_cfg
  1389. [fe_id][session_type][i]
  1390. .sample_rate;
  1391. num_copps++;
  1392. }
  1393. }
  1394. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1395. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1396. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1397. msm_routing_send_device_pp_params(port_id,
  1398. copp_idx, fe_id);
  1399. }
  1400. }
  1401. if (num_copps) {
  1402. payload.num_copps = num_copps;
  1403. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1404. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1405. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1406. }
  1407. mutex_unlock(&routing_lock);
  1408. return 0;
  1409. }
  1410. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1411. {
  1412. u32 session_id;
  1413. switch (val) {
  1414. case MSM_FRONTEND_DAI_QCHAT:
  1415. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1416. break;
  1417. case MSM_FRONTEND_DAI_VOIP:
  1418. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1419. break;
  1420. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1421. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1422. break;
  1423. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1424. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1425. break;
  1426. default:
  1427. session_id = 0;
  1428. }
  1429. pr_debug("%s session_id 0x%x", __func__, session_id);
  1430. return session_id;
  1431. }
  1432. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1433. int dspst_id, int stream_type)
  1434. {
  1435. int copp_idx = 0;
  1436. int sess_type = 0;
  1437. int j = 0, be_id = 0;
  1438. int ret = 0;
  1439. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1440. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1441. return 0;
  1442. }
  1443. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1444. sess_type = SESSION_TYPE_RX;
  1445. else
  1446. sess_type = SESSION_TYPE_TX;
  1447. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1448. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1449. __func__, fe_id, sess_type);
  1450. return 0;
  1451. }
  1452. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1453. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1454. channel_mixer_v2[fe_id][sess_type].input_channel;
  1455. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1456. __func__, sess_type, fe_id,
  1457. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1458. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1459. msm_bedais[be_id].active);
  1460. if ((msm_bedais[be_id].active) &&
  1461. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1462. unsigned long copp =
  1463. session_copp_map[fe_id][sess_type][be_id];
  1464. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1465. if (test_bit(j, &copp)) {
  1466. copp_idx = j;
  1467. break;
  1468. }
  1469. }
  1470. ret = adm_programable_channel_mixer(
  1471. msm_bedais[be_id].port_id,
  1472. copp_idx, dspst_id, sess_type,
  1473. &channel_mixer_v2[fe_id][sess_type], 0);
  1474. }
  1475. return ret;
  1476. }
  1477. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1478. int dspst_id, int stream_type)
  1479. {
  1480. int copp_idx = 0;
  1481. int sess_type = 0;
  1482. int i = 0, j = 0, be_id;
  1483. int ret = 0;
  1484. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1485. dspst_id, stream_type);
  1486. if (ret) {
  1487. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1488. fe_id);
  1489. return ret;
  1490. }
  1491. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1492. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1493. return 0;
  1494. }
  1495. if (!(channel_mixer[fe_id].enable)) {
  1496. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1497. __func__, fe_id);
  1498. return 0;
  1499. }
  1500. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1501. sess_type = SESSION_TYPE_RX;
  1502. else
  1503. sess_type = SESSION_TYPE_TX;
  1504. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1505. ++i) {
  1506. be_id = channel_input[fe_id][i] - 1;
  1507. channel_mixer[fe_id].input_channels[i] =
  1508. msm_bedais[be_id].channel;
  1509. if ((msm_bedais[be_id].active) &&
  1510. test_bit(fe_id,
  1511. &msm_bedais[be_id].fe_sessions[0])) {
  1512. unsigned long copp =
  1513. session_copp_map[fe_id][sess_type][be_id];
  1514. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1515. if (test_bit(j, &copp)) {
  1516. copp_idx = j;
  1517. break;
  1518. }
  1519. }
  1520. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1521. __func__,
  1522. fe_id, be_id, msm_bedais[be_id].channel,
  1523. copp_idx);
  1524. ret = adm_programable_channel_mixer(
  1525. get_port_id(msm_bedais[be_id].port_id),
  1526. copp_idx, dspst_id, sess_type,
  1527. channel_mixer + fe_id, i);
  1528. }
  1529. }
  1530. return ret;
  1531. }
  1532. /**
  1533. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1534. * setting during runtime.
  1535. *
  1536. * @be_id: backend index
  1537. * @session_id: session index
  1538. * @session_type: session type
  1539. * @params: parameters for channel mixer
  1540. *
  1541. * Retuen: 0 for success, else error
  1542. */
  1543. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1544. int session_type,
  1545. struct msm_pcm_channel_mixer *params)
  1546. {
  1547. int rc = 0;
  1548. int port_id, copp_idx = 0;
  1549. be_id--;
  1550. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1551. pr_err("%s: invalid backend id %d\n", __func__,
  1552. be_id);
  1553. return -EINVAL;
  1554. }
  1555. port_id = msm_bedais[be_id].port_id;
  1556. copp_idx = adm_get_default_copp_idx(port_id);
  1557. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1558. __func__, port_id, copp_idx, session_id);
  1559. if ((params->input_channel < 0) ||
  1560. (params->input_channel > ADM_MAX_CHANNELS)) {
  1561. pr_err("%s: invalid input channel %d\n", __func__,
  1562. params->input_channel);
  1563. return -EINVAL;
  1564. }
  1565. if ((params->output_channel < 0) ||
  1566. (params->output_channel > ADM_MAX_CHANNELS)) {
  1567. pr_err("%s: invalid output channel %d\n", __func__,
  1568. params->output_channel);
  1569. return -EINVAL;
  1570. }
  1571. params->input_channels[0] = params->input_channel;
  1572. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1573. __func__, session_type,
  1574. params->override_in_ch_map,
  1575. params->override_out_ch_map,
  1576. msm_bedais[be_id].active);
  1577. rc = adm_programable_channel_mixer(port_id,
  1578. copp_idx,
  1579. session_id,
  1580. session_type,
  1581. params,
  1582. 0);
  1583. if (rc) {
  1584. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1585. rc = -EINVAL;
  1586. }
  1587. return rc;
  1588. }
  1589. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1590. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1591. int dspst_id, int stream_type)
  1592. {
  1593. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1594. struct route_payload payload;
  1595. u32 channels, sample_rate;
  1596. uint16_t bits_per_sample = 16;
  1597. uint32_t passthr_mode = LEGACY_PCM;
  1598. int ret = 0;
  1599. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1600. /* bad ID assigned in machine driver */
  1601. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1602. return -EINVAL;
  1603. }
  1604. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1605. session_type = SESSION_TYPE_RX;
  1606. path_type = ADM_PATH_PLAYBACK;
  1607. port_type = MSM_AFE_PORT_TYPE_RX;
  1608. } else {
  1609. session_type = SESSION_TYPE_TX;
  1610. path_type = ADM_PATH_LIVE_REC;
  1611. port_type = MSM_AFE_PORT_TYPE_TX;
  1612. }
  1613. mutex_lock(&routing_lock);
  1614. payload.num_copps = 0; /* only RX needs to use payload */
  1615. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1616. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1617. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1618. /* re-enable EQ if active */
  1619. msm_qti_pp_send_eq_values(fedai_id);
  1620. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1621. if (!is_be_dai_extproc(i) &&
  1622. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1623. (msm_bedais[i].active) &&
  1624. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1625. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1626. int port_id = get_port_id(msm_bedais[i].port_id);
  1627. /*
  1628. * check if ADM needs to be configured with different
  1629. * channel mapping than backend
  1630. */
  1631. if (!msm_bedais[i].adm_override_ch)
  1632. channels = msm_bedais[i].channel;
  1633. else
  1634. channels = msm_bedais[i].adm_override_ch;
  1635. bits_per_sample = msm_routing_get_bit_width(
  1636. msm_bedais[i].format);
  1637. app_type =
  1638. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1639. if (app_type) {
  1640. app_type_idx =
  1641. msm_pcm_routing_get_app_type_idx(app_type);
  1642. sample_rate =
  1643. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1644. .sample_rate;
  1645. bits_per_sample =
  1646. app_type_cfg[app_type_idx].bit_width;
  1647. } else
  1648. sample_rate = msm_bedais[i].sample_rate;
  1649. acdb_dev_id =
  1650. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1651. .acdb_dev_id;
  1652. topology = msm_routing_get_adm_topology(fedai_id,
  1653. session_type,
  1654. i);
  1655. copp_idx = adm_open(port_id, path_type,
  1656. sample_rate, channels, topology,
  1657. perf_mode, bits_per_sample,
  1658. app_type, acdb_dev_id,
  1659. session_type);
  1660. if ((copp_idx < 0) ||
  1661. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1662. pr_err("%s: adm open failed copp_idx:%d\n",
  1663. __func__, copp_idx);
  1664. mutex_unlock(&routing_lock);
  1665. return -EINVAL;
  1666. }
  1667. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1668. __func__, fedai_id, session_type, i);
  1669. set_bit(copp_idx,
  1670. &session_copp_map[fedai_id][session_type][i]);
  1671. if (msm_is_resample_needed(
  1672. sample_rate,
  1673. msm_bedais[i].sample_rate))
  1674. adm_copp_mfc_cfg(port_id, copp_idx,
  1675. msm_bedais[i].sample_rate);
  1676. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1677. unsigned long copp =
  1678. session_copp_map[fedai_id][session_type][i];
  1679. if (test_bit(j, &copp)) {
  1680. payload.port_id[num_copps] = port_id;
  1681. payload.copp_idx[num_copps] = j;
  1682. payload.app_type[num_copps] =
  1683. fe_dai_app_type_cfg
  1684. [fedai_id][session_type]
  1685. [i].app_type;
  1686. payload.acdb_dev_id[num_copps] =
  1687. fe_dai_app_type_cfg
  1688. [fedai_id][session_type]
  1689. [i].acdb_dev_id;
  1690. payload.sample_rate[num_copps] =
  1691. fe_dai_app_type_cfg
  1692. [fedai_id][session_type]
  1693. [i].sample_rate;
  1694. num_copps++;
  1695. }
  1696. }
  1697. if (perf_mode == LEGACY_PCM_MODE)
  1698. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1699. topology, channels);
  1700. }
  1701. }
  1702. if (num_copps) {
  1703. payload.num_copps = num_copps;
  1704. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1705. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1706. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1707. }
  1708. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1709. dspst_id, stream_type);
  1710. mutex_unlock(&routing_lock);
  1711. return ret;
  1712. }
  1713. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1714. int dspst_id, int stream_type,
  1715. struct msm_pcm_routing_evt event_info)
  1716. {
  1717. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1718. stream_type)) {
  1719. pr_err("%s: failed to reg phy stream\n", __func__);
  1720. return -EINVAL;
  1721. }
  1722. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1723. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1724. else
  1725. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1726. return 0;
  1727. }
  1728. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1729. {
  1730. int i, port_type, session_type, path_type, topology, port_id;
  1731. struct msm_pcm_routing_fdai_data *fdai;
  1732. if (!is_mm_lsm_fe_id(fedai_id)) {
  1733. /* bad ID assigned in machine driver */
  1734. pr_err("%s: bad MM ID\n", __func__);
  1735. return;
  1736. }
  1737. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1738. port_type = MSM_AFE_PORT_TYPE_RX;
  1739. session_type = SESSION_TYPE_RX;
  1740. path_type = ADM_PATH_PLAYBACK;
  1741. } else {
  1742. port_type = MSM_AFE_PORT_TYPE_TX;
  1743. session_type = SESSION_TYPE_TX;
  1744. path_type = ADM_PATH_LIVE_REC;
  1745. }
  1746. mutex_lock(&routing_lock);
  1747. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1748. if (!is_be_dai_extproc(i) &&
  1749. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1750. (msm_bedais[i].active) &&
  1751. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1752. int idx;
  1753. unsigned long copp =
  1754. session_copp_map[fedai_id][session_type][i];
  1755. fdai = &fe_dai_map[fedai_id][session_type];
  1756. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1757. if (test_bit(idx, &copp))
  1758. break;
  1759. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1760. pr_debug("%s: copp idx is invalid, exiting\n",
  1761. __func__);
  1762. continue;
  1763. }
  1764. port_id = get_port_id(msm_bedais[i].port_id);
  1765. topology = adm_get_topology_for_port_copp_idx(
  1766. port_id, idx);
  1767. msm_routing_unload_topology(topology);
  1768. adm_close(port_id, fdai->perf_mode, idx);
  1769. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1770. __func__, copp, fedai_id, session_type, i);
  1771. clear_bit(idx,
  1772. &session_copp_map[fedai_id][session_type][i]);
  1773. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1774. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1775. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1776. (fdai->passthr_mode == LEGACY_PCM))
  1777. msm_pcm_routing_deinit_pp(port_id, topology);
  1778. }
  1779. }
  1780. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1781. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1782. mutex_unlock(&routing_lock);
  1783. }
  1784. /* Check if FE/BE route is set */
  1785. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1786. {
  1787. bool rc = false;
  1788. if (!is_mm_lsm_fe_id(fe_id)) {
  1789. /* recheck FE ID in the mixer control defined in this file */
  1790. pr_err("%s: bad MM ID\n", __func__);
  1791. return rc;
  1792. }
  1793. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1794. rc = true;
  1795. return rc;
  1796. }
  1797. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1798. {
  1799. int session_type, path_type, topology;
  1800. u32 channels, sample_rate;
  1801. uint16_t bits_per_sample = 16;
  1802. struct msm_pcm_routing_fdai_data *fdai;
  1803. uint32_t passthr_mode;
  1804. bool is_lsm;
  1805. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1806. if (!is_mm_lsm_fe_id(val)) {
  1807. /* recheck FE ID in the mixer control defined in this file */
  1808. pr_err("%s: bad MM ID\n", __func__);
  1809. return;
  1810. }
  1811. if (!route_check_fe_id_adm_support(val)) {
  1812. /* ignore adm open if not supported for fe_id */
  1813. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1814. return;
  1815. }
  1816. session_type =
  1817. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1818. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1819. fdai = &fe_dai_map[val][session_type];
  1820. passthr_mode = fdai->passthr_mode;
  1821. if (session_type == SESSION_TYPE_RX) {
  1822. if (passthr_mode != LEGACY_PCM)
  1823. path_type = ADM_PATH_COMPRESSED_RX;
  1824. else
  1825. path_type = ADM_PATH_PLAYBACK;
  1826. } else {
  1827. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1828. path_type = ADM_PATH_COMPRESSED_TX;
  1829. else
  1830. path_type = ADM_PATH_LIVE_REC;
  1831. }
  1832. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1833. (val <= MSM_FRONTEND_DAI_LSM8);
  1834. mutex_lock(&routing_lock);
  1835. if (set) {
  1836. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1837. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1838. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1839. voc_start_playback(set, msm_bedais[reg].port_id);
  1840. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1841. if (msm_bedais[reg].active && fdai->strm_id !=
  1842. INVALID_SESSION) {
  1843. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1844. int port_id = get_port_id(msm_bedais[reg].port_id);
  1845. /*
  1846. * check if ADM needs to be configured with different
  1847. * channel mapping than backend
  1848. */
  1849. if (!msm_bedais[reg].adm_override_ch)
  1850. channels = msm_bedais[reg].channel;
  1851. else
  1852. channels = msm_bedais[reg].adm_override_ch;
  1853. if (session_type == SESSION_TYPE_TX &&
  1854. fdai->be_srate &&
  1855. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1856. pr_debug("%s: flush strm %d diff BE rates\n",
  1857. __func__, fdai->strm_id);
  1858. if (fdai->event_info.event_func)
  1859. fdai->event_info.event_func(
  1860. MSM_PCM_RT_EVT_BUF_RECFG,
  1861. fdai->event_info.priv_data);
  1862. fdai->be_srate = 0; /* might not need it */
  1863. }
  1864. bits_per_sample = msm_routing_get_bit_width(
  1865. msm_bedais[reg].format);
  1866. app_type =
  1867. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1868. if (app_type && is_lsm) {
  1869. app_type_idx =
  1870. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1871. sample_rate =
  1872. fe_dai_app_type_cfg[val][session_type][reg]
  1873. .sample_rate;
  1874. bits_per_sample =
  1875. lsm_app_type_cfg[app_type_idx].bit_width;
  1876. } else if (app_type) {
  1877. app_type_idx =
  1878. msm_pcm_routing_get_app_type_idx(app_type);
  1879. sample_rate =
  1880. fe_dai_app_type_cfg[val][session_type][reg]
  1881. .sample_rate;
  1882. bits_per_sample =
  1883. app_type_cfg[app_type_idx].bit_width;
  1884. } else
  1885. sample_rate = msm_bedais[reg].sample_rate;
  1886. topology = msm_routing_get_adm_topology(val,
  1887. session_type,
  1888. reg);
  1889. acdb_dev_id =
  1890. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1891. copp_idx = adm_open(port_id, path_type,
  1892. sample_rate, channels, topology,
  1893. fdai->perf_mode, bits_per_sample,
  1894. app_type, acdb_dev_id,
  1895. session_type);
  1896. if ((copp_idx < 0) ||
  1897. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1898. pr_err("%s: adm open failed\n", __func__);
  1899. mutex_unlock(&routing_lock);
  1900. return;
  1901. }
  1902. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1903. __func__, val, session_type, reg);
  1904. set_bit(copp_idx,
  1905. &session_copp_map[val][session_type][reg]);
  1906. if (msm_is_resample_needed(
  1907. sample_rate,
  1908. msm_bedais[reg].sample_rate))
  1909. adm_copp_mfc_cfg(port_id, copp_idx,
  1910. msm_bedais[reg].sample_rate);
  1911. if (session_type == SESSION_TYPE_RX &&
  1912. fdai->event_info.event_func)
  1913. fdai->event_info.event_func(
  1914. MSM_PCM_RT_EVT_DEVSWITCH,
  1915. fdai->event_info.priv_data);
  1916. msm_pcm_routing_build_matrix(val, session_type,
  1917. path_type,
  1918. fdai->perf_mode,
  1919. passthr_mode);
  1920. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1921. (passthr_mode == LEGACY_PCM))
  1922. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1923. topology, channels);
  1924. }
  1925. } else {
  1926. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1927. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1928. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1929. voc_start_playback(set, msm_bedais[reg].port_id);
  1930. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1931. if (msm_bedais[reg].active && fdai->strm_id !=
  1932. INVALID_SESSION) {
  1933. int idx;
  1934. int port_id;
  1935. unsigned long copp =
  1936. session_copp_map[val][session_type][reg];
  1937. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1938. if (test_bit(idx, &copp))
  1939. break;
  1940. if (idx >= MAX_COPPS_PER_PORT) {
  1941. pr_debug("%s: copp idx is invalid, exiting\n",
  1942. __func__);
  1943. mutex_unlock(&routing_lock);
  1944. return;
  1945. }
  1946. port_id = get_port_id(msm_bedais[reg].port_id);
  1947. topology = adm_get_topology_for_port_copp_idx(port_id,
  1948. idx);
  1949. msm_routing_unload_topology(topology);
  1950. adm_close(port_id, fdai->perf_mode, idx);
  1951. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1952. __func__, copp, val, session_type, reg,
  1953. topology);
  1954. clear_bit(idx,
  1955. &session_copp_map[val][session_type][reg]);
  1956. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1957. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1958. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1959. (passthr_mode == LEGACY_PCM))
  1960. msm_pcm_routing_deinit_pp(port_id, topology);
  1961. msm_pcm_routing_build_matrix(val, session_type,
  1962. path_type,
  1963. fdai->perf_mode,
  1964. passthr_mode);
  1965. }
  1966. }
  1967. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1968. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1969. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1970. mutex_unlock(&routing_lock);
  1971. }
  1972. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1973. struct snd_ctl_elem_value *ucontrol)
  1974. {
  1975. struct soc_mixer_control *mc =
  1976. (struct soc_mixer_control *)kcontrol->private_value;
  1977. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1978. ucontrol->value.integer.value[0] = 1;
  1979. else
  1980. ucontrol->value.integer.value[0] = 0;
  1981. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1982. ucontrol->value.integer.value[0]);
  1983. return 0;
  1984. }
  1985. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1986. struct snd_ctl_elem_value *ucontrol)
  1987. {
  1988. struct snd_soc_dapm_widget *widget =
  1989. snd_soc_dapm_kcontrol_widget(kcontrol);
  1990. struct soc_mixer_control *mc =
  1991. (struct soc_mixer_control *)kcontrol->private_value;
  1992. struct snd_soc_dapm_update *update = NULL;
  1993. if (ucontrol->value.integer.value[0] &&
  1994. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1995. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1996. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1997. update);
  1998. } else if (!ucontrol->value.integer.value[0] &&
  1999. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2000. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2001. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2002. update);
  2003. }
  2004. return 1;
  2005. }
  2006. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2007. struct snd_ctl_elem_value *ucontrol)
  2008. {
  2009. struct soc_mixer_control *mc =
  2010. (struct soc_mixer_control *)kcontrol->private_value;
  2011. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2012. ucontrol->value.integer.value[0] = 1;
  2013. else
  2014. ucontrol->value.integer.value[0] = 0;
  2015. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2016. ucontrol->value.integer.value[0]);
  2017. return 0;
  2018. }
  2019. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2020. struct snd_ctl_elem_value *ucontrol)
  2021. {
  2022. struct snd_soc_dapm_widget *widget =
  2023. snd_soc_dapm_kcontrol_widget(kcontrol);
  2024. struct soc_mixer_control *mc =
  2025. (struct soc_mixer_control *)kcontrol->private_value;
  2026. struct snd_soc_dapm_update *update = NULL;
  2027. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2028. ucontrol->value.integer.value[0]);
  2029. if (ucontrol->value.integer.value[0]) {
  2030. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2031. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2032. snd_soc_dapm_mixer_update_power(widget->dapm,
  2033. kcontrol, 1, update);
  2034. } else if (!ucontrol->value.integer.value[0]) {
  2035. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2036. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2037. snd_soc_dapm_mixer_update_power(widget->dapm,
  2038. kcontrol, 0, update);
  2039. }
  2040. return 1;
  2041. }
  2042. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2043. {
  2044. u32 session_id = 0;
  2045. u16 path_type;
  2046. struct media_format_info voc_be_media_format;
  2047. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2048. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2049. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2050. __func__, val, session_id);
  2051. mutex_lock(&routing_lock);
  2052. if (set)
  2053. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2054. else
  2055. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2056. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2057. afe_get_port_type(msm_bedais[reg].port_id) ==
  2058. MSM_AFE_PORT_TYPE_RX) {
  2059. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2060. __func__, set, msm_bedais[reg].port_id);
  2061. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2062. }
  2063. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2064. MSM_AFE_PORT_TYPE_RX)
  2065. path_type = RX_PATH;
  2066. else
  2067. path_type = TX_PATH;
  2068. if (set) {
  2069. if (msm_bedais[reg].active) {
  2070. voc_set_route_flag(session_id, path_type, 1);
  2071. memset(&voc_be_media_format, 0,
  2072. sizeof(struct media_format_info));
  2073. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2074. voc_be_media_format.num_channels =
  2075. msm_bedais[reg].channel;
  2076. voc_be_media_format.sample_rate =
  2077. msm_bedais[reg].sample_rate;
  2078. voc_be_media_format.bits_per_sample =
  2079. msm_bedais[reg].format;
  2080. /* Defaulting this to 1 for voice call usecases */
  2081. voc_be_media_format.channel_mapping[0] = 1;
  2082. voc_set_device_config(session_id, path_type,
  2083. &voc_be_media_format);
  2084. if (voc_get_route_flag(session_id, TX_PATH) &&
  2085. voc_get_route_flag(session_id, RX_PATH))
  2086. voc_enable_device(session_id);
  2087. } else {
  2088. pr_debug("%s BE is not active\n", __func__);
  2089. }
  2090. } else {
  2091. voc_set_route_flag(session_id, path_type, 0);
  2092. voc_disable_device(session_id);
  2093. }
  2094. mutex_unlock(&routing_lock);
  2095. }
  2096. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2097. struct snd_ctl_elem_value *ucontrol)
  2098. {
  2099. struct soc_mixer_control *mc =
  2100. (struct soc_mixer_control *)kcontrol->private_value;
  2101. mutex_lock(&routing_lock);
  2102. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2103. ucontrol->value.integer.value[0] = 1;
  2104. else
  2105. ucontrol->value.integer.value[0] = 0;
  2106. mutex_unlock(&routing_lock);
  2107. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2108. ucontrol->value.integer.value[0]);
  2109. return 0;
  2110. }
  2111. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2112. struct snd_ctl_elem_value *ucontrol)
  2113. {
  2114. struct snd_soc_dapm_widget *widget =
  2115. snd_soc_dapm_kcontrol_widget(kcontrol);
  2116. struct soc_mixer_control *mc =
  2117. (struct soc_mixer_control *)kcontrol->private_value;
  2118. struct snd_soc_dapm_update *update = NULL;
  2119. if (ucontrol->value.integer.value[0]) {
  2120. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2121. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2122. update);
  2123. } else {
  2124. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2125. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2126. update);
  2127. }
  2128. return 1;
  2129. }
  2130. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2131. struct snd_ctl_elem_value *ucontrol)
  2132. {
  2133. struct soc_mixer_control *mc =
  2134. (struct soc_mixer_control *)kcontrol->private_value;
  2135. mutex_lock(&routing_lock);
  2136. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2137. ucontrol->value.integer.value[0] = 1;
  2138. else
  2139. ucontrol->value.integer.value[0] = 0;
  2140. mutex_unlock(&routing_lock);
  2141. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2142. ucontrol->value.integer.value[0]);
  2143. return 0;
  2144. }
  2145. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2146. struct snd_ctl_elem_value *ucontrol)
  2147. {
  2148. struct snd_soc_dapm_widget *widget =
  2149. snd_soc_dapm_kcontrol_widget(kcontrol);
  2150. struct soc_mixer_control *mc =
  2151. (struct soc_mixer_control *)kcontrol->private_value;
  2152. struct snd_soc_dapm_update *update = NULL;
  2153. if (ucontrol->value.integer.value[0]) {
  2154. mutex_lock(&routing_lock);
  2155. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2156. mutex_unlock(&routing_lock);
  2157. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2158. update);
  2159. } else {
  2160. mutex_lock(&routing_lock);
  2161. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2162. mutex_unlock(&routing_lock);
  2163. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2164. update);
  2165. }
  2166. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2167. ucontrol->value.integer.value[0]);
  2168. return 1;
  2169. }
  2170. /*
  2171. * Return the mapping between port ID and backend ID to enable the AFE callback
  2172. * to determine the acdb_dev_id from the port id
  2173. */
  2174. int msm_pcm_get_be_id_from_port_id(int port_id)
  2175. {
  2176. int i;
  2177. int be_id = -EINVAL;
  2178. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2179. if (msm_bedais[i].port_id == port_id) {
  2180. be_id = i;
  2181. break;
  2182. }
  2183. }
  2184. return be_id;
  2185. }
  2186. /*
  2187. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2188. * correct AFE calibration information by comparing the header information.
  2189. */
  2190. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2191. {
  2192. int acdb_id = -EINVAL;
  2193. int i = 0;
  2194. int session;
  2195. int port_type = afe_get_port_type(port_id);
  2196. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2197. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2198. __func__, port_id, be_id, port_type);
  2199. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2200. session = SESSION_TYPE_TX;
  2201. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2202. session = SESSION_TYPE_RX;
  2203. } else {
  2204. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2205. acdb_id = -EINVAL;
  2206. goto exit;
  2207. }
  2208. if (be_id < 0) {
  2209. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2210. goto exit;
  2211. }
  2212. mutex_lock(&routing_lock);
  2213. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2214. MSM_FRONTEND_DAI_MAX);
  2215. if (i < MSM_FRONTEND_DAI_MAX)
  2216. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2217. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2218. __func__, i, session, be_id, acdb_id);
  2219. mutex_unlock(&routing_lock);
  2220. exit:
  2221. return acdb_id;
  2222. }
  2223. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2224. struct snd_ctl_elem_value *ucontrol)
  2225. {
  2226. ucontrol->value.integer.value[0] = fm_switch_enable;
  2227. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2228. ucontrol->value.integer.value[0]);
  2229. return 0;
  2230. }
  2231. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2232. struct snd_ctl_elem_value *ucontrol)
  2233. {
  2234. struct snd_soc_dapm_widget *widget =
  2235. snd_soc_dapm_kcontrol_widget(kcontrol);
  2236. struct snd_soc_dapm_update *update = NULL;
  2237. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2238. ucontrol->value.integer.value[0]);
  2239. if (ucontrol->value.integer.value[0])
  2240. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2241. update);
  2242. else
  2243. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2244. update);
  2245. fm_switch_enable = ucontrol->value.integer.value[0];
  2246. return 1;
  2247. }
  2248. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2249. struct snd_ctl_elem_value *ucontrol)
  2250. {
  2251. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2252. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2253. ucontrol->value.integer.value[0]);
  2254. return 0;
  2255. }
  2256. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2257. struct snd_ctl_elem_value *ucontrol)
  2258. {
  2259. struct snd_soc_dapm_widget *widget =
  2260. snd_soc_dapm_kcontrol_widget(kcontrol);
  2261. struct snd_soc_dapm_update *update = NULL;
  2262. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2263. ucontrol->value.integer.value[0]);
  2264. if (ucontrol->value.integer.value[0])
  2265. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2266. 1, update);
  2267. else
  2268. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2269. 0, update);
  2270. hfp_switch_enable = ucontrol->value.integer.value[0];
  2271. return 1;
  2272. }
  2273. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2274. struct snd_ctl_elem_value *ucontrol)
  2275. {
  2276. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2277. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2278. ucontrol->value.integer.value[0]);
  2279. return 0;
  2280. }
  2281. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2282. struct snd_ctl_elem_value *ucontrol)
  2283. {
  2284. struct snd_soc_dapm_widget *widget =
  2285. snd_soc_dapm_kcontrol_widget(kcontrol);
  2286. struct snd_soc_dapm_update *update = NULL;
  2287. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2288. ucontrol->value.integer.value[0]);
  2289. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2290. if (a2dp_switch_enable)
  2291. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2292. 1, update);
  2293. else
  2294. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2295. 0, update);
  2296. return 1;
  2297. }
  2298. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2299. struct snd_ctl_elem_value *ucontrol)
  2300. {
  2301. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2302. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2303. ucontrol->value.integer.value[0]);
  2304. return 0;
  2305. }
  2306. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2307. struct snd_ctl_elem_value *ucontrol)
  2308. {
  2309. struct snd_soc_dapm_widget *widget =
  2310. snd_soc_dapm_kcontrol_widget(kcontrol);
  2311. struct snd_soc_dapm_update *update = NULL;
  2312. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2313. ucontrol->value.integer.value[0]);
  2314. if (ucontrol->value.integer.value[0])
  2315. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2316. update);
  2317. else
  2318. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2319. update);
  2320. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2321. return 1;
  2322. }
  2323. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2324. struct snd_ctl_elem_value *ucontrol)
  2325. {
  2326. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2327. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2328. ucontrol->value.integer.value[0]);
  2329. return 0;
  2330. }
  2331. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2332. struct snd_ctl_elem_value *ucontrol)
  2333. {
  2334. struct snd_soc_dapm_widget *widget =
  2335. snd_soc_dapm_kcontrol_widget(kcontrol);
  2336. struct snd_soc_dapm_update *update = NULL;
  2337. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2338. ucontrol->value.integer.value[0]);
  2339. if (ucontrol->value.integer.value[0])
  2340. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2341. update);
  2342. else
  2343. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2344. update);
  2345. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2346. return 1;
  2347. }
  2348. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2349. struct snd_ctl_elem_value *ucontrol)
  2350. {
  2351. ucontrol->value.integer.value[0] = usb_switch_enable;
  2352. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2353. ucontrol->value.integer.value[0]);
  2354. return 0;
  2355. }
  2356. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. struct snd_soc_dapm_widget *widget =
  2360. snd_soc_dapm_kcontrol_widget(kcontrol);
  2361. struct snd_soc_dapm_update *update = NULL;
  2362. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2363. ucontrol->value.integer.value[0]);
  2364. if (ucontrol->value.integer.value[0])
  2365. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2366. 1, update);
  2367. else
  2368. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2369. 0, update);
  2370. usb_switch_enable = ucontrol->value.integer.value[0];
  2371. return 1;
  2372. }
  2373. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2374. struct snd_ctl_elem_value *ucontrol)
  2375. {
  2376. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2377. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2378. ucontrol->value.integer.value[0]);
  2379. return 0;
  2380. }
  2381. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2382. struct snd_ctl_elem_value *ucontrol)
  2383. {
  2384. struct snd_soc_dapm_widget *widget =
  2385. snd_soc_dapm_kcontrol_widget(kcontrol);
  2386. struct snd_soc_dapm_update *update = NULL;
  2387. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2388. ucontrol->value.integer.value[0]);
  2389. if (ucontrol->value.integer.value[0])
  2390. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2391. update);
  2392. else
  2393. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2394. update);
  2395. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2396. return 1;
  2397. }
  2398. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2399. struct snd_ctl_elem_value *ucontrol)
  2400. {
  2401. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2402. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2403. ucontrol->value.integer.value[0]);
  2404. return 0;
  2405. }
  2406. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2407. struct snd_ctl_elem_value *ucontrol)
  2408. {
  2409. struct snd_soc_dapm_widget *widget =
  2410. snd_soc_dapm_kcontrol_widget(kcontrol);
  2411. struct snd_soc_dapm_update *update = NULL;
  2412. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2413. ucontrol->value.integer.value[0]);
  2414. if (ucontrol->value.integer.value[0])
  2415. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2416. update);
  2417. else
  2418. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2419. update);
  2420. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2421. return 1;
  2422. }
  2423. static int msm_routing_get_tert_mi2s_switch_mixer(
  2424. struct snd_kcontrol *kcontrol,
  2425. struct snd_ctl_elem_value *ucontrol)
  2426. {
  2427. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2428. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2429. ucontrol->value.integer.value[0]);
  2430. return 0;
  2431. }
  2432. static int msm_routing_put_tert_mi2s_switch_mixer(
  2433. struct snd_kcontrol *kcontrol,
  2434. struct snd_ctl_elem_value *ucontrol)
  2435. {
  2436. struct snd_soc_dapm_widget *widget =
  2437. snd_soc_dapm_kcontrol_widget(kcontrol);
  2438. struct snd_soc_dapm_update *update = NULL;
  2439. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2440. ucontrol->value.integer.value[0]);
  2441. if (ucontrol->value.integer.value[0])
  2442. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2443. update);
  2444. else
  2445. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2446. update);
  2447. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2448. return 1;
  2449. }
  2450. static int msm_routing_get_quat_mi2s_switch_mixer(
  2451. struct snd_kcontrol *kcontrol,
  2452. struct snd_ctl_elem_value *ucontrol)
  2453. {
  2454. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2455. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2456. ucontrol->value.integer.value[0]);
  2457. return 0;
  2458. }
  2459. static int msm_routing_put_quat_mi2s_switch_mixer(
  2460. struct snd_kcontrol *kcontrol,
  2461. struct snd_ctl_elem_value *ucontrol)
  2462. {
  2463. struct snd_soc_dapm_widget *widget =
  2464. snd_soc_dapm_kcontrol_widget(kcontrol);
  2465. struct snd_soc_dapm_update *update = NULL;
  2466. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2467. ucontrol->value.integer.value[0]);
  2468. if (ucontrol->value.integer.value[0])
  2469. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2470. update);
  2471. else
  2472. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2473. update);
  2474. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2475. return 1;
  2476. }
  2477. static int msm_routing_get_quin_mi2s_switch_mixer(
  2478. struct snd_kcontrol *kcontrol,
  2479. struct snd_ctl_elem_value *ucontrol)
  2480. {
  2481. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2482. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2483. ucontrol->value.integer.value[0]);
  2484. return 0;
  2485. }
  2486. static int msm_routing_put_quin_mi2s_switch_mixer(
  2487. struct snd_kcontrol *kcontrol,
  2488. struct snd_ctl_elem_value *ucontrol)
  2489. {
  2490. struct snd_soc_dapm_widget *widget =
  2491. snd_soc_dapm_kcontrol_widget(kcontrol);
  2492. struct snd_soc_dapm_update *update = NULL;
  2493. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2494. ucontrol->value.integer.value[0]);
  2495. if (ucontrol->value.integer.value[0])
  2496. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2497. update);
  2498. else
  2499. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2500. update);
  2501. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2502. return 1;
  2503. }
  2504. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2505. struct snd_ctl_elem_value *ucontrol)
  2506. {
  2507. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2508. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2509. ucontrol->value.integer.value[0]);
  2510. return 0;
  2511. }
  2512. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2513. struct snd_ctl_elem_value *ucontrol)
  2514. {
  2515. struct snd_soc_dapm_widget *widget =
  2516. snd_soc_dapm_kcontrol_widget(kcontrol);
  2517. struct snd_soc_dapm_update *update = NULL;
  2518. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2519. ucontrol->value.integer.value[0]);
  2520. if (ucontrol->value.integer.value[0])
  2521. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2522. update);
  2523. else
  2524. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2525. update);
  2526. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2527. return 1;
  2528. }
  2529. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2530. struct snd_ctl_elem_value *ucontrol)
  2531. {
  2532. ucontrol->value.integer.value[0] = lsm_port_index;
  2533. return 0;
  2534. }
  2535. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2536. struct snd_ctl_elem_value *ucontrol)
  2537. {
  2538. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2539. int mux = ucontrol->value.enumerated.item[0];
  2540. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2541. if (mux >= e->items) {
  2542. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2543. return -EINVAL;
  2544. }
  2545. pr_debug("%s: LSM enable %ld\n", __func__,
  2546. ucontrol->value.integer.value[0]);
  2547. switch (ucontrol->value.integer.value[0]) {
  2548. case 1:
  2549. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2550. break;
  2551. case 2:
  2552. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2553. break;
  2554. case 3:
  2555. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2556. break;
  2557. case 4:
  2558. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2559. break;
  2560. case 5:
  2561. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2562. break;
  2563. case 6:
  2564. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2565. break;
  2566. case 7:
  2567. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2568. break;
  2569. case 8:
  2570. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2571. break;
  2572. case 9:
  2573. lsm_port = ADM_LSM_PORT_ID;
  2574. break;
  2575. case 10:
  2576. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2577. break;
  2578. case 11:
  2579. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2580. break;
  2581. case 12:
  2582. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2583. break;
  2584. case 13:
  2585. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2586. break;
  2587. case 14:
  2588. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2589. break;
  2590. case 15:
  2591. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2592. break;
  2593. default:
  2594. pr_err("Default lsm port");
  2595. break;
  2596. }
  2597. set_lsm_port(lsm_port);
  2598. lsm_port_index = ucontrol->value.integer.value[0];
  2599. return 0;
  2600. }
  2601. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2602. struct snd_ctl_elem_value *ucontrol)
  2603. {
  2604. int i;
  2605. u16 port_id;
  2606. enum afe_mad_type mad_type;
  2607. pr_debug("%s: enter\n", __func__);
  2608. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2609. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2610. strlen(lsm_port_text[i])))
  2611. break;
  2612. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2613. pr_warn("%s: Invalid id name %s\n", __func__,
  2614. kcontrol->id.name);
  2615. return -EINVAL;
  2616. }
  2617. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2618. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2619. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2620. strlen(lsm_port_text[7])))
  2621. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2622. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2623. strlen(lsm_port_text[8])))
  2624. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2625. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2626. strlen(lsm_port_text[10])))
  2627. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2628. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2629. strlen(lsm_port_text[13])))
  2630. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2631. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2632. strlen(lsm_port_text[14])))
  2633. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2634. mad_type = afe_port_get_mad_type(port_id);
  2635. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2636. mad_type);
  2637. switch (mad_type) {
  2638. case MAD_HW_NONE:
  2639. ucontrol->value.integer.value[0] = MADNONE;
  2640. break;
  2641. case MAD_HW_AUDIO:
  2642. ucontrol->value.integer.value[0] = MADAUDIO;
  2643. break;
  2644. case MAD_HW_BEACON:
  2645. ucontrol->value.integer.value[0] = MADBEACON;
  2646. break;
  2647. case MAD_HW_ULTRASOUND:
  2648. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2649. break;
  2650. case MAD_SW_AUDIO:
  2651. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2652. break;
  2653. default:
  2654. pr_warn("%s: Unknown\n", __func__);
  2655. return -EINVAL;
  2656. }
  2657. return 0;
  2658. }
  2659. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2660. struct snd_ctl_elem_value *ucontrol)
  2661. {
  2662. int i;
  2663. u16 port_id;
  2664. enum afe_mad_type mad_type;
  2665. pr_debug("%s: enter\n", __func__);
  2666. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2667. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2668. strlen(lsm_port_text[i])))
  2669. break;
  2670. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2671. pr_warn("%s: Invalid id name %s\n", __func__,
  2672. kcontrol->id.name);
  2673. return -EINVAL;
  2674. }
  2675. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2676. switch (ucontrol->value.integer.value[0]) {
  2677. case MADNONE:
  2678. mad_type = MAD_HW_NONE;
  2679. break;
  2680. case MADAUDIO:
  2681. mad_type = MAD_HW_AUDIO;
  2682. break;
  2683. case MADBEACON:
  2684. mad_type = MAD_HW_BEACON;
  2685. break;
  2686. case MADULTRASOUND:
  2687. mad_type = MAD_HW_ULTRASOUND;
  2688. break;
  2689. case MADSWAUDIO:
  2690. mad_type = MAD_SW_AUDIO;
  2691. break;
  2692. default:
  2693. pr_warn("%s: Unknown\n", __func__);
  2694. return -EINVAL;
  2695. }
  2696. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2697. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2698. strlen(lsm_port_text[7])))
  2699. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2700. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2701. strlen(lsm_port_text[8])))
  2702. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2703. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2704. strlen(lsm_port_text[10])))
  2705. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2706. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2707. strlen(lsm_port_text[13])))
  2708. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2709. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2710. strlen(lsm_port_text[14])))
  2711. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2712. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2713. mad_type);
  2714. return afe_port_set_mad_type(port_id, mad_type);
  2715. }
  2716. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2717. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2718. adm_override_chs_text);
  2719. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2720. {
  2721. int backend_id;
  2722. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2723. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2724. } else {
  2725. pr_err("%s: unsupported backend id: %s",
  2726. __func__, kcontrol->id.name);
  2727. return -EINVAL;
  2728. }
  2729. return backend_id;
  2730. }
  2731. static int msm_routing_adm_channel_config_get(
  2732. struct snd_kcontrol *kcontrol,
  2733. struct snd_ctl_elem_value *ucontrol)
  2734. {
  2735. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2736. if (backend_id >= 0) {
  2737. mutex_lock(&routing_lock);
  2738. ucontrol->value.integer.value[0] =
  2739. msm_bedais[backend_id].adm_override_ch;
  2740. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2741. ucontrol->value.integer.value[0], backend_id);
  2742. mutex_unlock(&routing_lock);
  2743. }
  2744. return 0;
  2745. }
  2746. static int msm_routing_adm_channel_config_put(
  2747. struct snd_kcontrol *kcontrol,
  2748. struct snd_ctl_elem_value *ucontrol)
  2749. {
  2750. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2751. if (backend_id >= 0) {
  2752. mutex_lock(&routing_lock);
  2753. msm_bedais[backend_id].adm_override_ch =
  2754. ucontrol->value.integer.value[0];
  2755. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2756. __func__, backend_id,
  2757. msm_bedais[backend_id].adm_override_ch);
  2758. mutex_unlock(&routing_lock);
  2759. }
  2760. return 0;
  2761. }
  2762. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2763. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2764. msm_routing_adm_channel_config_get,
  2765. msm_routing_adm_channel_config_put),
  2766. };
  2767. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2768. struct snd_ctl_elem_value *ucontrol)
  2769. {
  2770. mutex_lock(&routing_lock);
  2771. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2772. mutex_unlock(&routing_lock);
  2773. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2774. ucontrol->value.integer.value[0]);
  2775. return 0;
  2776. };
  2777. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2778. struct snd_ctl_elem_value *ucontrol)
  2779. {
  2780. struct aanc_data aanc_info;
  2781. mutex_lock(&routing_lock);
  2782. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2783. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2784. ucontrol->value.integer.value[0]);
  2785. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2786. if (ucontrol->value.integer.value[0] == 0) {
  2787. aanc_info.aanc_active = false;
  2788. aanc_info.aanc_tx_port = 0;
  2789. aanc_info.aanc_rx_port = 0;
  2790. } else {
  2791. aanc_info.aanc_active = true;
  2792. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2793. aanc_info.aanc_tx_port =
  2794. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2795. }
  2796. afe_set_aanc_info(&aanc_info);
  2797. mutex_unlock(&routing_lock);
  2798. return 0;
  2799. };
  2800. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2801. struct snd_ctl_elem_value *ucontrol)
  2802. {
  2803. int idx = 0, shift = 0;
  2804. struct soc_mixer_control *mc =
  2805. (struct soc_mixer_control *)kcontrol->private_value;
  2806. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2807. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2808. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2809. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2810. return -EINVAL;
  2811. }
  2812. if (test_bit(shift,
  2813. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2814. ucontrol->value.integer.value[0] = 1;
  2815. else
  2816. ucontrol->value.integer.value[0] = 0;
  2817. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2818. ucontrol->value.integer.value[0]);
  2819. return 0;
  2820. }
  2821. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2822. struct snd_ctl_elem_value *ucontrol)
  2823. {
  2824. int idx = 0, shift = 0;
  2825. struct soc_mixer_control *mc =
  2826. (struct soc_mixer_control *)kcontrol->private_value;
  2827. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2828. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2829. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2830. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2831. return -EINVAL;
  2832. }
  2833. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2834. __func__, mc->shift, mc->rshift,
  2835. ucontrol->value.integer.value[0], idx, shift);
  2836. if (ucontrol->value.integer.value[0]) {
  2837. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2838. msm_bedais[mc->rshift].port_id);
  2839. set_bit(shift,
  2840. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2841. } else {
  2842. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2843. msm_bedais[mc->rshift].port_id);
  2844. clear_bit(shift,
  2845. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2846. }
  2847. return 1;
  2848. }
  2849. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2850. struct snd_ctl_elem_value *ucontrol)
  2851. {
  2852. u16 fe_id = 0;
  2853. fe_id = ((struct soc_mixer_control *)
  2854. kcontrol->private_value)->shift;
  2855. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2856. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2857. return -EINVAL;
  2858. }
  2859. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2860. return 0;
  2861. }
  2862. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2863. struct snd_ctl_elem_value *ucontrol)
  2864. {
  2865. u16 fe_id = 0;
  2866. fe_id = ((struct soc_mixer_control *)
  2867. kcontrol->private_value)->shift;
  2868. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2869. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2870. return -EINVAL;
  2871. }
  2872. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2873. return 1;
  2874. }
  2875. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2876. struct snd_ctl_elem_value *ucontrol)
  2877. {
  2878. u16 fe_id = 0;
  2879. fe_id = ((struct soc_multi_mixer_control *)
  2880. kcontrol->private_value)->shift;
  2881. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2882. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2883. return -EINVAL;
  2884. }
  2885. ucontrol->value.integer.value[0] =
  2886. channel_mixer[fe_id].output_channel;
  2887. return 0;
  2888. }
  2889. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2890. struct snd_ctl_elem_value *ucontrol)
  2891. {
  2892. u16 fe_id = 0;
  2893. fe_id = ((struct soc_multi_mixer_control *)
  2894. kcontrol->private_value)->shift;
  2895. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2896. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2897. return -EINVAL;
  2898. }
  2899. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2900. fe_id,
  2901. (unsigned int)(ucontrol->value.integer.value[0]));
  2902. channel_mixer[fe_id].output_channel =
  2903. (unsigned int)(ucontrol->value.integer.value[0]);
  2904. return 1;
  2905. }
  2906. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2907. /* If new backend is added, need update this array */
  2908. static const char *const be_name[] = {
  2909. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2910. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2911. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2912. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2913. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2914. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2915. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2916. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2917. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2918. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2919. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2920. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2921. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2922. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2923. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2924. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2925. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2926. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2927. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2928. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2929. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2930. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2931. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2932. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2933. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2934. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2935. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2936. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2937. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2938. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2939. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2940. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2941. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2942. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2943. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  2944. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  2945. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  2946. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  2947. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  2948. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  2949. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  2950. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  2951. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  2952. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2953. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2954. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2955. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2956. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2957. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX"
  2958. };
  2959. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2960. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2961. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2962. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2963. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2964. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2965. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2966. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2967. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2968. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2969. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2970. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2971. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2972. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2973. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2974. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2975. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2976. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2977. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2978. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2979. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2980. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2981. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2982. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2983. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2984. unsigned int channels,
  2985. unsigned int items, const char *const names[])
  2986. {
  2987. if (uinfo->value.enumerated.item >= items)
  2988. uinfo->value.enumerated.item = items - 1;
  2989. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2990. sizeof(uinfo->value.enumerated.name),
  2991. "ALSA: too long item name '%s'\n",
  2992. names[uinfo->value.enumerated.item]);
  2993. strlcpy(uinfo->value.enumerated.name,
  2994. names[uinfo->value.enumerated.item],
  2995. sizeof(uinfo->value.enumerated.name));
  2996. return 0;
  2997. }
  2998. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2999. struct snd_ctl_elem_info *uinfo)
  3000. {
  3001. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3002. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3003. uinfo->count = 1;
  3004. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3005. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3006. return 0;
  3007. }
  3008. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3009. struct snd_ctl_elem_value *ucontrol)
  3010. {
  3011. u16 fe_id = 0;
  3012. fe_id = ((struct soc_enum *)
  3013. kcontrol->private_value)->shift_l;
  3014. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3015. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3016. return -EINVAL;
  3017. }
  3018. pr_debug("%s: FE %d %s\n", __func__,
  3019. fe_id,
  3020. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3021. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3022. return 0;
  3023. }
  3024. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3025. struct snd_ctl_elem_value *ucontrol)
  3026. {
  3027. u16 fe_id = 0;
  3028. fe_id = ((struct soc_enum *)
  3029. kcontrol->private_value)->shift_l;
  3030. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3031. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3032. return -EINVAL;
  3033. }
  3034. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3035. pr_debug("%s: %s FE %d\n", __func__,
  3036. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3037. fe_id);
  3038. return 0;
  3039. }
  3040. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3041. struct snd_ctl_elem_info *uinfo)
  3042. {
  3043. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3044. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3045. uinfo->count = 1;
  3046. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3047. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3048. return 0;
  3049. }
  3050. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3051. struct snd_ctl_elem_value *ucontrol)
  3052. {
  3053. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3054. u16 fe_id = 0, in_ch = 0;
  3055. fe_id = e->shift_l;
  3056. in_ch = e->shift_r;
  3057. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3058. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3059. return -EINVAL;
  3060. }
  3061. if (in_ch >= ADM_MAX_CHANNELS) {
  3062. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3063. return -EINVAL;
  3064. }
  3065. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3066. return 1;
  3067. }
  3068. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3069. struct snd_ctl_elem_value *ucontrol)
  3070. {
  3071. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3072. u16 fe_id = 0, in_ch = 0;
  3073. fe_id = e->shift_l;
  3074. in_ch = e->shift_r;
  3075. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3076. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3077. return -EINVAL;
  3078. }
  3079. if (in_ch >= ADM_MAX_CHANNELS) {
  3080. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3081. return -EINVAL;
  3082. }
  3083. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3084. return 1;
  3085. }
  3086. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3087. struct snd_ctl_elem_info *uinfo)
  3088. {
  3089. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3090. uinfo->count = ADM_MAX_CHANNELS;
  3091. uinfo->value.integer.min = 0;
  3092. uinfo->value.integer.max = WEIGHT_0_DB;
  3093. return 0;
  3094. }
  3095. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3096. struct snd_ctl_elem_value *ucontrol)
  3097. {
  3098. u16 fe_id = 0, out_ch = 0;
  3099. int i, weight;
  3100. fe_id = ((struct soc_multi_mixer_control *)
  3101. kcontrol->private_value)->shift;
  3102. out_ch = ((struct soc_multi_mixer_control *)
  3103. kcontrol->private_value)->rshift;
  3104. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3105. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3106. return -EINVAL;
  3107. }
  3108. if (out_ch >= ADM_MAX_CHANNELS) {
  3109. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3110. return -EINVAL;
  3111. }
  3112. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3113. __func__, fe_id,
  3114. ucontrol->value.integer.value[0],
  3115. ucontrol->value.integer.value[1],
  3116. ucontrol->value.integer.value[2],
  3117. ucontrol->value.integer.value[3],
  3118. ucontrol->value.integer.value[4],
  3119. ucontrol->value.integer.value[5],
  3120. ucontrol->value.integer.value[6],
  3121. ucontrol->value.integer.value[7]);
  3122. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3123. weight = ucontrol->value.integer.value[i];
  3124. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3125. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3126. __func__, fe_id, out_ch, i,
  3127. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3128. }
  3129. return 0;
  3130. }
  3131. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3132. struct snd_ctl_elem_value *ucontrol)
  3133. {
  3134. u16 fe_id = 0, out_ch = 0;
  3135. int i;
  3136. fe_id = ((struct soc_multi_mixer_control *)
  3137. kcontrol->private_value)->shift;
  3138. out_ch = ((struct soc_multi_mixer_control *)
  3139. kcontrol->private_value)->rshift;
  3140. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3141. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3142. return -EINVAL;
  3143. }
  3144. if (out_ch >= ADM_MAX_CHANNELS) {
  3145. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3146. return -EINVAL;
  3147. }
  3148. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3149. ucontrol->value.integer.value[i] =
  3150. channel_mixer[fe_id].channel_weight[out_ch][i];
  3151. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3152. __func__, fe_id,
  3153. ucontrol->value.integer.value[0],
  3154. ucontrol->value.integer.value[1],
  3155. ucontrol->value.integer.value[2],
  3156. ucontrol->value.integer.value[3],
  3157. ucontrol->value.integer.value[4],
  3158. ucontrol->value.integer.value[5],
  3159. ucontrol->value.integer.value[6],
  3160. ucontrol->value.integer.value[7]);
  3161. return 0;
  3162. }
  3163. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3164. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3165. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3166. msm_pcm_get_channel_rule_index,
  3167. msm_pcm_put_channel_rule_index),
  3168. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3169. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3170. msm_pcm_get_channel_rule_index,
  3171. msm_pcm_put_channel_rule_index),
  3172. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3173. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3174. msm_pcm_get_channel_rule_index,
  3175. msm_pcm_put_channel_rule_index),
  3176. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3177. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3178. msm_pcm_get_channel_rule_index,
  3179. msm_pcm_put_channel_rule_index),
  3180. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3181. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3182. msm_pcm_get_channel_rule_index,
  3183. msm_pcm_put_channel_rule_index),
  3184. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3185. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3186. msm_pcm_get_channel_rule_index,
  3187. msm_pcm_put_channel_rule_index),
  3188. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3189. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3190. msm_pcm_get_out_chs,
  3191. msm_pcm_put_out_chs),
  3192. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3193. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3194. msm_pcm_get_out_chs,
  3195. msm_pcm_put_out_chs),
  3196. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3197. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3198. msm_pcm_get_out_chs,
  3199. msm_pcm_put_out_chs),
  3200. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3201. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3202. msm_pcm_get_out_chs,
  3203. msm_pcm_put_out_chs),
  3204. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3205. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3206. msm_pcm_get_out_chs,
  3207. msm_pcm_put_out_chs),
  3208. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3209. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3210. msm_pcm_get_out_chs,
  3211. msm_pcm_put_out_chs),
  3212. {
  3213. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3214. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3215. .name = "MultiMedia1 Channel Mixer",
  3216. .info = msm_pcm_channel_mixer_info,
  3217. .get = msm_pcm_channel_mixer_get,
  3218. .put = msm_pcm_channel_mixer_put,
  3219. .private_value = (unsigned long)&(mm1_channel_mux)
  3220. },
  3221. {
  3222. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3223. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3224. .name = "MultiMedia2 Channel Mixer",
  3225. .info = msm_pcm_channel_mixer_info,
  3226. .get = msm_pcm_channel_mixer_get,
  3227. .put = msm_pcm_channel_mixer_put,
  3228. .private_value = (unsigned long)&(mm2_channel_mux)
  3229. },
  3230. {
  3231. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3232. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3233. .name = "MultiMedia3 Channel Mixer",
  3234. .info = msm_pcm_channel_mixer_info,
  3235. .get = msm_pcm_channel_mixer_get,
  3236. .put = msm_pcm_channel_mixer_put,
  3237. .private_value = (unsigned long)&(mm3_channel_mux)
  3238. },
  3239. {
  3240. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3241. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3242. .name = "MultiMedia4 Channel Mixer",
  3243. .info = msm_pcm_channel_mixer_info,
  3244. .get = msm_pcm_channel_mixer_get,
  3245. .put = msm_pcm_channel_mixer_put,
  3246. .private_value = (unsigned long)&(mm4_channel_mux)
  3247. },
  3248. {
  3249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3251. .name = "MultiMedia1 Output Channel1",
  3252. .info = msm_pcm_channel_weight_info,
  3253. .get = msm_pcm_channel_weight_get,
  3254. .put = msm_pcm_channel_weight_put,
  3255. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3256. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3257. },
  3258. {
  3259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3261. .name = "MultiMedia1 Output Channel2",
  3262. .info = msm_pcm_channel_weight_info,
  3263. .get = msm_pcm_channel_weight_get,
  3264. .put = msm_pcm_channel_weight_put,
  3265. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3266. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3267. },
  3268. {
  3269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3271. .name = "MultiMedia1 Output Channel3",
  3272. .info = msm_pcm_channel_weight_info,
  3273. .get = msm_pcm_channel_weight_get,
  3274. .put = msm_pcm_channel_weight_put,
  3275. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3276. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3277. },
  3278. {
  3279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3281. .name = "MultiMedia1 Output Channel4",
  3282. .info = msm_pcm_channel_weight_info,
  3283. .get = msm_pcm_channel_weight_get,
  3284. .put = msm_pcm_channel_weight_put,
  3285. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3286. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3287. },
  3288. {
  3289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3291. .name = "MultiMedia1 Output Channel5",
  3292. .info = msm_pcm_channel_weight_info,
  3293. .get = msm_pcm_channel_weight_get,
  3294. .put = msm_pcm_channel_weight_put,
  3295. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3296. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3297. },
  3298. {
  3299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3301. .name = "MultiMedia1 Output Channel6",
  3302. .info = msm_pcm_channel_weight_info,
  3303. .get = msm_pcm_channel_weight_get,
  3304. .put = msm_pcm_channel_weight_put,
  3305. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3306. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3307. },
  3308. {
  3309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3311. .name = "MultiMedia1 Output Channel7",
  3312. .info = msm_pcm_channel_weight_info,
  3313. .get = msm_pcm_channel_weight_get,
  3314. .put = msm_pcm_channel_weight_put,
  3315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3317. },
  3318. {
  3319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3321. .name = "MultiMedia1 Output Channel8",
  3322. .info = msm_pcm_channel_weight_info,
  3323. .get = msm_pcm_channel_weight_get,
  3324. .put = msm_pcm_channel_weight_put,
  3325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3327. },
  3328. {
  3329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3331. .name = "MultiMedia2 Output Channel1",
  3332. .info = msm_pcm_channel_weight_info,
  3333. .get = msm_pcm_channel_weight_get,
  3334. .put = msm_pcm_channel_weight_put,
  3335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3336. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3337. },
  3338. {
  3339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3341. .name = "MultiMedia2 Output Channel2",
  3342. .info = msm_pcm_channel_weight_info,
  3343. .get = msm_pcm_channel_weight_get,
  3344. .put = msm_pcm_channel_weight_put,
  3345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3346. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3347. },
  3348. {
  3349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3351. .name = "MultiMedia2 Output Channel3",
  3352. .info = msm_pcm_channel_weight_info,
  3353. .get = msm_pcm_channel_weight_get,
  3354. .put = msm_pcm_channel_weight_put,
  3355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3356. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3357. },
  3358. {
  3359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3361. .name = "MultiMedia3 Output Channel1",
  3362. .info = msm_pcm_channel_weight_info,
  3363. .get = msm_pcm_channel_weight_get,
  3364. .put = msm_pcm_channel_weight_put,
  3365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3366. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3367. },
  3368. {
  3369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3371. .name = "MultiMedia3 Output Channel2",
  3372. .info = msm_pcm_channel_weight_info,
  3373. .get = msm_pcm_channel_weight_get,
  3374. .put = msm_pcm_channel_weight_put,
  3375. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3376. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3377. },
  3378. {
  3379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3381. .name = "MultiMedia1 Channel1",
  3382. .info = msm_pcm_channel_input_be_info,
  3383. .get = msm_pcm_channel_input_be_get,
  3384. .put = msm_pcm_channel_input_be_put,
  3385. .private_value = (unsigned long)&(mm1_ch1_enum)
  3386. },
  3387. {
  3388. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3389. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3390. .name = "MultiMedia1 Channel2",
  3391. .info = msm_pcm_channel_input_be_info,
  3392. .get = msm_pcm_channel_input_be_get,
  3393. .put = msm_pcm_channel_input_be_put,
  3394. .private_value = (unsigned long)&(mm1_ch2_enum)
  3395. },
  3396. {
  3397. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3398. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3399. .name = "MultiMedia1 Channel3",
  3400. .info = msm_pcm_channel_input_be_info,
  3401. .get = msm_pcm_channel_input_be_get,
  3402. .put = msm_pcm_channel_input_be_put,
  3403. .private_value = (unsigned long)&(mm1_ch3_enum)
  3404. },
  3405. {
  3406. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3407. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3408. .name = "MultiMedia1 Channel4",
  3409. .info = msm_pcm_channel_input_be_info,
  3410. .get = msm_pcm_channel_input_be_get,
  3411. .put = msm_pcm_channel_input_be_put,
  3412. .private_value = (unsigned long)&(mm1_ch4_enum)
  3413. },
  3414. {
  3415. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3416. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3417. .name = "MultiMedia1 Channel5",
  3418. .info = msm_pcm_channel_input_be_info,
  3419. .get = msm_pcm_channel_input_be_get,
  3420. .put = msm_pcm_channel_input_be_put,
  3421. .private_value = (unsigned long)&(mm1_ch5_enum)
  3422. },
  3423. {
  3424. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3425. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3426. .name = "MultiMedia1 Channel6",
  3427. .info = msm_pcm_channel_input_be_info,
  3428. .get = msm_pcm_channel_input_be_get,
  3429. .put = msm_pcm_channel_input_be_put,
  3430. .private_value = (unsigned long)&(mm1_ch6_enum)
  3431. },
  3432. {
  3433. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3434. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3435. .name = "MultiMedia1 Channel7",
  3436. .info = msm_pcm_channel_input_be_info,
  3437. .get = msm_pcm_channel_input_be_get,
  3438. .put = msm_pcm_channel_input_be_put,
  3439. .private_value = (unsigned long)&(mm1_ch7_enum)
  3440. },
  3441. {
  3442. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3443. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3444. .name = "MultiMedia1 Channel8",
  3445. .info = msm_pcm_channel_input_be_info,
  3446. .get = msm_pcm_channel_input_be_get,
  3447. .put = msm_pcm_channel_input_be_put,
  3448. .private_value = (unsigned long)&(mm1_ch8_enum)
  3449. },
  3450. };
  3451. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3452. struct snd_ctl_elem_value *ucontrol)
  3453. {
  3454. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3455. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3456. ucontrol->value.integer.value[0]);
  3457. return 0;
  3458. }
  3459. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3460. struct snd_ctl_elem_value *ucontrol)
  3461. {
  3462. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3463. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3464. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3465. return 0;
  3466. }
  3467. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  3468. struct snd_ctl_elem_value *ucontrol)
  3469. {
  3470. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  3471. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  3472. ucontrol->value.integer.value[0]);
  3473. return 0;
  3474. }
  3475. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  3476. struct snd_ctl_elem_value *ucontrol)
  3477. {
  3478. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  3479. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  3480. __func__, msm_ec_ref_ch_downmixed);
  3481. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  3482. return 0;
  3483. }
  3484. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  3485. struct snd_ctl_elem_value *ucontrol)
  3486. {
  3487. int i = 0, ret = 0;
  3488. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  3489. int out_channel_idx = ((struct soc_multi_mixer_control *)
  3490. kcontrol->private_value)->shift;
  3491. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  3492. weights[i] = ucontrol->value.integer.value[i];
  3493. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  3494. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  3495. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  3496. return ret;
  3497. }
  3498. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3499. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  3500. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  3501. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3502. struct snd_ctl_elem_value *ucontrol)
  3503. {
  3504. switch (msm_ec_ref_bit_format) {
  3505. case SNDRV_PCM_FORMAT_S24_LE:
  3506. ucontrol->value.integer.value[0] = 2;
  3507. break;
  3508. case SNDRV_PCM_FORMAT_S16_LE:
  3509. ucontrol->value.integer.value[0] = 1;
  3510. break;
  3511. default:
  3512. ucontrol->value.integer.value[0] = 0;
  3513. break;
  3514. }
  3515. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3516. __func__, ucontrol->value.integer.value[0]);
  3517. return 0;
  3518. }
  3519. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3520. struct snd_ctl_elem_value *ucontrol)
  3521. {
  3522. u16 bit_width = 0;
  3523. switch (ucontrol->value.integer.value[0]) {
  3524. case 2:
  3525. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3526. break;
  3527. case 1:
  3528. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3529. break;
  3530. default:
  3531. msm_ec_ref_bit_format = 0;
  3532. break;
  3533. }
  3534. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3535. bit_width = 16;
  3536. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3537. bit_width = 24;
  3538. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3539. __func__, msm_ec_ref_bit_format);
  3540. adm_ec_ref_rx_bit_width(bit_width);
  3541. return 0;
  3542. }
  3543. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3544. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3545. struct snd_ctl_elem_value *ucontrol)
  3546. {
  3547. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3548. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3549. __func__, ucontrol->value.integer.value[0]);
  3550. return 0;
  3551. }
  3552. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3553. struct snd_ctl_elem_value *ucontrol)
  3554. {
  3555. switch (ucontrol->value.integer.value[0]) {
  3556. case 0:
  3557. msm_ec_ref_sampling_rate = 0;
  3558. break;
  3559. case 1:
  3560. msm_ec_ref_sampling_rate = 8000;
  3561. break;
  3562. case 2:
  3563. msm_ec_ref_sampling_rate = 16000;
  3564. break;
  3565. case 3:
  3566. msm_ec_ref_sampling_rate = 32000;
  3567. break;
  3568. case 4:
  3569. msm_ec_ref_sampling_rate = 44100;
  3570. break;
  3571. case 5:
  3572. msm_ec_ref_sampling_rate = 48000;
  3573. break;
  3574. case 6:
  3575. msm_ec_ref_sampling_rate = 96000;
  3576. break;
  3577. case 7:
  3578. msm_ec_ref_sampling_rate = 192000;
  3579. break;
  3580. case 8:
  3581. msm_ec_ref_sampling_rate = 384000;
  3582. break;
  3583. default:
  3584. msm_ec_ref_sampling_rate = 48000;
  3585. break;
  3586. }
  3587. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3588. __func__, msm_ec_ref_sampling_rate);
  3589. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3590. return 0;
  3591. }
  3592. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3593. "32000", "44100", "48000", "96000", "192000", "384000"};
  3594. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3595. SOC_ENUM_SINGLE_EXT(17, ec_ref_ch_text),
  3596. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3597. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3598. };
  3599. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3600. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3601. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3602. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3603. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3604. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3605. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3606. SOC_ENUM_EXT("EC Reference Downmixed Channels", msm_route_ec_ref_params_enum[0],
  3607. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  3608. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM, 0,
  3609. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3610. NULL, msm_ec_ref_chmixer_weights_put),
  3611. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM, 1,
  3612. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3613. NULL, msm_ec_ref_chmixer_weights_put),
  3614. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM, 2,
  3615. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3616. NULL, msm_ec_ref_chmixer_weights_put),
  3617. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM, 3,
  3618. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3619. NULL, msm_ec_ref_chmixer_weights_put),
  3620. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM, 4,
  3621. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3622. NULL, msm_ec_ref_chmixer_weights_put),
  3623. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM, 5,
  3624. 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8,
  3625. NULL, msm_ec_ref_chmixer_weights_put),
  3626. };
  3627. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3628. struct snd_ctl_elem_value *ucontrol)
  3629. {
  3630. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3631. mutex_lock(&routing_lock);
  3632. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3633. mutex_unlock(&routing_lock);
  3634. return 0;
  3635. }
  3636. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3637. struct snd_ctl_elem_value *ucontrol)
  3638. {
  3639. int ec_ref_port_id;
  3640. struct snd_soc_dapm_widget *widget =
  3641. snd_soc_dapm_kcontrol_widget(kcontrol);
  3642. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3643. struct snd_soc_dapm_update *update = NULL;
  3644. mutex_lock(&routing_lock);
  3645. switch (ucontrol->value.integer.value[0]) {
  3646. case 0:
  3647. msm_route_ec_ref_rx = 0;
  3648. ec_ref_port_id = AFE_PORT_INVALID;
  3649. break;
  3650. case 1:
  3651. msm_route_ec_ref_rx = 1;
  3652. ec_ref_port_id = SLIMBUS_0_RX;
  3653. break;
  3654. case 2:
  3655. msm_route_ec_ref_rx = 2;
  3656. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3657. break;
  3658. case 3:
  3659. msm_route_ec_ref_rx = 3;
  3660. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3661. break;
  3662. case 4:
  3663. msm_route_ec_ref_rx = 4;
  3664. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3665. break;
  3666. case 5:
  3667. msm_route_ec_ref_rx = 5;
  3668. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3669. break;
  3670. case 6:
  3671. msm_route_ec_ref_rx = 6;
  3672. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3673. break;
  3674. case 7:
  3675. msm_route_ec_ref_rx = 7;
  3676. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3677. break;
  3678. case 9:
  3679. msm_route_ec_ref_rx = 9;
  3680. ec_ref_port_id = SLIMBUS_5_RX;
  3681. break;
  3682. case 10:
  3683. msm_route_ec_ref_rx = 10;
  3684. ec_ref_port_id = SLIMBUS_1_TX;
  3685. break;
  3686. case 11:
  3687. msm_route_ec_ref_rx = 11;
  3688. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3689. break;
  3690. case 12:
  3691. msm_route_ec_ref_rx = 12;
  3692. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3693. break;
  3694. case 13:
  3695. msm_route_ec_ref_rx = 13;
  3696. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3697. break;
  3698. case 14:
  3699. msm_route_ec_ref_rx = 14;
  3700. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3701. break;
  3702. case 15:
  3703. msm_route_ec_ref_rx = 15;
  3704. ec_ref_port_id = SLIMBUS_6_RX;
  3705. break;
  3706. case 16:
  3707. msm_route_ec_ref_rx = 16;
  3708. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3709. break;
  3710. case 17:
  3711. msm_route_ec_ref_rx = 17;
  3712. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3713. break;
  3714. case 18:
  3715. msm_route_ec_ref_rx = 18;
  3716. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3717. break;
  3718. case 19:
  3719. msm_route_ec_ref_rx = 19;
  3720. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3721. break;
  3722. case 20:
  3723. msm_route_ec_ref_rx = 20;
  3724. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3725. break;
  3726. case 21:
  3727. msm_route_ec_ref_rx = 21;
  3728. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3729. break;
  3730. case 22:
  3731. msm_route_ec_ref_rx = 22;
  3732. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3733. break;
  3734. case 23:
  3735. msm_route_ec_ref_rx = 23;
  3736. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3737. break;
  3738. case 24:
  3739. msm_route_ec_ref_rx = 24;
  3740. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3741. break;
  3742. case 25:
  3743. msm_route_ec_ref_rx = 25;
  3744. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3745. break;
  3746. case 26:
  3747. msm_route_ec_ref_rx = 26;
  3748. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3749. break;
  3750. case 27:
  3751. msm_route_ec_ref_rx = 27;
  3752. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3753. break;
  3754. case 28:
  3755. msm_route_ec_ref_rx = 28;
  3756. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3757. break;
  3758. case 29:
  3759. msm_route_ec_ref_rx = 29;
  3760. ec_ref_port_id = SLIMBUS_7_RX;
  3761. break;
  3762. case 30:
  3763. msm_route_ec_ref_rx = 30;
  3764. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3765. break;
  3766. case 31:
  3767. msm_route_ec_ref_rx = 31;
  3768. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3769. break;
  3770. case 32:
  3771. msm_route_ec_ref_rx = 32;
  3772. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3773. break;
  3774. case 33:
  3775. msm_route_ec_ref_rx = 33;
  3776. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3777. break;
  3778. case 34:
  3779. msm_route_ec_ref_rx = 34;
  3780. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3781. break;
  3782. case 35:
  3783. msm_route_ec_ref_rx = 35;
  3784. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3785. break;
  3786. case 36:
  3787. msm_route_ec_ref_rx = 36;
  3788. ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3789. break;
  3790. default:
  3791. msm_route_ec_ref_rx = 0; /* NONE */
  3792. pr_err("%s EC ref rx %ld not valid\n",
  3793. __func__, ucontrol->value.integer.value[0]);
  3794. ec_ref_port_id = AFE_PORT_INVALID;
  3795. break;
  3796. }
  3797. msm_ec_ref_port_id = ec_ref_port_id;
  3798. adm_ec_ref_rx_id(ec_ref_port_id);
  3799. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3800. __func__, msm_route_ec_ref_rx);
  3801. mutex_unlock(&routing_lock);
  3802. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3803. msm_route_ec_ref_rx, e, update);
  3804. return 0;
  3805. }
  3806. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3807. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3808. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3809. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3810. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3811. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3812. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3813. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3814. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3815. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3816. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  3817. };
  3818. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3819. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3820. };
  3821. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3822. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3823. msm_route_ec_ref_rx_enum[0],
  3824. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3825. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3826. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3827. msm_route_ec_ref_rx_enum[0],
  3828. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3829. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3830. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3831. msm_route_ec_ref_rx_enum[0],
  3832. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3833. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3834. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3835. msm_route_ec_ref_rx_enum[0],
  3836. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3837. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3838. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3839. msm_route_ec_ref_rx_enum[0],
  3840. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3841. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3842. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3843. msm_route_ec_ref_rx_enum[0],
  3844. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3845. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3846. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3847. msm_route_ec_ref_rx_enum[0],
  3848. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3849. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3850. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3851. msm_route_ec_ref_rx_enum[0],
  3852. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3853. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3854. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3855. msm_route_ec_ref_rx_enum[0],
  3856. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3857. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3858. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3859. msm_route_ec_ref_rx_enum[0],
  3860. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3861. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3862. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3863. msm_route_ec_ref_rx_enum[0],
  3864. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3865. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3866. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3867. msm_route_ec_ref_rx_enum[0],
  3868. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3869. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3870. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3871. msm_route_ec_ref_rx_enum[0],
  3872. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3873. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3874. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3875. msm_route_ec_ref_rx_enum[0],
  3876. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3877. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3878. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3879. msm_route_ec_ref_rx_enum[0],
  3880. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3881. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3882. struct snd_ctl_elem_value *ucontrol)
  3883. {
  3884. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3885. mutex_lock(&routing_lock);
  3886. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3887. mutex_unlock(&routing_lock);
  3888. return 0;
  3889. }
  3890. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3891. struct snd_ctl_elem_value *ucontrol)
  3892. {
  3893. struct snd_soc_dapm_widget *widget =
  3894. snd_soc_dapm_kcontrol_widget(kcontrol);
  3895. int mux = ucontrol->value.enumerated.item[0];
  3896. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3897. int ret = 1;
  3898. bool state = true;
  3899. uint16_t ext_ec_ref_port_id;
  3900. struct snd_soc_dapm_update *update = NULL;
  3901. if (mux >= e->items) {
  3902. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3903. return -EINVAL;
  3904. }
  3905. mutex_lock(&routing_lock);
  3906. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3907. switch (msm_route_ext_ec_ref) {
  3908. case EXT_EC_REF_PRI_MI2S_TX:
  3909. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3910. break;
  3911. case EXT_EC_REF_SEC_MI2S_TX:
  3912. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3913. break;
  3914. case EXT_EC_REF_TERT_MI2S_TX:
  3915. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3916. break;
  3917. case EXT_EC_REF_QUAT_MI2S_TX:
  3918. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3919. break;
  3920. case EXT_EC_REF_QUIN_MI2S_TX:
  3921. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3922. break;
  3923. case EXT_EC_REF_SLIM_1_TX:
  3924. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3925. break;
  3926. case EXT_EC_REF_SEC_TDM_TX:
  3927. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3928. break;
  3929. case EXT_EC_REF_NONE:
  3930. default:
  3931. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3932. state = false;
  3933. break;
  3934. }
  3935. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3936. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3937. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3938. mutex_unlock(&routing_lock);
  3939. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3940. update);
  3941. } else {
  3942. ret = -EINVAL;
  3943. mutex_unlock(&routing_lock);
  3944. }
  3945. return ret;
  3946. }
  3947. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3948. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3949. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3950. "SLIM_1_TX", "SEC_TDM_TX"};
  3951. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3952. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3953. };
  3954. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3955. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3956. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3957. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3958. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3959. MSM_BACKEND_DAI_PRI_I2S_RX,
  3960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3961. msm_routing_put_audio_mixer),
  3962. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3963. MSM_BACKEND_DAI_PRI_I2S_RX,
  3964. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3965. msm_routing_put_audio_mixer),
  3966. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3967. MSM_BACKEND_DAI_PRI_I2S_RX,
  3968. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3969. msm_routing_put_audio_mixer),
  3970. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3971. MSM_BACKEND_DAI_PRI_I2S_RX,
  3972. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3973. msm_routing_put_audio_mixer),
  3974. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3975. MSM_BACKEND_DAI_PRI_I2S_RX,
  3976. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3977. msm_routing_put_audio_mixer),
  3978. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3979. MSM_BACKEND_DAI_PRI_I2S_RX,
  3980. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3981. msm_routing_put_audio_mixer),
  3982. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3983. MSM_BACKEND_DAI_PRI_I2S_RX,
  3984. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3985. msm_routing_put_audio_mixer),
  3986. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3987. MSM_BACKEND_DAI_PRI_I2S_RX,
  3988. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3989. msm_routing_put_audio_mixer),
  3990. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3991. MSM_BACKEND_DAI_PRI_I2S_RX,
  3992. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3993. msm_routing_put_audio_mixer),
  3994. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3995. MSM_BACKEND_DAI_PRI_I2S_RX,
  3996. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3997. msm_routing_put_audio_mixer),
  3998. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3999. MSM_BACKEND_DAI_PRI_I2S_RX,
  4000. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4001. msm_routing_put_audio_mixer),
  4002. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4003. MSM_BACKEND_DAI_PRI_I2S_RX,
  4004. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4005. msm_routing_put_audio_mixer),
  4006. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4007. MSM_BACKEND_DAI_PRI_I2S_RX,
  4008. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4009. msm_routing_put_audio_mixer),
  4010. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4011. MSM_BACKEND_DAI_PRI_I2S_RX,
  4012. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4013. msm_routing_put_audio_mixer),
  4014. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4015. MSM_BACKEND_DAI_PRI_I2S_RX,
  4016. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4017. msm_routing_put_audio_mixer),
  4018. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4019. MSM_BACKEND_DAI_PRI_I2S_RX,
  4020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4021. msm_routing_put_audio_mixer),
  4022. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4023. MSM_BACKEND_DAI_PRI_I2S_RX,
  4024. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4025. msm_routing_put_audio_mixer),
  4026. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4027. MSM_BACKEND_DAI_PRI_I2S_RX,
  4028. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4029. msm_routing_put_audio_mixer),
  4030. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4031. MSM_BACKEND_DAI_PRI_I2S_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4035. MSM_BACKEND_DAI_PRI_I2S_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_PRI_I2S_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_PRI_I2S_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. };
  4047. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  4048. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4049. MSM_BACKEND_DAI_SEC_I2S_RX,
  4050. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4051. msm_routing_put_audio_mixer),
  4052. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4053. MSM_BACKEND_DAI_SEC_I2S_RX,
  4054. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4055. msm_routing_put_audio_mixer),
  4056. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4057. MSM_BACKEND_DAI_SEC_I2S_RX,
  4058. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4059. msm_routing_put_audio_mixer),
  4060. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4061. MSM_BACKEND_DAI_SEC_I2S_RX,
  4062. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4063. msm_routing_put_audio_mixer),
  4064. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4065. MSM_BACKEND_DAI_SEC_I2S_RX,
  4066. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4067. msm_routing_put_audio_mixer),
  4068. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4069. MSM_BACKEND_DAI_SEC_I2S_RX,
  4070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4071. msm_routing_put_audio_mixer),
  4072. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4073. MSM_BACKEND_DAI_SEC_I2S_RX,
  4074. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4075. msm_routing_put_audio_mixer),
  4076. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4077. MSM_BACKEND_DAI_SEC_I2S_RX,
  4078. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4079. msm_routing_put_audio_mixer),
  4080. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4081. MSM_BACKEND_DAI_SEC_I2S_RX,
  4082. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4083. msm_routing_put_audio_mixer),
  4084. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4085. MSM_BACKEND_DAI_SEC_I2S_RX,
  4086. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4087. msm_routing_put_audio_mixer),
  4088. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4089. MSM_BACKEND_DAI_SEC_I2S_RX,
  4090. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4091. msm_routing_put_audio_mixer),
  4092. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4093. MSM_BACKEND_DAI_SEC_I2S_RX,
  4094. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4095. msm_routing_put_audio_mixer),
  4096. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4097. MSM_BACKEND_DAI_SEC_I2S_RX,
  4098. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4099. msm_routing_put_audio_mixer),
  4100. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4101. MSM_BACKEND_DAI_SEC_I2S_RX,
  4102. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4103. msm_routing_put_audio_mixer),
  4104. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4105. MSM_BACKEND_DAI_SEC_I2S_RX,
  4106. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4107. msm_routing_put_audio_mixer),
  4108. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4109. MSM_BACKEND_DAI_SEC_I2S_RX,
  4110. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4111. msm_routing_put_audio_mixer),
  4112. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4113. MSM_BACKEND_DAI_SEC_I2S_RX,
  4114. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4115. msm_routing_put_audio_mixer),
  4116. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4117. MSM_BACKEND_DAI_SEC_I2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_SEC_I2S_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_SEC_I2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_SEC_I2S_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_SEC_I2S_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. };
  4137. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  4138. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4139. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4140. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4141. msm_routing_put_audio_mixer),
  4142. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4143. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4147. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4148. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4149. msm_routing_put_audio_mixer),
  4150. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4151. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4152. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4153. msm_routing_put_audio_mixer),
  4154. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4155. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4159. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4160. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4161. msm_routing_put_audio_mixer),
  4162. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4163. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4164. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4165. msm_routing_put_audio_mixer),
  4166. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4167. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4169. msm_routing_put_audio_mixer),
  4170. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4171. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4172. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4173. msm_routing_put_audio_mixer),
  4174. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4175. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4179. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4180. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4181. msm_routing_put_audio_mixer),
  4182. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4183. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4184. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4185. msm_routing_put_audio_mixer),
  4186. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4187. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4191. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4195. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4199. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. };
  4227. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4229. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4231. msm_routing_put_audio_mixer),
  4232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4233. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4235. msm_routing_put_audio_mixer),
  4236. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4237. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4241. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4242. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4243. msm_routing_put_audio_mixer),
  4244. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4245. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4247. msm_routing_put_audio_mixer),
  4248. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4249. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4253. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4254. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4255. msm_routing_put_audio_mixer),
  4256. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4257. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4259. msm_routing_put_audio_mixer),
  4260. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4261. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4265. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4267. msm_routing_put_audio_mixer),
  4268. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4269. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4270. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4271. msm_routing_put_audio_mixer),
  4272. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4273. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. };
  4317. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4318. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4319. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4320. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4321. msm_routing_put_audio_mixer),
  4322. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4323. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4327. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4329. msm_routing_put_audio_mixer),
  4330. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4331. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4333. msm_routing_put_audio_mixer),
  4334. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4335. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4336. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4337. msm_routing_put_audio_mixer),
  4338. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4339. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4340. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4341. msm_routing_put_audio_mixer),
  4342. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4343. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4344. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4345. msm_routing_put_audio_mixer),
  4346. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4347. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4349. msm_routing_put_audio_mixer),
  4350. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4351. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4352. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4353. msm_routing_put_audio_mixer),
  4354. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4355. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4359. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4363. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4367. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. };
  4387. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4388. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4389. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4393. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4395. msm_routing_put_audio_mixer),
  4396. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4397. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4399. msm_routing_put_audio_mixer),
  4400. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4401. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4405. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4407. msm_routing_put_audio_mixer),
  4408. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4409. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4410. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4411. msm_routing_put_audio_mixer),
  4412. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4413. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4417. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4419. msm_routing_put_audio_mixer),
  4420. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4421. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4422. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4423. msm_routing_put_audio_mixer),
  4424. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4425. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4426. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4427. msm_routing_put_audio_mixer),
  4428. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4429. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4430. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4431. msm_routing_put_audio_mixer),
  4432. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4433. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4437. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4438. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4439. msm_routing_put_audio_mixer),
  4440. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4441. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4442. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4443. msm_routing_put_audio_mixer),
  4444. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4445. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4449. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4453. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4457. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4461. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4465. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4469. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4473. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. };
  4477. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4478. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4511. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4515. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4519. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4523. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4527. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4531. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4547. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4551. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4555. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4556. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4557. msm_routing_put_audio_mixer),
  4558. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4559. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4560. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4561. msm_routing_put_audio_mixer),
  4562. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4563. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. };
  4567. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4568. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4569. MSM_BACKEND_DAI_MI2S_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4573. MSM_BACKEND_DAI_MI2S_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4577. MSM_BACKEND_DAI_MI2S_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4581. MSM_BACKEND_DAI_MI2S_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4585. MSM_BACKEND_DAI_MI2S_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_MI2S_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_MI2S_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4597. MSM_BACKEND_DAI_MI2S_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4601. MSM_BACKEND_DAI_MI2S_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4605. MSM_BACKEND_DAI_MI2S_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4609. MSM_BACKEND_DAI_MI2S_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4613. MSM_BACKEND_DAI_MI2S_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4617. MSM_BACKEND_DAI_MI2S_RX,
  4618. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4619. msm_routing_put_audio_mixer),
  4620. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4621. MSM_BACKEND_DAI_MI2S_RX,
  4622. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4623. msm_routing_put_audio_mixer),
  4624. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4625. MSM_BACKEND_DAI_MI2S_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4629. MSM_BACKEND_DAI_MI2S_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4633. MSM_BACKEND_DAI_MI2S_RX,
  4634. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4635. msm_routing_put_audio_mixer),
  4636. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4637. MSM_BACKEND_DAI_MI2S_RX,
  4638. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4639. msm_routing_put_audio_mixer),
  4640. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4641. MSM_BACKEND_DAI_MI2S_RX,
  4642. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4643. msm_routing_put_audio_mixer),
  4644. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4645. MSM_BACKEND_DAI_MI2S_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4649. MSM_BACKEND_DAI_MI2S_RX,
  4650. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4651. msm_routing_put_audio_mixer),
  4652. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4653. MSM_BACKEND_DAI_MI2S_RX,
  4654. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4655. msm_routing_put_audio_mixer),
  4656. };
  4657. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4658. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4691. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4695. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4699. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4703. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4704. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4705. msm_routing_put_audio_mixer),
  4706. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4707. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4711. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4712. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4713. msm_routing_put_audio_mixer),
  4714. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4715. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4716. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4717. msm_routing_put_audio_mixer),
  4718. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4719. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4723. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4724. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4725. msm_routing_put_audio_mixer),
  4726. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4727. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4728. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4729. msm_routing_put_audio_mixer),
  4730. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4731. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4735. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4736. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4737. msm_routing_put_audio_mixer),
  4738. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4739. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4740. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4741. msm_routing_put_audio_mixer),
  4742. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4743. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. };
  4747. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4748. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4761. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4765. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4769. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4773. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4774. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4775. msm_routing_put_audio_mixer),
  4776. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4777. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4779. msm_routing_put_audio_mixer),
  4780. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4781. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4785. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4786. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4787. msm_routing_put_audio_mixer),
  4788. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4789. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4790. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4791. msm_routing_put_audio_mixer),
  4792. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4793. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4797. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4798. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4799. msm_routing_put_audio_mixer),
  4800. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4801. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4802. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4803. msm_routing_put_audio_mixer),
  4804. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4805. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4809. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4810. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4811. msm_routing_put_audio_mixer),
  4812. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4813. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4817. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4821. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4822. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4823. msm_routing_put_audio_mixer),
  4824. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4825. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4829. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4830. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4831. msm_routing_put_audio_mixer),
  4832. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4833. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4834. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4835. msm_routing_put_audio_mixer),
  4836. };
  4837. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4838. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4847. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4851. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4855. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4859. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4860. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4861. msm_routing_put_audio_mixer),
  4862. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4863. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4864. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4865. msm_routing_put_audio_mixer),
  4866. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4867. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4871. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4872. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4873. msm_routing_put_audio_mixer),
  4874. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4875. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4879. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4880. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4881. msm_routing_put_audio_mixer),
  4882. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4883. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4887. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4891. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4892. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4893. msm_routing_put_audio_mixer),
  4894. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4895. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4899. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4903. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4907. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4908. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4909. msm_routing_put_audio_mixer),
  4910. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4911. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4915. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. };
  4919. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4920. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4921. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4923. msm_routing_put_audio_mixer),
  4924. };
  4925. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4926. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4947. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4951. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4955. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4959. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4963. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4967. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4971. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4975. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4979. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4980. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4981. msm_routing_put_audio_mixer),
  4982. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4983. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4984. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4985. msm_routing_put_audio_mixer),
  4986. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4987. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4989. msm_routing_put_audio_mixer),
  4990. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4991. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4992. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4993. msm_routing_put_audio_mixer),
  4994. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4995. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4996. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4997. msm_routing_put_audio_mixer),
  4998. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4999. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5003. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5004. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5005. msm_routing_put_audio_mixer),
  5006. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5007. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5008. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5009. msm_routing_put_audio_mixer),
  5010. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5011. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5012. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5013. msm_routing_put_audio_mixer),
  5014. };
  5015. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  5016. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5017. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5021. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5025. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5026. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5027. msm_routing_put_audio_mixer),
  5028. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5029. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5030. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5031. msm_routing_put_audio_mixer),
  5032. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5033. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5037. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5041. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5042. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5043. msm_routing_put_audio_mixer),
  5044. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5045. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5049. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5053. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5057. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5058. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5059. msm_routing_put_audio_mixer),
  5060. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5061. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5065. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5069. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5070. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5071. msm_routing_put_audio_mixer),
  5072. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5073. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5074. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5075. msm_routing_put_audio_mixer),
  5076. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5077. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5078. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5079. msm_routing_put_audio_mixer),
  5080. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5081. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5085. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5086. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5087. msm_routing_put_audio_mixer),
  5088. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5089. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5090. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5091. msm_routing_put_audio_mixer),
  5092. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5093. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5097. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5098. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5099. msm_routing_put_audio_mixer),
  5100. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5101. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5102. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5103. msm_routing_put_audio_mixer),
  5104. };
  5105. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  5106. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5107. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5108. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5109. msm_routing_put_audio_mixer),
  5110. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5111. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5115. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5119. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5123. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5124. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5125. msm_routing_put_audio_mixer),
  5126. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5127. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5131. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5135. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5136. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5137. msm_routing_put_audio_mixer),
  5138. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5139. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5140. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5141. msm_routing_put_audio_mixer),
  5142. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5143. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5147. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5148. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5149. msm_routing_put_audio_mixer),
  5150. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5151. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5152. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5153. msm_routing_put_audio_mixer),
  5154. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5155. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5159. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5160. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5161. msm_routing_put_audio_mixer),
  5162. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5163. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5164. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5165. msm_routing_put_audio_mixer),
  5166. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5167. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. };
  5171. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  5172. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5173. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5174. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5175. msm_routing_put_audio_mixer),
  5176. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5177. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5179. msm_routing_put_audio_mixer),
  5180. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5181. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5185. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5186. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5187. msm_routing_put_audio_mixer),
  5188. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5189. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5197. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5201. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5205. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5209. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5213. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5217. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5221. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5225. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. };
  5237. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5238. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5239. MSM_BACKEND_DAI_HDMI_RX,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_HDMI_RX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_HDMI_RX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_HDMI_RX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_HDMI_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_HDMI_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_HDMI_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_HDMI_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_HDMI_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_HDMI_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_HDMI_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_HDMI_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_HDMI_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_HDMI_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_HDMI_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_HDMI_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_HDMI_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_HDMI_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_HDMI_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_HDMI_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_HDMI_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_HDMI_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. };
  5327. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5328. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. };
  5397. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5398. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. };
  5467. /* incall music delivery mixer */
  5468. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5469. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5470. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5472. msm_routing_put_audio_mixer),
  5473. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5474. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5476. msm_routing_put_audio_mixer),
  5477. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5478. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5482. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5483. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5484. msm_routing_put_audio_mixer),
  5485. };
  5486. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5487. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. };
  5504. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5505. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5506. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5507. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5508. msm_routing_put_audio_mixer),
  5509. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5510. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5514. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. };
  5522. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5523. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5524. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5525. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5526. msm_routing_put_audio_mixer),
  5527. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5528. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5532. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5533. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5534. msm_routing_put_audio_mixer),
  5535. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5536. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5540. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5544. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5548. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5552. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5564. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5568. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5572. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5576. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5584. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5588. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. };
  5592. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5593. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5602. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5606. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5607. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5608. msm_routing_put_audio_mixer),
  5609. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5610. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5611. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5612. msm_routing_put_audio_mixer),
  5613. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5614. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5618. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5619. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5620. msm_routing_put_audio_mixer),
  5621. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5622. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5626. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5627. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5628. msm_routing_put_audio_mixer),
  5629. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5630. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5634. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5638. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5642. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5646. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5654. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. };
  5662. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5663. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5684. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5688. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5689. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5690. msm_routing_put_audio_mixer),
  5691. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5692. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5693. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5694. msm_routing_put_audio_mixer),
  5695. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5696. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5700. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5701. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5702. msm_routing_put_audio_mixer),
  5703. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5704. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5705. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5706. msm_routing_put_audio_mixer),
  5707. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5708. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5712. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5713. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5714. msm_routing_put_audio_mixer),
  5715. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5716. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5717. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5718. msm_routing_put_audio_mixer),
  5719. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5720. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. };
  5732. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5733. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5775. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5776. msm_routing_put_audio_mixer),
  5777. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5782. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5783. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5784. msm_routing_put_audio_mixer),
  5785. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5786. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5787. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5788. msm_routing_put_audio_mixer),
  5789. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. };
  5802. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5803. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5832. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. };
  5872. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5873. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. };
  5942. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5943. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5996. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6004. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6008. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. };
  6012. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  6013. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6074. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6078. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. };
  6082. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  6083. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6132. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6136. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. };
  6152. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  6153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6202. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. };
  6222. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  6223. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6252. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6256. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6260. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6264. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6288. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. };
  6292. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6293. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6318. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6322. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6326. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6330. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6334. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6338. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6342. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6346. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6350. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6354. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6355. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6356. msm_routing_put_audio_mixer),
  6357. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. };
  6362. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6380. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6384. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6388. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6392. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6394. msm_routing_put_audio_mixer),
  6395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6396. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6398. msm_routing_put_audio_mixer),
  6399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6400. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6404. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6406. msm_routing_put_audio_mixer),
  6407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6408. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6410. msm_routing_put_audio_mixer),
  6411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6412. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6416. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6418. msm_routing_put_audio_mixer),
  6419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6420. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6422. msm_routing_put_audio_mixer),
  6423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6424. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6428. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6429. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6430. msm_routing_put_audio_mixer),
  6431. };
  6432. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_USB_RX,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_USB_RX,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_USB_RX,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_USB_RX,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_USB_RX,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_USB_RX,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_USB_RX,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_USB_RX,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6466. MSM_BACKEND_DAI_USB_RX,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6470. MSM_BACKEND_DAI_USB_RX,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6474. MSM_BACKEND_DAI_USB_RX,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6478. MSM_BACKEND_DAI_USB_RX,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6482. MSM_BACKEND_DAI_USB_RX,
  6483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6484. msm_routing_put_audio_mixer),
  6485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6486. MSM_BACKEND_DAI_USB_RX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6490. MSM_BACKEND_DAI_USB_RX,
  6491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6492. msm_routing_put_audio_mixer),
  6493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6494. MSM_BACKEND_DAI_USB_RX,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6498. MSM_BACKEND_DAI_USB_RX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. };
  6502. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6540. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6542. msm_routing_put_audio_mixer),
  6543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6556. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6564. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6568. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6569. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6572. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6576. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6580. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. };
  6592. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6593. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6622. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6626. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6630. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6638. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. };
  6662. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6663. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_INT_FM_RX,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_INT_FM_RX,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_INT_FM_RX,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_INT_FM_RX,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_INT_FM_RX,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_INT_FM_RX,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_INT_FM_RX,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_INT_FM_RX,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_INT_FM_RX,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_INT_FM_RX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6704. MSM_BACKEND_DAI_INT_FM_RX,
  6705. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6706. msm_routing_put_audio_mixer),
  6707. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6708. MSM_BACKEND_DAI_INT_FM_RX,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6712. MSM_BACKEND_DAI_INT_FM_RX,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6716. MSM_BACKEND_DAI_INT_FM_RX,
  6717. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6718. msm_routing_put_audio_mixer),
  6719. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_INT_FM_RX,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_INT_FM_RX,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_INT_FM_RX,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_INT_FM_RX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_INT_FM_RX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_INT_FM_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_INT_FM_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_INT_FM_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. };
  6752. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6753. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_AFE_PCM_RX,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_AFE_PCM_RX,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_AFE_PCM_RX,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_AFE_PCM_RX,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6770. MSM_BACKEND_DAI_AFE_PCM_RX,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_AFE_PCM_RX,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_AFE_PCM_RX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_AFE_PCM_RX,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_AFE_PCM_RX,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_AFE_PCM_RX,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_AFE_PCM_RX,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_AFE_PCM_RX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_AFE_PCM_RX,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_AFE_PCM_RX,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_AFE_PCM_RX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_AFE_PCM_RX,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_AFE_PCM_RX,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_AFE_PCM_RX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_AFE_PCM_RX,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_AFE_PCM_RX,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_AFE_PCM_RX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_AFE_PCM_RX,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. };
  6842. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6843. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_AUXPCM_RX,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_AUXPCM_RX,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_AUXPCM_RX,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_AUXPCM_RX,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_AUXPCM_RX,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_AUXPCM_RX,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_AUXPCM_RX,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_AUXPCM_RX,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_AUXPCM_RX,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_AUXPCM_RX,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_AUXPCM_RX,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_AUXPCM_RX,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_AUXPCM_RX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_AUXPCM_RX,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_AUXPCM_RX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_AUXPCM_RX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_AUXPCM_RX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_AUXPCM_RX,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_AUXPCM_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_AUXPCM_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_AUXPCM_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_AUXPCM_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_AUXPCM_RX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. };
  6936. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6937. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. };
  7030. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  7031. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. };
  7100. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  7101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. };
  7170. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  7171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_QUIN_AUXPCM_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_QUIN_AUXPCM_RX,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. };
  7240. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7241. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. };
  7310. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7311. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. };
  7380. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7381. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. };
  7450. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7451. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. };
  7520. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. };
  7586. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7587. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. };
  7656. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. };
  7726. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7727. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. };
  7796. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7797. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. };
  7866. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7867. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. };
  7932. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7933. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. };
  8002. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  8003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. };
  8068. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  8069. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. };
  8138. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  8139. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. };
  8208. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  8209. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. };
  8278. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8279. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. };
  8348. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8349. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. };
  8422. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8423. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. };
  8488. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8489. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. };
  8562. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8563. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. };
  8636. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8637. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. };
  8710. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8711. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. };
  8784. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8785. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. };
  8850. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8851. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. };
  8924. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8925. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. };
  8998. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8999. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. };
  9072. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  9073. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_PRI_I2S_TX,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_MI2S_TX,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_AUXPCM_TX,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_INT_FM_TX,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_AFE_PCM_TX,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_USB_TX,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. };
  9322. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9323. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_INT_FM_TX,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_MI2S_TX,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_USB_TX,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. };
  9524. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9525. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_INT_FM_TX,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_MI2S_TX,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_AFE_PCM_TX,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_AUXPCM_TX,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. };
  9726. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9727. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_INT_FM_TX,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_AFE_PCM_TX,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_USB_TX,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. };
  9924. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9925. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_INT_FM_TX,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_MI2S_TX,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_AFE_PCM_TX,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_AUXPCM_TX,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_USB_TX,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. };
  10150. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  10151. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_INT_FM_TX,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_AUXPCM_TX,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10265. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10266. msm_routing_put_audio_mixer),
  10267. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10268. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10269. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10270. msm_routing_put_audio_mixer),
  10271. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10273. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10274. msm_routing_put_audio_mixer),
  10275. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10277. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10278. msm_routing_put_audio_mixer),
  10279. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10285. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10286. msm_routing_put_audio_mixer),
  10287. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_USB_TX,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. };
  10352. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10353. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10354. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10356. msm_routing_put_audio_mixer),
  10357. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10359. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10360. msm_routing_put_audio_mixer),
  10361. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10364. msm_routing_put_audio_mixer),
  10365. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_INT_FM_TX,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_AFE_PCM_TX,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_USB_TX,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10500. msm_routing_put_audio_mixer),
  10501. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10504. msm_routing_put_audio_mixer),
  10505. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10507. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10508. msm_routing_put_audio_mixer),
  10509. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10511. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10512. msm_routing_put_audio_mixer),
  10513. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10516. msm_routing_put_audio_mixer),
  10517. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10520. msm_routing_put_audio_mixer),
  10521. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. };
  10562. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10563. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10578. msm_routing_put_audio_mixer),
  10579. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10580. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10582. msm_routing_put_audio_mixer),
  10583. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10584. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10586. msm_routing_put_audio_mixer),
  10587. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10588. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10590. msm_routing_put_audio_mixer),
  10591. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10594. msm_routing_put_audio_mixer),
  10595. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_INT_FM_TX,
  10597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10598. msm_routing_put_audio_mixer),
  10599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10602. msm_routing_put_audio_mixer),
  10603. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_AFE_PCM_TX,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_USB_TX,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_MI2S_TX,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_AUXPCM_TX,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10734. msm_routing_get_audio_mixer,
  10735. msm_routing_put_audio_mixer),
  10736. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10737. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10738. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10739. msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10744. msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10749. msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10753. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10754. msm_routing_get_audio_mixer,
  10755. msm_routing_put_audio_mixer),
  10756. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10758. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10759. msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. };
  10778. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10779. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_INT_FM_TX,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_AFE_PCM_TX,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10921. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. };
  10924. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10925. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_INT_FM_TX,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_AFE_PCM_TX,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_USB_TX,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_MI2S_TX,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_AUXPCM_TX,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11060. msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11065. msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11070. msm_routing_get_audio_mixer,
  11071. msm_routing_put_audio_mixer),
  11072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11074. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11075. msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11080. msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11085. msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. };
  11104. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  11105. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_INT_FM_TX,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_AFE_PCM_TX,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11176. msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11181. msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11186. msm_routing_get_audio_mixer,
  11187. msm_routing_put_audio_mixer),
  11188. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11189. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11190. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11191. msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11196. msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  11201. msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. };
  11216. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  11217. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_INT_FM_TX,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_AFE_PCM_TX,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11292. msm_routing_get_audio_mixer,
  11293. msm_routing_put_audio_mixer),
  11294. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11295. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11296. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11297. msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11302. msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11307. msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11312. msm_routing_get_audio_mixer,
  11313. msm_routing_put_audio_mixer),
  11314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11316. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11317. msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. };
  11332. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  11333. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_INT_FM_TX,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_AFE_PCM_TX,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11408. msm_routing_get_audio_mixer,
  11409. msm_routing_put_audio_mixer),
  11410. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11411. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11412. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11413. msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11418. msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11423. msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11428. msm_routing_get_audio_mixer,
  11429. msm_routing_put_audio_mixer),
  11430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11432. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11433. msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. };
  11448. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11449. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11503. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11504. msm_routing_put_audio_mixer),
  11505. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11507. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11508. msm_routing_put_audio_mixer),
  11509. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11511. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11512. msm_routing_put_audio_mixer),
  11513. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. };
  11610. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11611. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_AUXPCM_TX,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11653. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11662. msm_routing_put_audio_mixer),
  11663. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11665. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11666. msm_routing_put_audio_mixer),
  11667. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11669. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11670. msm_routing_put_audio_mixer),
  11671. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11697. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11698. msm_routing_put_audio_mixer),
  11699. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11702. msm_routing_put_audio_mixer),
  11703. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11705. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11706. msm_routing_put_audio_mixer),
  11707. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. };
  11760. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11761. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA27, 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_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. };
  11814. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11815. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_INT_FM_TX,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_AFE_PCM_TX,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11890. msm_routing_get_audio_mixer,
  11891. msm_routing_put_audio_mixer),
  11892. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11893. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11894. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11895. msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11900. msm_routing_get_audio_mixer,
  11901. msm_routing_put_audio_mixer),
  11902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11904. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11905. msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11910. msm_routing_get_audio_mixer,
  11911. msm_routing_put_audio_mixer),
  11912. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11914. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11915. msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. };
  11930. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11931. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_INT_FM_TX,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_AFE_PCM_TX,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12006. msm_routing_get_audio_mixer,
  12007. msm_routing_put_audio_mixer),
  12008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12010. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12011. msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12016. msm_routing_get_audio_mixer,
  12017. msm_routing_put_audio_mixer),
  12018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12020. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12021. msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12026. msm_routing_get_audio_mixer,
  12027. msm_routing_put_audio_mixer),
  12028. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12029. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12030. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12031. msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. };
  12046. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  12047. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_PRI_I2S_RX,
  12049. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12050. msm_routing_put_voice_mixer),
  12051. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_PRI_I2S_RX,
  12053. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12054. msm_routing_put_voice_mixer),
  12055. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_PRI_I2S_RX,
  12057. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12058. msm_routing_put_voice_mixer),
  12059. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_PRI_I2S_RX,
  12061. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12062. msm_routing_put_voice_mixer),
  12063. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_PRI_I2S_RX,
  12065. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12066. msm_routing_put_voice_mixer),
  12067. };
  12068. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  12069. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_SEC_I2S_RX,
  12071. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12072. msm_routing_put_voice_mixer),
  12073. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_SEC_I2S_RX,
  12075. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12076. msm_routing_put_voice_mixer),
  12077. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SEC_I2S_RX,
  12079. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12080. msm_routing_put_voice_mixer),
  12081. };
  12082. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  12083. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12086. msm_routing_put_voice_mixer),
  12087. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12089. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12090. msm_routing_put_voice_mixer),
  12091. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12093. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12094. msm_routing_put_voice_mixer),
  12095. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12097. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12098. msm_routing_put_voice_mixer),
  12099. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12101. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12102. msm_routing_put_voice_mixer),
  12103. };
  12104. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  12105. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12107. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12108. msm_routing_put_voice_mixer),
  12109. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12111. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12112. msm_routing_put_voice_mixer),
  12113. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12115. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12116. msm_routing_put_voice_mixer),
  12117. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12119. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12120. msm_routing_put_voice_mixer),
  12121. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12123. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12124. msm_routing_put_voice_mixer),
  12125. };
  12126. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  12127. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12129. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12130. msm_routing_put_voice_mixer),
  12131. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12133. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12134. msm_routing_put_voice_mixer),
  12135. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12137. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12138. msm_routing_put_voice_mixer),
  12139. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12141. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12142. msm_routing_put_voice_mixer),
  12143. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  12145. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12146. msm_routing_put_voice_mixer),
  12147. };
  12148. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  12149. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_USB_RX,
  12151. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12152. msm_routing_put_voice_mixer),
  12153. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_USB_RX,
  12155. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12156. msm_routing_put_voice_mixer),
  12157. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_USB_RX,
  12159. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12160. msm_routing_put_voice_mixer),
  12161. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_USB_RX,
  12163. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12164. msm_routing_put_voice_mixer),
  12165. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_USB_RX,
  12167. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12168. msm_routing_put_voice_mixer),
  12169. };
  12170. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  12171. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12173. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12174. msm_routing_put_voice_mixer),
  12175. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12177. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12178. msm_routing_put_voice_mixer),
  12179. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12181. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12182. msm_routing_put_voice_mixer),
  12183. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12185. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12186. msm_routing_put_voice_mixer),
  12187. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  12189. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12190. msm_routing_put_voice_mixer),
  12191. };
  12192. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  12193. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12195. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12196. msm_routing_put_voice_mixer),
  12197. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12199. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12200. msm_routing_put_voice_mixer),
  12201. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12203. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12204. msm_routing_put_voice_mixer),
  12205. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12207. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12208. msm_routing_put_voice_mixer),
  12209. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  12211. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12212. msm_routing_put_voice_mixer),
  12213. };
  12214. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  12215. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12217. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12218. msm_routing_put_voice_mixer),
  12219. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12221. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12222. msm_routing_put_voice_mixer),
  12223. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12225. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12226. msm_routing_put_voice_mixer),
  12227. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12229. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12230. msm_routing_put_voice_mixer),
  12231. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  12233. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12234. msm_routing_put_voice_mixer),
  12235. };
  12236. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  12237. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_MI2S_RX,
  12239. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12240. msm_routing_put_voice_mixer),
  12241. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_MI2S_RX,
  12243. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12244. msm_routing_put_voice_mixer),
  12245. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_MI2S_RX,
  12247. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12248. msm_routing_put_voice_mixer),
  12249. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_MI2S_RX,
  12251. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12252. msm_routing_put_voice_mixer),
  12253. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_MI2S_RX,
  12255. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12256. msm_routing_put_voice_mixer),
  12257. };
  12258. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  12259. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12261. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12262. msm_routing_put_voice_mixer),
  12263. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12265. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12266. msm_routing_put_voice_mixer),
  12267. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12269. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12270. msm_routing_put_voice_mixer),
  12271. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12273. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12274. msm_routing_put_voice_mixer),
  12275. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_PRI_MI2S_RX,
  12277. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12278. msm_routing_put_voice_mixer),
  12279. };
  12280. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  12281. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12283. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12284. msm_routing_put_voice_mixer),
  12285. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12287. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12288. msm_routing_put_voice_mixer),
  12289. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12291. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12292. msm_routing_put_voice_mixer),
  12293. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12295. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12296. msm_routing_put_voice_mixer),
  12297. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_INT0_MI2S_RX,
  12299. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12300. msm_routing_put_voice_mixer),
  12301. };
  12302. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  12303. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12305. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12306. msm_routing_put_voice_mixer),
  12307. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12309. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12310. msm_routing_put_voice_mixer),
  12311. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12313. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12314. msm_routing_put_voice_mixer),
  12315. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12317. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12318. msm_routing_put_voice_mixer),
  12319. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_INT4_MI2S_RX,
  12321. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12322. msm_routing_put_voice_mixer),
  12323. };
  12324. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  12325. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12327. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12328. msm_routing_put_voice_mixer),
  12329. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12331. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12332. msm_routing_put_voice_mixer),
  12333. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12335. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12336. msm_routing_put_voice_mixer),
  12337. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12339. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12340. msm_routing_put_voice_mixer),
  12341. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  12343. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12344. msm_routing_put_voice_mixer),
  12345. };
  12346. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  12347. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12349. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12350. msm_routing_put_voice_mixer),
  12351. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12353. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12354. msm_routing_put_voice_mixer),
  12355. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12357. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12358. msm_routing_put_voice_mixer),
  12359. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12361. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12362. msm_routing_put_voice_mixer),
  12363. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12365. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12366. msm_routing_put_voice_mixer),
  12367. };
  12368. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  12369. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12371. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12372. msm_routing_put_voice_mixer),
  12373. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12375. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12376. msm_routing_put_voice_mixer),
  12377. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12379. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12380. msm_routing_put_voice_mixer),
  12381. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12383. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12384. msm_routing_put_voice_mixer),
  12385. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12387. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12388. msm_routing_put_voice_mixer),
  12389. };
  12390. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  12391. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_AFE_PCM_RX,
  12393. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12394. msm_routing_put_voice_mixer),
  12395. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_AFE_PCM_RX,
  12397. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12398. msm_routing_put_voice_mixer),
  12399. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_AFE_PCM_RX,
  12401. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12402. msm_routing_put_voice_mixer),
  12403. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_AFE_PCM_RX,
  12405. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12406. msm_routing_put_voice_mixer),
  12407. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_AFE_PCM_RX,
  12409. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12410. msm_routing_put_voice_mixer),
  12411. };
  12412. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  12413. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_AUXPCM_RX,
  12415. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12416. msm_routing_put_voice_mixer),
  12417. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_AUXPCM_RX,
  12419. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12420. msm_routing_put_voice_mixer),
  12421. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_AUXPCM_RX,
  12423. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12424. msm_routing_put_voice_mixer),
  12425. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_AUXPCM_RX,
  12427. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12428. msm_routing_put_voice_mixer),
  12429. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_AUXPCM_RX,
  12431. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12432. msm_routing_put_voice_mixer),
  12433. };
  12434. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  12435. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12437. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12438. msm_routing_put_voice_mixer),
  12439. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12441. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12442. msm_routing_put_voice_mixer),
  12443. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12445. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12446. msm_routing_put_voice_mixer),
  12447. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12449. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12450. msm_routing_put_voice_mixer),
  12451. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12453. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12454. msm_routing_put_voice_mixer),
  12455. };
  12456. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12457. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12459. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12460. msm_routing_put_voice_mixer),
  12461. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12463. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12464. msm_routing_put_voice_mixer),
  12465. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12467. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12468. msm_routing_put_voice_mixer),
  12469. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12471. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12472. msm_routing_put_voice_mixer),
  12473. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12475. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12476. msm_routing_put_voice_mixer),
  12477. };
  12478. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12479. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12481. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12482. msm_routing_put_voice_mixer),
  12483. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12485. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12486. msm_routing_put_voice_mixer),
  12487. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12489. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12490. msm_routing_put_voice_mixer),
  12491. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12493. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12494. msm_routing_put_voice_mixer),
  12495. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12497. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12498. msm_routing_put_voice_mixer),
  12499. };
  12500. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12501. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12503. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12504. msm_routing_put_voice_mixer),
  12505. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12507. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12508. msm_routing_put_voice_mixer),
  12509. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12511. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12512. msm_routing_put_voice_mixer),
  12513. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12515. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12516. msm_routing_put_voice_mixer),
  12517. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12519. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12520. msm_routing_put_voice_mixer),
  12521. };
  12522. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12523. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_HDMI_RX,
  12525. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12526. msm_routing_put_voice_mixer),
  12527. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_HDMI_RX,
  12529. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12530. msm_routing_put_voice_mixer),
  12531. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_HDMI_RX,
  12533. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12534. msm_routing_put_voice_mixer),
  12535. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_HDMI_RX,
  12537. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12538. msm_routing_put_voice_mixer),
  12539. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_HDMI_RX,
  12541. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12542. msm_routing_put_voice_mixer),
  12543. };
  12544. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12545. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12547. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12548. msm_routing_put_voice_mixer),
  12549. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12551. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12552. msm_routing_put_voice_mixer),
  12553. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12555. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12556. msm_routing_put_voice_mixer),
  12557. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12559. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12560. msm_routing_put_voice_mixer),
  12561. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12563. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12564. msm_routing_put_voice_mixer),
  12565. };
  12566. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12567. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12569. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12570. msm_routing_put_voice_mixer),
  12571. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12573. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12574. msm_routing_put_voice_mixer),
  12575. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12577. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12578. msm_routing_put_voice_mixer),
  12579. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12581. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12582. msm_routing_put_voice_mixer),
  12583. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12585. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12586. msm_routing_put_voice_mixer),
  12587. };
  12588. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12589. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12591. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12592. msm_routing_put_voice_mixer),
  12593. };
  12594. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12595. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12597. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12598. msm_routing_put_voice_mixer),
  12599. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12601. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12602. msm_routing_put_voice_mixer),
  12603. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12605. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12606. msm_routing_put_voice_mixer),
  12607. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12609. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12610. msm_routing_put_voice_mixer),
  12611. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12613. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12614. msm_routing_put_voice_mixer),
  12615. };
  12616. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12617. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12619. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12620. msm_routing_put_voice_mixer),
  12621. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12623. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12624. msm_routing_put_voice_mixer),
  12625. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12627. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12628. msm_routing_put_voice_mixer),
  12629. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12631. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12632. msm_routing_put_voice_mixer),
  12633. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12635. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12636. msm_routing_put_voice_mixer),
  12637. };
  12638. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12639. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12641. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12642. msm_routing_put_voice_mixer),
  12643. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12645. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12646. msm_routing_put_voice_mixer),
  12647. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12649. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12650. msm_routing_put_voice_mixer),
  12651. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12653. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12654. msm_routing_put_voice_mixer),
  12655. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12657. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12658. msm_routing_put_voice_mixer),
  12659. };
  12660. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12661. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12663. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12664. msm_routing_put_voice_mixer),
  12665. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12667. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12668. msm_routing_put_voice_mixer),
  12669. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12671. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12672. msm_routing_put_voice_mixer),
  12673. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12675. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12676. msm_routing_put_voice_mixer),
  12677. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12679. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12680. msm_routing_put_voice_mixer),
  12681. };
  12682. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12683. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12685. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12686. msm_routing_put_voice_mixer),
  12687. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12689. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12690. msm_routing_put_voice_mixer),
  12691. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12693. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12694. msm_routing_put_voice_mixer),
  12695. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12697. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12698. msm_routing_put_voice_mixer),
  12699. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12701. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12702. msm_routing_put_voice_mixer),
  12703. };
  12704. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12705. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12707. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12708. msm_routing_put_voice_mixer),
  12709. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12711. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12712. msm_routing_put_voice_mixer),
  12713. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12715. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12716. msm_routing_put_voice_mixer),
  12717. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12719. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12720. msm_routing_put_voice_mixer),
  12721. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12723. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12724. msm_routing_put_voice_mixer),
  12725. };
  12726. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12727. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12729. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12730. msm_routing_put_voice_mixer),
  12731. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12733. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12734. msm_routing_put_voice_mixer),
  12735. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12737. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12738. msm_routing_put_voice_mixer),
  12739. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12741. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12742. msm_routing_put_voice_mixer),
  12743. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12745. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12746. msm_routing_put_voice_mixer),
  12747. };
  12748. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12749. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12751. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12752. msm_routing_put_voice_mixer),
  12753. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12755. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12756. msm_routing_put_voice_mixer),
  12757. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12759. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12760. msm_routing_put_voice_mixer),
  12761. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12763. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12764. msm_routing_put_voice_mixer),
  12765. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12767. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12768. msm_routing_put_voice_mixer),
  12769. };
  12770. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12771. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12773. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12774. msm_routing_put_voice_mixer),
  12775. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12777. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12778. msm_routing_put_voice_mixer),
  12779. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12781. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12782. msm_routing_put_voice_mixer),
  12783. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12785. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12786. msm_routing_put_voice_mixer),
  12787. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12789. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12790. msm_routing_put_voice_mixer),
  12791. };
  12792. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12793. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12795. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12796. msm_routing_put_voice_mixer),
  12797. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12799. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12800. msm_routing_put_voice_mixer),
  12801. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12803. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12804. msm_routing_put_voice_mixer),
  12805. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12807. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12808. msm_routing_put_voice_mixer),
  12809. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12811. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12812. msm_routing_put_voice_mixer),
  12813. };
  12814. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12815. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_EXTPROC_RX,
  12817. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12818. msm_routing_put_voice_mixer),
  12819. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_EXTPROC_RX,
  12821. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12822. msm_routing_put_voice_mixer),
  12823. };
  12824. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12825. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12827. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12828. msm_routing_put_voice_mixer),
  12829. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12831. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12832. msm_routing_put_voice_mixer),
  12833. };
  12834. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12835. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12837. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12838. msm_routing_put_voice_mixer),
  12839. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12841. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12842. msm_routing_put_voice_mixer),
  12843. };
  12844. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12845. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_PRI_I2S_TX,
  12847. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12848. msm_routing_put_voice_mixer),
  12849. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_MI2S_TX,
  12851. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12852. msm_routing_put_voice_mixer),
  12853. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12855. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12856. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12858. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12859. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12861. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12862. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12864. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12865. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12867. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12868. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12869. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12870. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12871. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12873. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12874. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12875. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12876. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12877. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12879. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12880. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12881. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12882. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12883. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12885. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12886. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12888. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12889. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12891. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12892. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_USB_TX,
  12894. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12895. msm_routing_put_voice_mixer),
  12896. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12898. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12899. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12900. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12901. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12902. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12904. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12905. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12907. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12908. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12910. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12913. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12914. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12916. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12919. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12920. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12922. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12925. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12926. };
  12927. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12928. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_PRI_I2S_TX,
  12930. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12931. msm_routing_put_voice_mixer),
  12932. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_MI2S_TX,
  12934. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12935. msm_routing_put_voice_mixer),
  12936. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12938. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12939. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12941. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12942. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12944. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12945. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12947. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12948. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12949. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12950. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12951. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12953. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12954. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12956. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12957. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12959. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12960. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12961. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12962. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12963. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12965. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12966. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12968. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12969. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12971. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12972. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12974. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12975. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12977. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12978. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12980. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12981. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12983. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12984. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12986. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12987. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12989. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12990. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12992. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12995. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12996. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12997. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12998. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12999. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  13001. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13002. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  13004. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13005. };
  13006. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  13007. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_PRI_I2S_TX,
  13009. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13010. msm_routing_put_voice_mixer),
  13011. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_MI2S_TX,
  13013. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13014. msm_routing_put_voice_mixer),
  13015. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13017. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13018. msm_routing_put_voice_mixer),
  13019. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13021. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13022. msm_routing_put_voice_mixer),
  13023. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_AFE_PCM_TX,
  13025. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13026. msm_routing_put_voice_mixer),
  13027. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_AUXPCM_TX,
  13029. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13030. msm_routing_put_voice_mixer),
  13031. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13033. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13034. msm_routing_put_voice_mixer),
  13035. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13037. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13038. msm_routing_put_voice_mixer),
  13039. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13041. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13042. msm_routing_put_voice_mixer),
  13043. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13045. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13046. msm_routing_put_voice_mixer),
  13047. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13049. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13050. msm_routing_put_voice_mixer),
  13051. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13053. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13054. msm_routing_put_voice_mixer),
  13055. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13057. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13058. msm_routing_put_voice_mixer),
  13059. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13061. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13062. msm_routing_put_voice_mixer),
  13063. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13065. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13066. msm_routing_put_voice_mixer),
  13067. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_USB_TX,
  13069. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13070. msm_routing_put_voice_mixer),
  13071. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  13073. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13074. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  13076. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13077. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  13079. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13080. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  13081. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  13082. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  13085. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13086. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  13088. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13089. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  13091. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13092. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  13093. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  13094. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13095. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  13097. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13098. };
  13099. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  13100. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  13101. MSM_BACKEND_DAI_EXTPROC_TX,
  13102. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13103. msm_routing_put_voice_stub_mixer),
  13104. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13106. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13107. msm_routing_put_voice_stub_mixer),
  13108. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13110. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13111. msm_routing_put_voice_stub_mixer),
  13112. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  13113. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  13114. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13115. msm_routing_put_voice_stub_mixer),
  13116. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_MI2S_TX,
  13118. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13119. msm_routing_put_voice_stub_mixer),
  13120. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13122. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13123. msm_routing_put_voice_stub_mixer),
  13124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13126. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13127. msm_routing_put_voice_stub_mixer),
  13128. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13130. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13131. msm_routing_put_voice_stub_mixer),
  13132. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13134. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13135. msm_routing_put_voice_stub_mixer),
  13136. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_AUXPCM_TX,
  13138. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13139. msm_routing_put_voice_stub_mixer),
  13140. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13142. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13143. msm_routing_put_voice_stub_mixer),
  13144. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13145. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13146. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13147. msm_routing_put_voice_stub_mixer),
  13148. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13151. msm_routing_put_voice_stub_mixer),
  13152. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13154. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13155. msm_routing_put_voice_stub_mixer),
  13156. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13158. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13159. msm_routing_put_voice_stub_mixer),
  13160. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13162. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13163. msm_routing_put_voice_stub_mixer),
  13164. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_AFE_PCM_TX,
  13166. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13167. msm_routing_put_voice_stub_mixer),
  13168. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13170. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13171. msm_routing_put_voice_stub_mixer),
  13172. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13174. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13175. msm_routing_put_voice_stub_mixer),
  13176. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  13178. 1, 0, msm_routing_get_voice_stub_mixer,
  13179. msm_routing_put_voice_stub_mixer),
  13180. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  13182. 1, 0, msm_routing_get_voice_stub_mixer,
  13183. msm_routing_put_voice_stub_mixer),
  13184. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  13186. 1, 0, msm_routing_get_voice_stub_mixer,
  13187. msm_routing_put_voice_stub_mixer),
  13188. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  13190. 1, 0, msm_routing_get_voice_stub_mixer,
  13191. msm_routing_put_voice_stub_mixer),
  13192. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  13194. 1, 0, msm_routing_get_voice_stub_mixer,
  13195. msm_routing_put_voice_stub_mixer),
  13196. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  13198. 1, 0, msm_routing_get_voice_stub_mixer,
  13199. msm_routing_put_voice_stub_mixer),
  13200. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  13202. 1, 0, msm_routing_get_voice_stub_mixer,
  13203. msm_routing_put_voice_stub_mixer),
  13204. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  13206. 1, 0, msm_routing_get_voice_stub_mixer,
  13207. msm_routing_put_voice_stub_mixer),
  13208. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  13210. 1, 0, msm_routing_get_voice_stub_mixer,
  13211. msm_routing_put_voice_stub_mixer),
  13212. };
  13213. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  13214. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  13215. MSM_BACKEND_DAI_EXTPROC_TX,
  13216. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13217. msm_routing_put_voice_stub_mixer),
  13218. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13220. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13221. msm_routing_put_voice_stub_mixer),
  13222. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  13224. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13225. msm_routing_put_voice_stub_mixer),
  13226. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13227. MSM_BACKEND_DAI_AUXPCM_TX,
  13228. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13229. msm_routing_put_voice_stub_mixer),
  13230. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13231. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13232. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13233. msm_routing_put_voice_stub_mixer),
  13234. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13235. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13236. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13237. msm_routing_put_voice_stub_mixer),
  13238. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13239. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13240. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13241. msm_routing_put_voice_stub_mixer),
  13242. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13243. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13244. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13245. msm_routing_put_voice_stub_mixer),
  13246. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13247. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13248. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13249. msm_routing_put_voice_stub_mixer),
  13250. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  13251. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13252. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13253. msm_routing_put_voice_stub_mixer),
  13254. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13255. MSM_BACKEND_DAI_AFE_PCM_TX,
  13256. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13257. msm_routing_put_voice_stub_mixer),
  13258. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13260. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13261. msm_routing_put_voice_stub_mixer),
  13262. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13263. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13264. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13265. msm_routing_put_voice_stub_mixer),
  13266. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13267. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13268. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13269. msm_routing_put_voice_stub_mixer),
  13270. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13271. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13272. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13273. msm_routing_put_voice_stub_mixer),
  13274. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13275. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  13276. 1, 0, msm_routing_get_voice_stub_mixer,
  13277. msm_routing_put_voice_stub_mixer),
  13278. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13279. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  13280. 1, 0, msm_routing_get_voice_stub_mixer,
  13281. msm_routing_put_voice_stub_mixer),
  13282. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13283. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  13284. 1, 0, msm_routing_get_voice_stub_mixer,
  13285. msm_routing_put_voice_stub_mixer),
  13286. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13287. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  13288. 1, 0, msm_routing_get_voice_stub_mixer,
  13289. msm_routing_put_voice_stub_mixer),
  13290. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13291. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  13292. 1, 0, msm_routing_get_voice_stub_mixer,
  13293. msm_routing_put_voice_stub_mixer),
  13294. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13295. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  13296. 1, 0, msm_routing_get_voice_stub_mixer,
  13297. msm_routing_put_voice_stub_mixer),
  13298. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13299. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  13300. 1, 0, msm_routing_get_voice_stub_mixer,
  13301. msm_routing_put_voice_stub_mixer),
  13302. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13303. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  13304. 1, 0, msm_routing_get_voice_stub_mixer,
  13305. msm_routing_put_voice_stub_mixer),
  13306. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13307. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  13308. 1, 0, msm_routing_get_voice_stub_mixer,
  13309. msm_routing_put_voice_stub_mixer),
  13310. };
  13311. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  13312. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_EXTPROC_TX,
  13314. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13315. msm_routing_put_voice_stub_mixer),
  13316. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13318. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13319. msm_routing_put_voice_stub_mixer),
  13320. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  13322. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13323. msm_routing_put_voice_stub_mixer),
  13324. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_AUXPCM_TX,
  13326. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13327. msm_routing_put_voice_stub_mixer),
  13328. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13329. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13330. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13331. msm_routing_put_voice_stub_mixer),
  13332. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13333. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13334. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13335. msm_routing_put_voice_stub_mixer),
  13336. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13337. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13338. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13339. msm_routing_put_voice_stub_mixer),
  13340. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13342. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13343. msm_routing_put_voice_stub_mixer),
  13344. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13346. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13347. msm_routing_put_voice_stub_mixer),
  13348. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  13349. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13350. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13351. msm_routing_put_voice_stub_mixer),
  13352. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_AFE_PCM_TX,
  13354. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13355. msm_routing_put_voice_stub_mixer),
  13356. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13358. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13359. msm_routing_put_voice_stub_mixer),
  13360. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13362. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13363. msm_routing_put_voice_stub_mixer),
  13364. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13366. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13367. msm_routing_put_voice_stub_mixer),
  13368. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13370. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13371. msm_routing_put_voice_stub_mixer),
  13372. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13373. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  13374. 1, 0, msm_routing_get_voice_stub_mixer,
  13375. msm_routing_put_voice_stub_mixer),
  13376. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13377. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  13378. 1, 0, msm_routing_get_voice_stub_mixer,
  13379. msm_routing_put_voice_stub_mixer),
  13380. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  13382. 1, 0, msm_routing_get_voice_stub_mixer,
  13383. msm_routing_put_voice_stub_mixer),
  13384. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13385. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  13386. 1, 0, msm_routing_get_voice_stub_mixer,
  13387. msm_routing_put_voice_stub_mixer),
  13388. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  13390. 1, 0, msm_routing_get_voice_stub_mixer,
  13391. msm_routing_put_voice_stub_mixer),
  13392. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  13394. 1, 0, msm_routing_get_voice_stub_mixer,
  13395. msm_routing_put_voice_stub_mixer),
  13396. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  13398. 1, 0, msm_routing_get_voice_stub_mixer,
  13399. msm_routing_put_voice_stub_mixer),
  13400. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  13402. 1, 0, msm_routing_get_voice_stub_mixer,
  13403. msm_routing_put_voice_stub_mixer),
  13404. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  13406. 1, 0, msm_routing_get_voice_stub_mixer,
  13407. msm_routing_put_voice_stub_mixer),
  13408. };
  13409. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  13410. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_PRI_I2S_TX,
  13412. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13413. msm_routing_put_voice_mixer),
  13414. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  13415. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13416. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13417. msm_routing_put_voice_mixer),
  13418. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  13419. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13420. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  13421. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13422. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_AFE_PCM_TX,
  13424. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13425. msm_routing_put_voice_mixer),
  13426. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_AUXPCM_TX,
  13428. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13429. msm_routing_put_voice_mixer),
  13430. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13431. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13432. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13433. msm_routing_put_voice_mixer),
  13434. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13436. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13437. msm_routing_put_voice_mixer),
  13438. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13439. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13440. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13441. msm_routing_put_voice_mixer),
  13442. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13444. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13445. msm_routing_put_voice_mixer),
  13446. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_MI2S_TX,
  13448. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13449. msm_routing_put_voice_mixer),
  13450. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13451. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13452. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13453. msm_routing_put_voice_mixer),
  13454. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13456. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13457. msm_routing_put_voice_mixer),
  13458. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13459. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13460. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13461. msm_routing_put_voice_mixer),
  13462. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13464. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13465. msm_routing_put_voice_mixer),
  13466. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13468. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13469. msm_routing_put_voice_mixer),
  13470. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  13471. MSM_BACKEND_DAI_USB_TX,
  13472. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13473. msm_routing_put_voice_mixer),
  13474. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13476. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13479. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13480. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13481. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13482. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13485. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13486. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13488. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13491. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13492. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13494. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13495. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13497. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13498. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13500. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13501. };
  13502. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13503. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13505. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13506. msm_routing_put_port_mixer),
  13507. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13509. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13510. msm_routing_put_port_mixer),
  13511. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13513. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13514. msm_routing_put_port_mixer),
  13515. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13517. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13518. msm_routing_put_port_mixer),
  13519. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13521. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13522. msm_routing_put_port_mixer),
  13523. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13525. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13526. msm_routing_put_port_mixer),
  13527. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13529. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13530. msm_routing_put_port_mixer),
  13531. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13533. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13534. msm_routing_put_port_mixer),
  13535. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13537. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13538. msm_routing_put_port_mixer),
  13539. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13541. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13542. msm_routing_put_port_mixer),
  13543. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13545. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13546. msm_routing_put_port_mixer),
  13547. };
  13548. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13549. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13551. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13552. msm_routing_put_port_mixer),
  13553. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13555. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13556. msm_routing_put_port_mixer),
  13557. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13559. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13560. msm_routing_put_port_mixer),
  13561. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13563. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13564. msm_routing_put_port_mixer),
  13565. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13567. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13568. msm_routing_put_port_mixer),
  13569. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13571. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13572. msm_routing_put_port_mixer),
  13573. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13575. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13576. msm_routing_put_port_mixer),
  13577. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13579. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13580. msm_routing_put_port_mixer),
  13581. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13583. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13584. msm_routing_put_port_mixer),
  13585. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13587. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13588. msm_routing_put_port_mixer),
  13589. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13591. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13592. msm_routing_put_port_mixer),
  13593. };
  13594. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13597. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13598. msm_routing_put_port_mixer),
  13599. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13601. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13602. msm_routing_put_port_mixer),
  13603. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13605. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13606. msm_routing_put_port_mixer),
  13607. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13609. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13610. msm_routing_put_port_mixer),
  13611. };
  13612. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13613. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13616. msm_routing_put_port_mixer),
  13617. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13619. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13620. msm_routing_put_port_mixer),
  13621. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13623. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13624. msm_routing_put_port_mixer),
  13625. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13627. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13628. msm_routing_put_port_mixer),
  13629. };
  13630. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13631. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13633. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13634. msm_routing_put_port_mixer),
  13635. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13637. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13638. msm_routing_put_port_mixer),
  13639. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13641. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13642. msm_routing_put_port_mixer),
  13643. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13645. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13646. msm_routing_put_port_mixer),
  13647. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13649. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13650. msm_routing_put_port_mixer),
  13651. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13653. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13654. msm_routing_put_port_mixer),
  13655. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13657. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13658. msm_routing_put_port_mixer),
  13659. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13661. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13662. msm_routing_put_port_mixer),
  13663. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13665. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13666. msm_routing_put_port_mixer),
  13667. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13669. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13670. msm_routing_put_port_mixer),
  13671. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13673. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13674. msm_routing_put_port_mixer),
  13675. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13677. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13678. msm_routing_put_port_mixer),
  13679. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13681. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13682. msm_routing_put_port_mixer),
  13683. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13685. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13686. msm_routing_put_port_mixer),
  13687. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13689. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13690. msm_routing_put_port_mixer),
  13691. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13693. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13694. msm_routing_put_port_mixer),
  13695. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13697. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13698. msm_routing_put_port_mixer),
  13699. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13701. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13702. msm_routing_put_port_mixer),
  13703. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13705. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13706. msm_routing_put_port_mixer),
  13707. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13709. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13710. msm_routing_put_port_mixer),
  13711. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13713. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13714. msm_routing_put_port_mixer),
  13715. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13717. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13718. msm_routing_put_port_mixer),
  13719. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13721. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13722. msm_routing_put_port_mixer),
  13723. };
  13724. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13725. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_AUXPCM_RX,
  13727. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13728. msm_routing_put_port_mixer),
  13729. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_AUXPCM_RX,
  13731. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13732. msm_routing_put_port_mixer),
  13733. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_AUXPCM_RX,
  13735. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13736. msm_routing_put_port_mixer),
  13737. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_AUXPCM_RX,
  13739. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13740. msm_routing_put_port_mixer),
  13741. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_AUXPCM_RX,
  13743. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13744. msm_routing_put_port_mixer),
  13745. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_AUXPCM_RX,
  13747. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13748. msm_routing_put_port_mixer),
  13749. };
  13750. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13751. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13753. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13754. msm_routing_put_port_mixer),
  13755. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13757. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13758. msm_routing_put_port_mixer),
  13759. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13761. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13762. msm_routing_put_port_mixer),
  13763. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13765. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13766. msm_routing_put_port_mixer),
  13767. };
  13768. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  13769. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13771. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13772. msm_routing_put_port_mixer),
  13773. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13775. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13776. msm_routing_put_port_mixer),
  13777. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13779. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13780. msm_routing_put_port_mixer),
  13781. };
  13782. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  13783. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13785. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13786. msm_routing_put_port_mixer),
  13787. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13789. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13790. msm_routing_put_port_mixer),
  13791. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13793. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13794. msm_routing_put_port_mixer),
  13795. };
  13796. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  13797. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13799. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13800. msm_routing_put_port_mixer),
  13801. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13803. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13804. msm_routing_put_port_mixer),
  13805. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13807. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13808. msm_routing_put_port_mixer),
  13809. };
  13810. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13811. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13813. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13814. msm_routing_put_port_mixer),
  13815. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13817. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13818. msm_routing_put_port_mixer),
  13819. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13821. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13822. msm_routing_put_port_mixer),
  13823. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13825. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13826. msm_routing_put_port_mixer),
  13827. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13829. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13830. msm_routing_put_port_mixer),
  13831. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13833. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13834. msm_routing_put_port_mixer),
  13835. };
  13836. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13837. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13838. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13839. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13840. msm_routing_put_port_mixer),
  13841. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13843. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13844. msm_routing_put_port_mixer),
  13845. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13847. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13848. msm_routing_put_port_mixer),
  13849. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13851. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13852. msm_routing_put_port_mixer),
  13853. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13855. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13856. msm_routing_put_port_mixer),
  13857. };
  13858. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13859. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13861. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13862. msm_routing_put_port_mixer),
  13863. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13865. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13866. msm_routing_put_port_mixer),
  13867. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13869. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13870. msm_routing_put_port_mixer),
  13871. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13873. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13874. msm_routing_put_port_mixer),
  13875. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13877. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13878. msm_routing_put_port_mixer),
  13879. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13881. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13882. msm_routing_put_port_mixer),
  13883. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13885. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13886. msm_routing_put_port_mixer),
  13887. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13889. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13890. msm_routing_put_port_mixer),
  13891. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13893. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13894. msm_routing_put_port_mixer),
  13895. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13897. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13898. msm_routing_put_port_mixer),
  13899. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13901. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13902. msm_routing_put_port_mixer),
  13903. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13905. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13906. msm_routing_put_port_mixer),
  13907. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13909. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13910. msm_routing_put_port_mixer),
  13911. };
  13912. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13913. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13915. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13916. msm_routing_put_port_mixer),
  13917. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13919. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13920. msm_routing_put_port_mixer),
  13921. };
  13922. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13923. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_AFE_PCM_RX,
  13925. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13926. msm_routing_put_port_mixer),
  13927. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_AFE_PCM_RX,
  13929. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13930. msm_routing_put_port_mixer),
  13931. };
  13932. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13933. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_HDMI_RX,
  13935. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13936. msm_routing_put_port_mixer),
  13937. };
  13938. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13939. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13941. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13942. msm_routing_put_port_mixer),
  13943. };
  13944. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13945. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13946. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13947. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13948. msm_routing_put_port_mixer),
  13949. };
  13950. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13951. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_SEC_I2S_RX,
  13953. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13954. msm_routing_put_port_mixer),
  13955. };
  13956. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13957. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_MI2S_RX,
  13959. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13960. msm_routing_put_port_mixer),
  13961. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_MI2S_RX,
  13963. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13964. msm_routing_put_port_mixer),
  13965. };
  13966. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13967. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13969. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13970. msm_routing_put_port_mixer),
  13971. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13973. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13974. msm_routing_put_port_mixer),
  13975. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13977. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13978. msm_routing_put_port_mixer),
  13979. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13981. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13982. msm_routing_put_port_mixer),
  13983. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13985. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13986. msm_routing_put_port_mixer),
  13987. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13989. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13990. msm_routing_put_port_mixer),
  13991. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13992. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13993. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13994. msm_routing_put_port_mixer),
  13995. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13996. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13997. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13998. msm_routing_put_port_mixer),
  13999. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14000. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14001. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14002. msm_routing_put_port_mixer),
  14003. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14005. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14006. msm_routing_put_port_mixer),
  14007. };
  14008. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  14009. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_USB_RX,
  14011. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  14012. msm_routing_put_port_mixer),
  14013. };
  14014. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  14015. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14016. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14017. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14018. msm_routing_put_port_mixer),
  14019. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14021. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14022. msm_routing_put_port_mixer),
  14023. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14025. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14026. msm_routing_put_port_mixer),
  14027. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14028. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14029. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14030. msm_routing_put_port_mixer),
  14031. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14032. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14033. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14034. msm_routing_put_port_mixer),
  14035. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14037. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14038. msm_routing_put_port_mixer),
  14039. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14041. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14042. msm_routing_put_port_mixer),
  14043. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14045. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14046. msm_routing_put_port_mixer),
  14047. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14049. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14050. msm_routing_put_port_mixer),
  14051. };
  14052. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  14053. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14055. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14056. msm_routing_put_port_mixer),
  14057. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14059. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14060. msm_routing_put_port_mixer),
  14061. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14063. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14064. msm_routing_put_port_mixer),
  14065. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14067. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14068. msm_routing_put_port_mixer),
  14069. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14071. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14072. msm_routing_put_port_mixer),
  14073. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14075. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14076. msm_routing_put_port_mixer),
  14077. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14079. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14080. msm_routing_put_port_mixer),
  14081. };
  14082. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  14083. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14085. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14086. msm_routing_get_port_mixer,
  14087. msm_routing_put_port_mixer),
  14088. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14089. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14090. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14091. msm_routing_get_port_mixer,
  14092. msm_routing_put_port_mixer),
  14093. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14095. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14096. msm_routing_get_port_mixer,
  14097. msm_routing_put_port_mixer),
  14098. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14100. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14101. msm_routing_get_port_mixer,
  14102. msm_routing_put_port_mixer),
  14103. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14105. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14106. msm_routing_get_port_mixer,
  14107. msm_routing_put_port_mixer),
  14108. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14109. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14110. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14111. msm_routing_get_port_mixer,
  14112. msm_routing_put_port_mixer),
  14113. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14115. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14116. msm_routing_get_port_mixer,
  14117. msm_routing_put_port_mixer),
  14118. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14120. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14121. msm_routing_get_port_mixer,
  14122. msm_routing_put_port_mixer),
  14123. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14125. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14126. msm_routing_get_port_mixer,
  14127. msm_routing_put_port_mixer),
  14128. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14129. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14130. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14131. msm_routing_get_port_mixer,
  14132. msm_routing_put_port_mixer),
  14133. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14135. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14136. msm_routing_get_port_mixer,
  14137. msm_routing_put_port_mixer),
  14138. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14140. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14141. msm_routing_get_port_mixer,
  14142. msm_routing_put_port_mixer),
  14143. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14145. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14146. msm_routing_get_port_mixer,
  14147. msm_routing_put_port_mixer),
  14148. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14149. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14150. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14151. msm_routing_get_port_mixer,
  14152. msm_routing_put_port_mixer),
  14153. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14155. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14156. msm_routing_get_port_mixer,
  14157. msm_routing_put_port_mixer),
  14158. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14159. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14160. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14161. msm_routing_get_port_mixer,
  14162. msm_routing_put_port_mixer),
  14163. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14165. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14166. msm_routing_get_port_mixer,
  14167. msm_routing_put_port_mixer),
  14168. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14169. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14170. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14171. msm_routing_get_port_mixer,
  14172. msm_routing_put_port_mixer),
  14173. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14175. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14176. msm_routing_get_port_mixer,
  14177. msm_routing_put_port_mixer),
  14178. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14180. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14181. msm_routing_get_port_mixer,
  14182. msm_routing_put_port_mixer),
  14183. };
  14184. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  14185. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14187. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14188. msm_routing_get_port_mixer,
  14189. msm_routing_put_port_mixer),
  14190. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14192. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14193. msm_routing_get_port_mixer,
  14194. msm_routing_put_port_mixer),
  14195. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14197. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14198. msm_routing_get_port_mixer,
  14199. msm_routing_put_port_mixer),
  14200. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14201. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14202. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14203. msm_routing_get_port_mixer,
  14204. msm_routing_put_port_mixer),
  14205. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14207. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14208. msm_routing_get_port_mixer,
  14209. msm_routing_put_port_mixer),
  14210. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14211. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14212. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14213. msm_routing_get_port_mixer,
  14214. msm_routing_put_port_mixer),
  14215. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14217. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14218. msm_routing_get_port_mixer,
  14219. msm_routing_put_port_mixer),
  14220. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14222. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14223. msm_routing_get_port_mixer,
  14224. msm_routing_put_port_mixer),
  14225. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14227. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14228. msm_routing_get_port_mixer,
  14229. msm_routing_put_port_mixer),
  14230. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14232. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14233. msm_routing_get_port_mixer,
  14234. msm_routing_put_port_mixer),
  14235. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14237. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14238. msm_routing_get_port_mixer,
  14239. msm_routing_put_port_mixer),
  14240. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14241. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14242. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14243. msm_routing_get_port_mixer,
  14244. msm_routing_put_port_mixer),
  14245. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14247. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14248. msm_routing_get_port_mixer,
  14249. msm_routing_put_port_mixer),
  14250. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14251. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14252. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14253. msm_routing_get_port_mixer,
  14254. msm_routing_put_port_mixer),
  14255. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14256. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14257. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14258. msm_routing_get_port_mixer,
  14259. msm_routing_put_port_mixer),
  14260. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14261. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14262. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14263. msm_routing_get_port_mixer,
  14264. msm_routing_put_port_mixer),
  14265. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14267. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14268. msm_routing_get_port_mixer,
  14269. msm_routing_put_port_mixer),
  14270. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14271. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14272. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14273. msm_routing_get_port_mixer,
  14274. msm_routing_put_port_mixer),
  14275. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14277. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14278. msm_routing_get_port_mixer,
  14279. msm_routing_put_port_mixer),
  14280. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14281. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14282. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14283. msm_routing_get_port_mixer,
  14284. msm_routing_put_port_mixer),
  14285. };
  14286. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  14287. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14289. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14290. msm_routing_get_port_mixer,
  14291. msm_routing_put_port_mixer),
  14292. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14294. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14295. msm_routing_get_port_mixer,
  14296. msm_routing_put_port_mixer),
  14297. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14299. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14300. msm_routing_get_port_mixer,
  14301. msm_routing_put_port_mixer),
  14302. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14303. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14304. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14305. msm_routing_get_port_mixer,
  14306. msm_routing_put_port_mixer),
  14307. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14309. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14310. msm_routing_get_port_mixer,
  14311. msm_routing_put_port_mixer),
  14312. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14314. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14315. msm_routing_get_port_mixer,
  14316. msm_routing_put_port_mixer),
  14317. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14319. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14320. msm_routing_get_port_mixer,
  14321. msm_routing_put_port_mixer),
  14322. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14323. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14324. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14325. msm_routing_get_port_mixer,
  14326. msm_routing_put_port_mixer),
  14327. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14329. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14330. msm_routing_get_port_mixer,
  14331. msm_routing_put_port_mixer),
  14332. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14334. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14335. msm_routing_get_port_mixer,
  14336. msm_routing_put_port_mixer),
  14337. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14339. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14340. msm_routing_get_port_mixer,
  14341. msm_routing_put_port_mixer),
  14342. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14343. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14344. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14345. msm_routing_get_port_mixer,
  14346. msm_routing_put_port_mixer),
  14347. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14348. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14349. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14350. msm_routing_get_port_mixer,
  14351. msm_routing_put_port_mixer),
  14352. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14353. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14354. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14355. msm_routing_get_port_mixer,
  14356. msm_routing_put_port_mixer),
  14357. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14359. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14360. msm_routing_get_port_mixer,
  14361. msm_routing_put_port_mixer),
  14362. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14363. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14364. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14365. msm_routing_get_port_mixer,
  14366. msm_routing_put_port_mixer),
  14367. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14369. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14370. msm_routing_get_port_mixer,
  14371. msm_routing_put_port_mixer),
  14372. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14373. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14374. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14375. msm_routing_get_port_mixer,
  14376. msm_routing_put_port_mixer),
  14377. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14379. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14380. msm_routing_get_port_mixer,
  14381. msm_routing_put_port_mixer),
  14382. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14383. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14384. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14385. msm_routing_get_port_mixer,
  14386. msm_routing_put_port_mixer),
  14387. };
  14388. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  14389. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14391. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14392. msm_routing_get_port_mixer,
  14393. msm_routing_put_port_mixer),
  14394. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14395. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14396. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14397. msm_routing_get_port_mixer,
  14398. msm_routing_put_port_mixer),
  14399. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14401. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14402. msm_routing_get_port_mixer,
  14403. msm_routing_put_port_mixer),
  14404. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14405. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14406. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14407. msm_routing_get_port_mixer,
  14408. msm_routing_put_port_mixer),
  14409. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14411. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14412. msm_routing_get_port_mixer,
  14413. msm_routing_put_port_mixer),
  14414. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14415. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14416. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14417. msm_routing_get_port_mixer,
  14418. msm_routing_put_port_mixer),
  14419. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14421. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14422. msm_routing_get_port_mixer,
  14423. msm_routing_put_port_mixer),
  14424. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14426. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14427. msm_routing_get_port_mixer,
  14428. msm_routing_put_port_mixer),
  14429. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14431. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14432. msm_routing_get_port_mixer,
  14433. msm_routing_put_port_mixer),
  14434. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14435. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14436. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14437. msm_routing_get_port_mixer,
  14438. msm_routing_put_port_mixer),
  14439. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14441. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14442. msm_routing_get_port_mixer,
  14443. msm_routing_put_port_mixer),
  14444. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14446. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14447. msm_routing_get_port_mixer,
  14448. msm_routing_put_port_mixer),
  14449. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14451. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14452. msm_routing_get_port_mixer,
  14453. msm_routing_put_port_mixer),
  14454. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14455. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14456. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14457. msm_routing_get_port_mixer,
  14458. msm_routing_put_port_mixer),
  14459. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14460. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14461. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14462. msm_routing_get_port_mixer,
  14463. msm_routing_put_port_mixer),
  14464. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14465. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14466. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14467. msm_routing_get_port_mixer,
  14468. msm_routing_put_port_mixer),
  14469. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14471. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14472. msm_routing_get_port_mixer,
  14473. msm_routing_put_port_mixer),
  14474. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14475. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14476. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14477. msm_routing_get_port_mixer,
  14478. msm_routing_put_port_mixer),
  14479. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14481. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14482. msm_routing_get_port_mixer,
  14483. msm_routing_put_port_mixer),
  14484. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14485. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14486. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14487. msm_routing_get_port_mixer,
  14488. msm_routing_put_port_mixer),
  14489. };
  14490. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14491. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14493. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14494. msm_routing_get_port_mixer,
  14495. msm_routing_put_port_mixer),
  14496. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14497. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14498. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14499. msm_routing_get_port_mixer,
  14500. msm_routing_put_port_mixer),
  14501. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14503. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14504. msm_routing_get_port_mixer,
  14505. msm_routing_put_port_mixer),
  14506. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14508. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14509. msm_routing_get_port_mixer,
  14510. msm_routing_put_port_mixer),
  14511. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14513. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14514. msm_routing_get_port_mixer,
  14515. msm_routing_put_port_mixer),
  14516. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14517. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14518. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14519. msm_routing_get_port_mixer,
  14520. msm_routing_put_port_mixer),
  14521. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14523. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14524. msm_routing_get_port_mixer,
  14525. msm_routing_put_port_mixer),
  14526. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14528. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14529. msm_routing_get_port_mixer,
  14530. msm_routing_put_port_mixer),
  14531. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14533. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14534. msm_routing_get_port_mixer,
  14535. msm_routing_put_port_mixer),
  14536. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14537. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14538. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14539. msm_routing_get_port_mixer,
  14540. msm_routing_put_port_mixer),
  14541. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14543. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14544. msm_routing_get_port_mixer,
  14545. msm_routing_put_port_mixer),
  14546. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14548. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14549. msm_routing_get_port_mixer,
  14550. msm_routing_put_port_mixer),
  14551. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14553. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14554. msm_routing_get_port_mixer,
  14555. msm_routing_put_port_mixer),
  14556. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14558. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14559. msm_routing_get_port_mixer,
  14560. msm_routing_put_port_mixer),
  14561. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14563. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14564. msm_routing_get_port_mixer,
  14565. msm_routing_put_port_mixer),
  14566. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14568. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14569. msm_routing_get_port_mixer,
  14570. msm_routing_put_port_mixer),
  14571. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14573. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14574. msm_routing_get_port_mixer,
  14575. msm_routing_put_port_mixer),
  14576. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14578. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14579. msm_routing_get_port_mixer,
  14580. msm_routing_put_port_mixer),
  14581. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14583. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14584. msm_routing_get_port_mixer,
  14585. msm_routing_put_port_mixer),
  14586. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14588. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14589. msm_routing_get_port_mixer,
  14590. msm_routing_put_port_mixer),
  14591. };
  14592. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14593. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14595. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14596. msm_routing_get_port_mixer,
  14597. msm_routing_put_port_mixer),
  14598. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14599. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14600. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14601. msm_routing_get_port_mixer,
  14602. msm_routing_put_port_mixer),
  14603. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14605. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14606. msm_routing_get_port_mixer,
  14607. msm_routing_put_port_mixer),
  14608. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14609. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14610. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14611. msm_routing_get_port_mixer,
  14612. msm_routing_put_port_mixer),
  14613. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14615. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14616. msm_routing_get_port_mixer,
  14617. msm_routing_put_port_mixer),
  14618. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14620. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14621. msm_routing_get_port_mixer,
  14622. msm_routing_put_port_mixer),
  14623. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14625. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14626. msm_routing_get_port_mixer,
  14627. msm_routing_put_port_mixer),
  14628. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14630. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14631. msm_routing_get_port_mixer,
  14632. msm_routing_put_port_mixer),
  14633. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14635. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14636. msm_routing_get_port_mixer,
  14637. msm_routing_put_port_mixer),
  14638. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14640. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14641. msm_routing_get_port_mixer,
  14642. msm_routing_put_port_mixer),
  14643. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14645. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14646. msm_routing_get_port_mixer,
  14647. msm_routing_put_port_mixer),
  14648. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14650. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14651. msm_routing_get_port_mixer,
  14652. msm_routing_put_port_mixer),
  14653. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14655. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14656. msm_routing_get_port_mixer,
  14657. msm_routing_put_port_mixer),
  14658. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14659. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14660. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14661. msm_routing_get_port_mixer,
  14662. msm_routing_put_port_mixer),
  14663. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14665. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14666. msm_routing_get_port_mixer,
  14667. msm_routing_put_port_mixer),
  14668. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14670. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14671. msm_routing_get_port_mixer,
  14672. msm_routing_put_port_mixer),
  14673. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14675. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14676. msm_routing_get_port_mixer,
  14677. msm_routing_put_port_mixer),
  14678. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14680. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14681. msm_routing_get_port_mixer,
  14682. msm_routing_put_port_mixer),
  14683. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14685. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14686. msm_routing_get_port_mixer,
  14687. msm_routing_put_port_mixer),
  14688. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14690. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14691. msm_routing_get_port_mixer,
  14692. msm_routing_put_port_mixer),
  14693. };
  14694. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14695. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14697. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14698. msm_routing_get_port_mixer,
  14699. msm_routing_put_port_mixer),
  14700. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14702. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14703. msm_routing_get_port_mixer,
  14704. msm_routing_put_port_mixer),
  14705. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14707. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14708. msm_routing_get_port_mixer,
  14709. msm_routing_put_port_mixer),
  14710. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14711. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14712. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14713. msm_routing_get_port_mixer,
  14714. msm_routing_put_port_mixer),
  14715. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14717. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14718. msm_routing_get_port_mixer,
  14719. msm_routing_put_port_mixer),
  14720. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14721. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14722. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14723. msm_routing_get_port_mixer,
  14724. msm_routing_put_port_mixer),
  14725. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14727. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14728. msm_routing_get_port_mixer,
  14729. msm_routing_put_port_mixer),
  14730. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14732. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14733. msm_routing_get_port_mixer,
  14734. msm_routing_put_port_mixer),
  14735. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14737. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14738. msm_routing_get_port_mixer,
  14739. msm_routing_put_port_mixer),
  14740. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14742. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14743. msm_routing_get_port_mixer,
  14744. msm_routing_put_port_mixer),
  14745. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14747. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14748. msm_routing_get_port_mixer,
  14749. msm_routing_put_port_mixer),
  14750. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14752. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14753. msm_routing_get_port_mixer,
  14754. msm_routing_put_port_mixer),
  14755. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14757. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14758. msm_routing_get_port_mixer,
  14759. msm_routing_put_port_mixer),
  14760. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14762. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14763. msm_routing_get_port_mixer,
  14764. msm_routing_put_port_mixer),
  14765. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14767. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14768. msm_routing_get_port_mixer,
  14769. msm_routing_put_port_mixer),
  14770. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14772. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14773. msm_routing_get_port_mixer,
  14774. msm_routing_put_port_mixer),
  14775. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14777. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14778. msm_routing_get_port_mixer,
  14779. msm_routing_put_port_mixer),
  14780. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14782. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14783. msm_routing_get_port_mixer,
  14784. msm_routing_put_port_mixer),
  14785. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14787. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14788. msm_routing_get_port_mixer,
  14789. msm_routing_put_port_mixer),
  14790. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14791. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14792. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14793. msm_routing_get_port_mixer,
  14794. msm_routing_put_port_mixer),
  14795. };
  14796. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  14797. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14799. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14800. msm_routing_get_port_mixer,
  14801. msm_routing_put_port_mixer),
  14802. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14803. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14804. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14805. msm_routing_get_port_mixer,
  14806. msm_routing_put_port_mixer),
  14807. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14809. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14810. msm_routing_get_port_mixer,
  14811. msm_routing_put_port_mixer),
  14812. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14813. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14814. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14815. msm_routing_get_port_mixer,
  14816. msm_routing_put_port_mixer),
  14817. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14819. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14820. msm_routing_get_port_mixer,
  14821. msm_routing_put_port_mixer),
  14822. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14824. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14825. msm_routing_get_port_mixer,
  14826. msm_routing_put_port_mixer),
  14827. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14829. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14830. msm_routing_get_port_mixer,
  14831. msm_routing_put_port_mixer),
  14832. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14834. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14835. msm_routing_get_port_mixer,
  14836. msm_routing_put_port_mixer),
  14837. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14839. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14840. msm_routing_get_port_mixer,
  14841. msm_routing_put_port_mixer),
  14842. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14844. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14845. msm_routing_get_port_mixer,
  14846. msm_routing_put_port_mixer),
  14847. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14849. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14850. msm_routing_get_port_mixer,
  14851. msm_routing_put_port_mixer),
  14852. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14854. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14855. msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14859. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14860. msm_routing_get_port_mixer,
  14861. msm_routing_put_port_mixer),
  14862. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14864. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14865. msm_routing_get_port_mixer,
  14866. msm_routing_put_port_mixer),
  14867. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14869. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14870. msm_routing_get_port_mixer,
  14871. msm_routing_put_port_mixer),
  14872. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14874. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14875. msm_routing_get_port_mixer,
  14876. msm_routing_put_port_mixer),
  14877. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14879. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14880. msm_routing_get_port_mixer,
  14881. msm_routing_put_port_mixer),
  14882. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14884. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14885. msm_routing_get_port_mixer,
  14886. msm_routing_put_port_mixer),
  14887. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14889. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14890. msm_routing_get_port_mixer,
  14891. msm_routing_put_port_mixer),
  14892. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14894. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14895. msm_routing_get_port_mixer,
  14896. msm_routing_put_port_mixer),
  14897. };
  14898. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  14899. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  14901. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  14902. msm_routing_get_port_mixer,
  14903. msm_routing_put_port_mixer),
  14904. };
  14905. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14906. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14907. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14908. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14909. msm_routing_get_port_mixer,
  14910. msm_routing_put_port_mixer),
  14911. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14913. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14914. msm_routing_get_port_mixer,
  14915. msm_routing_put_port_mixer),
  14916. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14918. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14919. msm_routing_get_port_mixer,
  14920. msm_routing_put_port_mixer),
  14921. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14923. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14924. msm_routing_get_port_mixer,
  14925. msm_routing_put_port_mixer),
  14926. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14927. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14928. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14929. msm_routing_get_port_mixer,
  14930. msm_routing_put_port_mixer),
  14931. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14933. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14934. msm_routing_get_port_mixer,
  14935. msm_routing_put_port_mixer),
  14936. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14937. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14938. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14939. msm_routing_get_port_mixer,
  14940. msm_routing_put_port_mixer),
  14941. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14942. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14943. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14944. msm_routing_get_port_mixer,
  14945. msm_routing_put_port_mixer),
  14946. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14947. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14948. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14949. msm_routing_get_port_mixer,
  14950. msm_routing_put_port_mixer),
  14951. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14953. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14954. msm_routing_get_port_mixer,
  14955. msm_routing_put_port_mixer),
  14956. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14957. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14958. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14959. msm_routing_get_port_mixer,
  14960. msm_routing_put_port_mixer),
  14961. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14963. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14964. msm_routing_get_port_mixer,
  14965. msm_routing_put_port_mixer),
  14966. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14967. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14968. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14969. msm_routing_get_port_mixer,
  14970. msm_routing_put_port_mixer),
  14971. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14973. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14974. msm_routing_get_port_mixer,
  14975. msm_routing_put_port_mixer),
  14976. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14977. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14978. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14979. msm_routing_get_port_mixer,
  14980. msm_routing_put_port_mixer),
  14981. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14983. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14984. msm_routing_get_port_mixer,
  14985. msm_routing_put_port_mixer),
  14986. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14988. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14989. msm_routing_get_port_mixer,
  14990. msm_routing_put_port_mixer),
  14991. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14993. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14994. msm_routing_get_port_mixer,
  14995. msm_routing_put_port_mixer),
  14996. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14997. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14998. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14999. msm_routing_get_port_mixer,
  15000. msm_routing_put_port_mixer),
  15001. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15002. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  15003. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15004. msm_routing_get_port_mixer,
  15005. msm_routing_put_port_mixer),
  15006. };
  15007. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  15008. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15009. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15010. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15011. msm_routing_get_port_mixer,
  15012. msm_routing_put_port_mixer),
  15013. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15015. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15016. msm_routing_get_port_mixer,
  15017. msm_routing_put_port_mixer),
  15018. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15020. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15021. msm_routing_get_port_mixer,
  15022. msm_routing_put_port_mixer),
  15023. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15025. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15026. msm_routing_get_port_mixer,
  15027. msm_routing_put_port_mixer),
  15028. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15029. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15030. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15031. msm_routing_get_port_mixer,
  15032. msm_routing_put_port_mixer),
  15033. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15035. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15036. msm_routing_get_port_mixer,
  15037. msm_routing_put_port_mixer),
  15038. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15040. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15041. msm_routing_get_port_mixer,
  15042. msm_routing_put_port_mixer),
  15043. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15045. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15046. msm_routing_get_port_mixer,
  15047. msm_routing_put_port_mixer),
  15048. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15049. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15050. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15051. msm_routing_get_port_mixer,
  15052. msm_routing_put_port_mixer),
  15053. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15055. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15056. msm_routing_get_port_mixer,
  15057. msm_routing_put_port_mixer),
  15058. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15059. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15060. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15061. msm_routing_get_port_mixer,
  15062. msm_routing_put_port_mixer),
  15063. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15065. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15066. msm_routing_get_port_mixer,
  15067. msm_routing_put_port_mixer),
  15068. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15069. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15070. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15071. msm_routing_get_port_mixer,
  15072. msm_routing_put_port_mixer),
  15073. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15074. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15075. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15076. msm_routing_get_port_mixer,
  15077. msm_routing_put_port_mixer),
  15078. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15079. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15080. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15081. msm_routing_get_port_mixer,
  15082. msm_routing_put_port_mixer),
  15083. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15085. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15086. msm_routing_get_port_mixer,
  15087. msm_routing_put_port_mixer),
  15088. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15089. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15090. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15091. msm_routing_get_port_mixer,
  15092. msm_routing_put_port_mixer),
  15093. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15095. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15096. msm_routing_get_port_mixer,
  15097. msm_routing_put_port_mixer),
  15098. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15099. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15100. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15101. msm_routing_get_port_mixer,
  15102. msm_routing_put_port_mixer),
  15103. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  15105. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15106. msm_routing_get_port_mixer,
  15107. msm_routing_put_port_mixer),
  15108. };
  15109. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  15110. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15111. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15112. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15113. msm_routing_get_port_mixer,
  15114. msm_routing_put_port_mixer),
  15115. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15117. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15118. msm_routing_get_port_mixer,
  15119. msm_routing_put_port_mixer),
  15120. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15121. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15122. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15123. msm_routing_get_port_mixer,
  15124. msm_routing_put_port_mixer),
  15125. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15127. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15128. msm_routing_get_port_mixer,
  15129. msm_routing_put_port_mixer),
  15130. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15131. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15132. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15133. msm_routing_get_port_mixer,
  15134. msm_routing_put_port_mixer),
  15135. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15137. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15138. msm_routing_get_port_mixer,
  15139. msm_routing_put_port_mixer),
  15140. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15141. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15142. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15143. msm_routing_get_port_mixer,
  15144. msm_routing_put_port_mixer),
  15145. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15147. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15148. msm_routing_get_port_mixer,
  15149. msm_routing_put_port_mixer),
  15150. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15152. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15153. msm_routing_get_port_mixer,
  15154. msm_routing_put_port_mixer),
  15155. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15157. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15158. msm_routing_get_port_mixer,
  15159. msm_routing_put_port_mixer),
  15160. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15161. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15162. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15163. msm_routing_get_port_mixer,
  15164. msm_routing_put_port_mixer),
  15165. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15166. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15167. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15168. msm_routing_get_port_mixer,
  15169. msm_routing_put_port_mixer),
  15170. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15171. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15172. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15173. msm_routing_get_port_mixer,
  15174. msm_routing_put_port_mixer),
  15175. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15177. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15178. msm_routing_get_port_mixer,
  15179. msm_routing_put_port_mixer),
  15180. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15181. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15182. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15183. msm_routing_get_port_mixer,
  15184. msm_routing_put_port_mixer),
  15185. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15187. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15188. msm_routing_get_port_mixer,
  15189. msm_routing_put_port_mixer),
  15190. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15192. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15193. msm_routing_get_port_mixer,
  15194. msm_routing_put_port_mixer),
  15195. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15197. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15198. msm_routing_get_port_mixer,
  15199. msm_routing_put_port_mixer),
  15200. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15202. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15203. msm_routing_get_port_mixer,
  15204. msm_routing_put_port_mixer),
  15205. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15206. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  15207. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15208. msm_routing_get_port_mixer,
  15209. msm_routing_put_port_mixer),
  15210. };
  15211. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  15212. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15214. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15215. msm_routing_get_port_mixer,
  15216. msm_routing_put_port_mixer),
  15217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15218. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15220. msm_routing_get_port_mixer,
  15221. msm_routing_put_port_mixer),
  15222. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15223. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15224. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15225. msm_routing_get_port_mixer,
  15226. msm_routing_put_port_mixer),
  15227. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15229. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15230. msm_routing_get_port_mixer,
  15231. msm_routing_put_port_mixer),
  15232. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15233. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15234. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15235. msm_routing_get_port_mixer,
  15236. msm_routing_put_port_mixer),
  15237. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15239. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15240. msm_routing_get_port_mixer,
  15241. msm_routing_put_port_mixer),
  15242. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15243. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15244. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15245. msm_routing_get_port_mixer,
  15246. msm_routing_put_port_mixer),
  15247. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15249. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15250. msm_routing_get_port_mixer,
  15251. msm_routing_put_port_mixer),
  15252. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15254. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15255. msm_routing_get_port_mixer,
  15256. msm_routing_put_port_mixer),
  15257. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15259. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15260. msm_routing_get_port_mixer,
  15261. msm_routing_put_port_mixer),
  15262. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15264. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15265. msm_routing_get_port_mixer,
  15266. msm_routing_put_port_mixer),
  15267. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15269. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15270. msm_routing_get_port_mixer,
  15271. msm_routing_put_port_mixer),
  15272. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15273. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15274. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15275. msm_routing_get_port_mixer,
  15276. msm_routing_put_port_mixer),
  15277. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15279. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15280. msm_routing_get_port_mixer,
  15281. msm_routing_put_port_mixer),
  15282. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15283. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15284. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15285. msm_routing_get_port_mixer,
  15286. msm_routing_put_port_mixer),
  15287. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15288. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15289. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15290. msm_routing_get_port_mixer,
  15291. msm_routing_put_port_mixer),
  15292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15294. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15295. msm_routing_get_port_mixer,
  15296. msm_routing_put_port_mixer),
  15297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15299. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15300. msm_routing_get_port_mixer,
  15301. msm_routing_put_port_mixer),
  15302. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15304. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15305. msm_routing_get_port_mixer,
  15306. msm_routing_put_port_mixer),
  15307. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  15309. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15310. msm_routing_get_port_mixer,
  15311. msm_routing_put_port_mixer),
  15312. };
  15313. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  15314. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15316. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15317. msm_routing_get_port_mixer,
  15318. msm_routing_put_port_mixer),
  15319. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15321. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15322. msm_routing_get_port_mixer,
  15323. msm_routing_put_port_mixer),
  15324. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15325. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15326. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15327. msm_routing_get_port_mixer,
  15328. msm_routing_put_port_mixer),
  15329. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15331. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15332. msm_routing_get_port_mixer,
  15333. msm_routing_put_port_mixer),
  15334. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15335. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15336. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15337. msm_routing_get_port_mixer,
  15338. msm_routing_put_port_mixer),
  15339. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15341. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15342. msm_routing_get_port_mixer,
  15343. msm_routing_put_port_mixer),
  15344. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15345. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15346. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15347. msm_routing_get_port_mixer,
  15348. msm_routing_put_port_mixer),
  15349. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15350. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15351. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15352. msm_routing_get_port_mixer,
  15353. msm_routing_put_port_mixer),
  15354. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15356. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15357. msm_routing_get_port_mixer,
  15358. msm_routing_put_port_mixer),
  15359. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15361. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15362. msm_routing_get_port_mixer,
  15363. msm_routing_put_port_mixer),
  15364. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15366. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15367. msm_routing_get_port_mixer,
  15368. msm_routing_put_port_mixer),
  15369. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15370. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15371. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15372. msm_routing_get_port_mixer,
  15373. msm_routing_put_port_mixer),
  15374. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15375. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15376. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15377. msm_routing_get_port_mixer,
  15378. msm_routing_put_port_mixer),
  15379. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15380. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15381. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15382. msm_routing_get_port_mixer,
  15383. msm_routing_put_port_mixer),
  15384. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15386. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15387. msm_routing_get_port_mixer,
  15388. msm_routing_put_port_mixer),
  15389. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15390. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15391. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15392. msm_routing_get_port_mixer,
  15393. msm_routing_put_port_mixer),
  15394. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15396. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15397. msm_routing_get_port_mixer,
  15398. msm_routing_put_port_mixer),
  15399. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15401. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15402. msm_routing_get_port_mixer,
  15403. msm_routing_put_port_mixer),
  15404. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15405. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15406. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15407. msm_routing_get_port_mixer,
  15408. msm_routing_put_port_mixer),
  15409. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15411. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15412. msm_routing_get_port_mixer,
  15413. msm_routing_put_port_mixer),
  15414. };
  15415. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  15416. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15417. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15418. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15419. msm_routing_get_port_mixer,
  15420. msm_routing_put_port_mixer),
  15421. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15422. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15423. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15424. msm_routing_get_port_mixer,
  15425. msm_routing_put_port_mixer),
  15426. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15427. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15428. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15429. msm_routing_get_port_mixer,
  15430. msm_routing_put_port_mixer),
  15431. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15432. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15433. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15434. msm_routing_get_port_mixer,
  15435. msm_routing_put_port_mixer),
  15436. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15438. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15439. msm_routing_get_port_mixer,
  15440. msm_routing_put_port_mixer),
  15441. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15443. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15444. msm_routing_get_port_mixer,
  15445. msm_routing_put_port_mixer),
  15446. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15447. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15448. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15449. msm_routing_get_port_mixer,
  15450. msm_routing_put_port_mixer),
  15451. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15452. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15453. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15454. msm_routing_get_port_mixer,
  15455. msm_routing_put_port_mixer),
  15456. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15458. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15459. msm_routing_get_port_mixer,
  15460. msm_routing_put_port_mixer),
  15461. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15462. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15463. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15464. msm_routing_get_port_mixer,
  15465. msm_routing_put_port_mixer),
  15466. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15467. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15468. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15469. msm_routing_get_port_mixer,
  15470. msm_routing_put_port_mixer),
  15471. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15473. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15474. msm_routing_get_port_mixer,
  15475. msm_routing_put_port_mixer),
  15476. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15478. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15479. msm_routing_get_port_mixer,
  15480. msm_routing_put_port_mixer),
  15481. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15482. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15483. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15484. msm_routing_get_port_mixer,
  15485. msm_routing_put_port_mixer),
  15486. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15487. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15488. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15489. msm_routing_get_port_mixer,
  15490. msm_routing_put_port_mixer),
  15491. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15492. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15493. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15494. msm_routing_get_port_mixer,
  15495. msm_routing_put_port_mixer),
  15496. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15497. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15498. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15499. msm_routing_get_port_mixer,
  15500. msm_routing_put_port_mixer),
  15501. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15502. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15503. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15504. msm_routing_get_port_mixer,
  15505. msm_routing_put_port_mixer),
  15506. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15508. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15509. msm_routing_get_port_mixer,
  15510. msm_routing_put_port_mixer),
  15511. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15513. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15514. msm_routing_get_port_mixer,
  15515. msm_routing_put_port_mixer),
  15516. };
  15517. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15518. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15520. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15521. msm_routing_get_port_mixer,
  15522. msm_routing_put_port_mixer),
  15523. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15524. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15525. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15526. msm_routing_get_port_mixer,
  15527. msm_routing_put_port_mixer),
  15528. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15529. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15530. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15531. msm_routing_get_port_mixer,
  15532. msm_routing_put_port_mixer),
  15533. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15534. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15535. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15536. msm_routing_get_port_mixer,
  15537. msm_routing_put_port_mixer),
  15538. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15539. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15540. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15541. msm_routing_get_port_mixer,
  15542. msm_routing_put_port_mixer),
  15543. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15544. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15545. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15546. msm_routing_get_port_mixer,
  15547. msm_routing_put_port_mixer),
  15548. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15550. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15551. msm_routing_get_port_mixer,
  15552. msm_routing_put_port_mixer),
  15553. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15554. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15555. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15556. msm_routing_get_port_mixer,
  15557. msm_routing_put_port_mixer),
  15558. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15560. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15561. msm_routing_get_port_mixer,
  15562. msm_routing_put_port_mixer),
  15563. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15564. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15565. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15566. msm_routing_get_port_mixer,
  15567. msm_routing_put_port_mixer),
  15568. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15569. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15570. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15571. msm_routing_get_port_mixer,
  15572. msm_routing_put_port_mixer),
  15573. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15575. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15576. msm_routing_get_port_mixer,
  15577. msm_routing_put_port_mixer),
  15578. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15580. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15581. msm_routing_get_port_mixer,
  15582. msm_routing_put_port_mixer),
  15583. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15585. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15586. msm_routing_get_port_mixer,
  15587. msm_routing_put_port_mixer),
  15588. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15590. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15591. msm_routing_get_port_mixer,
  15592. msm_routing_put_port_mixer),
  15593. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15594. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15595. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15596. msm_routing_get_port_mixer,
  15597. msm_routing_put_port_mixer),
  15598. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15599. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15600. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15601. msm_routing_get_port_mixer,
  15602. msm_routing_put_port_mixer),
  15603. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15604. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15605. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15606. msm_routing_get_port_mixer,
  15607. msm_routing_put_port_mixer),
  15608. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15609. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15610. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15611. msm_routing_get_port_mixer,
  15612. msm_routing_put_port_mixer),
  15613. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15614. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15615. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15616. msm_routing_get_port_mixer,
  15617. msm_routing_put_port_mixer),
  15618. };
  15619. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15620. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15622. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15623. msm_routing_get_port_mixer,
  15624. msm_routing_put_port_mixer),
  15625. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15627. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15628. msm_routing_get_port_mixer,
  15629. msm_routing_put_port_mixer),
  15630. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15631. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15632. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15633. msm_routing_get_port_mixer,
  15634. msm_routing_put_port_mixer),
  15635. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15636. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15637. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15638. msm_routing_get_port_mixer,
  15639. msm_routing_put_port_mixer),
  15640. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15642. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15643. msm_routing_get_port_mixer,
  15644. msm_routing_put_port_mixer),
  15645. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15646. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15647. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15648. msm_routing_get_port_mixer,
  15649. msm_routing_put_port_mixer),
  15650. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15652. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15653. msm_routing_get_port_mixer,
  15654. msm_routing_put_port_mixer),
  15655. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15656. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15657. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15658. msm_routing_get_port_mixer,
  15659. msm_routing_put_port_mixer),
  15660. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15661. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15662. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15663. msm_routing_get_port_mixer,
  15664. msm_routing_put_port_mixer),
  15665. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15666. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15667. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15668. msm_routing_get_port_mixer,
  15669. msm_routing_put_port_mixer),
  15670. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15672. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15673. msm_routing_get_port_mixer,
  15674. msm_routing_put_port_mixer),
  15675. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15677. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15678. msm_routing_get_port_mixer,
  15679. msm_routing_put_port_mixer),
  15680. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15682. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15683. msm_routing_get_port_mixer,
  15684. msm_routing_put_port_mixer),
  15685. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15686. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15687. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15688. msm_routing_get_port_mixer,
  15689. msm_routing_put_port_mixer),
  15690. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15691. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15692. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15693. msm_routing_get_port_mixer,
  15694. msm_routing_put_port_mixer),
  15695. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15697. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15698. msm_routing_get_port_mixer,
  15699. msm_routing_put_port_mixer),
  15700. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15701. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15702. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15703. msm_routing_get_port_mixer,
  15704. msm_routing_put_port_mixer),
  15705. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15706. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15707. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15708. msm_routing_get_port_mixer,
  15709. msm_routing_put_port_mixer),
  15710. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15712. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15713. msm_routing_get_port_mixer,
  15714. msm_routing_put_port_mixer),
  15715. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15717. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15718. msm_routing_get_port_mixer,
  15719. msm_routing_put_port_mixer),
  15720. };
  15721. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15722. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15724. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15725. msm_routing_get_port_mixer,
  15726. msm_routing_put_port_mixer),
  15727. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15729. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15730. msm_routing_get_port_mixer,
  15731. msm_routing_put_port_mixer),
  15732. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15734. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15735. msm_routing_get_port_mixer,
  15736. msm_routing_put_port_mixer),
  15737. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15738. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15739. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15740. msm_routing_get_port_mixer,
  15741. msm_routing_put_port_mixer),
  15742. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15744. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15745. msm_routing_get_port_mixer,
  15746. msm_routing_put_port_mixer),
  15747. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15749. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15750. msm_routing_get_port_mixer,
  15751. msm_routing_put_port_mixer),
  15752. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15753. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15754. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15755. msm_routing_get_port_mixer,
  15756. msm_routing_put_port_mixer),
  15757. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15758. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15759. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15760. msm_routing_get_port_mixer,
  15761. msm_routing_put_port_mixer),
  15762. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15764. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15765. msm_routing_get_port_mixer,
  15766. msm_routing_put_port_mixer),
  15767. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15769. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15770. msm_routing_get_port_mixer,
  15771. msm_routing_put_port_mixer),
  15772. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15774. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15775. msm_routing_get_port_mixer,
  15776. msm_routing_put_port_mixer),
  15777. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15779. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15780. msm_routing_get_port_mixer,
  15781. msm_routing_put_port_mixer),
  15782. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15783. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15784. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15785. msm_routing_get_port_mixer,
  15786. msm_routing_put_port_mixer),
  15787. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15788. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15789. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15790. msm_routing_get_port_mixer,
  15791. msm_routing_put_port_mixer),
  15792. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15794. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15795. msm_routing_get_port_mixer,
  15796. msm_routing_put_port_mixer),
  15797. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15799. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15800. msm_routing_get_port_mixer,
  15801. msm_routing_put_port_mixer),
  15802. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15804. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15805. msm_routing_get_port_mixer,
  15806. msm_routing_put_port_mixer),
  15807. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15809. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15810. msm_routing_get_port_mixer,
  15811. msm_routing_put_port_mixer),
  15812. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15813. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15814. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15815. msm_routing_get_port_mixer,
  15816. msm_routing_put_port_mixer),
  15817. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15818. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15819. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15820. msm_routing_get_port_mixer,
  15821. msm_routing_put_port_mixer),
  15822. };
  15823. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15824. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15826. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15827. msm_routing_get_port_mixer,
  15828. msm_routing_put_port_mixer),
  15829. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15830. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15831. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15832. msm_routing_get_port_mixer,
  15833. msm_routing_put_port_mixer),
  15834. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15836. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15837. msm_routing_get_port_mixer,
  15838. msm_routing_put_port_mixer),
  15839. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15840. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15841. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15842. msm_routing_get_port_mixer,
  15843. msm_routing_put_port_mixer),
  15844. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15846. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15847. msm_routing_get_port_mixer,
  15848. msm_routing_put_port_mixer),
  15849. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15850. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15851. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15852. msm_routing_get_port_mixer,
  15853. msm_routing_put_port_mixer),
  15854. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15856. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15857. msm_routing_get_port_mixer,
  15858. msm_routing_put_port_mixer),
  15859. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15861. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15862. msm_routing_get_port_mixer,
  15863. msm_routing_put_port_mixer),
  15864. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15865. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15866. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15867. msm_routing_get_port_mixer,
  15868. msm_routing_put_port_mixer),
  15869. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15870. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15871. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15872. msm_routing_get_port_mixer,
  15873. msm_routing_put_port_mixer),
  15874. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15876. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15877. msm_routing_get_port_mixer,
  15878. msm_routing_put_port_mixer),
  15879. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15880. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15881. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15882. msm_routing_get_port_mixer,
  15883. msm_routing_put_port_mixer),
  15884. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15886. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15887. msm_routing_get_port_mixer,
  15888. msm_routing_put_port_mixer),
  15889. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15890. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15891. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15892. msm_routing_get_port_mixer,
  15893. msm_routing_put_port_mixer),
  15894. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15896. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15897. msm_routing_get_port_mixer,
  15898. msm_routing_put_port_mixer),
  15899. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15901. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15902. msm_routing_get_port_mixer,
  15903. msm_routing_put_port_mixer),
  15904. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15905. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15906. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15907. msm_routing_get_port_mixer,
  15908. msm_routing_put_port_mixer),
  15909. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15910. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15911. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15912. msm_routing_get_port_mixer,
  15913. msm_routing_put_port_mixer),
  15914. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15916. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15917. msm_routing_get_port_mixer,
  15918. msm_routing_put_port_mixer),
  15919. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15921. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15922. msm_routing_get_port_mixer,
  15923. msm_routing_put_port_mixer),
  15924. };
  15925. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15926. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15928. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15929. msm_routing_get_port_mixer,
  15930. msm_routing_put_port_mixer),
  15931. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15932. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15933. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15934. msm_routing_get_port_mixer,
  15935. msm_routing_put_port_mixer),
  15936. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15938. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15939. msm_routing_get_port_mixer,
  15940. msm_routing_put_port_mixer),
  15941. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15942. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15943. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15944. msm_routing_get_port_mixer,
  15945. msm_routing_put_port_mixer),
  15946. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15947. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15948. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15949. msm_routing_get_port_mixer,
  15950. msm_routing_put_port_mixer),
  15951. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15952. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15953. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15954. msm_routing_get_port_mixer,
  15955. msm_routing_put_port_mixer),
  15956. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15957. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15958. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15959. msm_routing_get_port_mixer,
  15960. msm_routing_put_port_mixer),
  15961. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15963. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15964. msm_routing_get_port_mixer,
  15965. msm_routing_put_port_mixer),
  15966. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15968. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15969. msm_routing_get_port_mixer,
  15970. msm_routing_put_port_mixer),
  15971. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15972. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15973. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15974. msm_routing_get_port_mixer,
  15975. msm_routing_put_port_mixer),
  15976. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15977. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15978. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15979. msm_routing_get_port_mixer,
  15980. msm_routing_put_port_mixer),
  15981. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15982. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15983. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15984. msm_routing_get_port_mixer,
  15985. msm_routing_put_port_mixer),
  15986. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15988. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15989. msm_routing_get_port_mixer,
  15990. msm_routing_put_port_mixer),
  15991. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15993. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15994. msm_routing_get_port_mixer,
  15995. msm_routing_put_port_mixer),
  15996. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15997. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15998. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15999. msm_routing_get_port_mixer,
  16000. msm_routing_put_port_mixer),
  16001. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16002. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16003. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16004. msm_routing_get_port_mixer,
  16005. msm_routing_put_port_mixer),
  16006. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16008. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16009. msm_routing_get_port_mixer,
  16010. msm_routing_put_port_mixer),
  16011. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16012. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16013. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16014. msm_routing_get_port_mixer,
  16015. msm_routing_put_port_mixer),
  16016. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16017. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16018. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16019. msm_routing_get_port_mixer,
  16020. msm_routing_put_port_mixer),
  16021. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16022. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16023. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16024. msm_routing_get_port_mixer,
  16025. msm_routing_put_port_mixer),
  16026. };
  16027. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  16028. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16030. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16031. msm_routing_get_port_mixer,
  16032. msm_routing_put_port_mixer),
  16033. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16034. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16035. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16036. msm_routing_get_port_mixer,
  16037. msm_routing_put_port_mixer),
  16038. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16039. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16040. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16041. msm_routing_get_port_mixer,
  16042. msm_routing_put_port_mixer),
  16043. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16044. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16045. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16046. msm_routing_get_port_mixer,
  16047. msm_routing_put_port_mixer),
  16048. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16050. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16051. msm_routing_get_port_mixer,
  16052. msm_routing_put_port_mixer),
  16053. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16054. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16055. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16056. msm_routing_get_port_mixer,
  16057. msm_routing_put_port_mixer),
  16058. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16060. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16061. msm_routing_get_port_mixer,
  16062. msm_routing_put_port_mixer),
  16063. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16064. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16065. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16066. msm_routing_get_port_mixer,
  16067. msm_routing_put_port_mixer),
  16068. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16070. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16071. msm_routing_get_port_mixer,
  16072. msm_routing_put_port_mixer),
  16073. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16075. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16076. msm_routing_get_port_mixer,
  16077. msm_routing_put_port_mixer),
  16078. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16080. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16081. msm_routing_get_port_mixer,
  16082. msm_routing_put_port_mixer),
  16083. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16084. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16085. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16086. msm_routing_get_port_mixer,
  16087. msm_routing_put_port_mixer),
  16088. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16090. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16091. msm_routing_get_port_mixer,
  16092. msm_routing_put_port_mixer),
  16093. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16094. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16095. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16096. msm_routing_get_port_mixer,
  16097. msm_routing_put_port_mixer),
  16098. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16099. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16100. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16101. msm_routing_get_port_mixer,
  16102. msm_routing_put_port_mixer),
  16103. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16105. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16106. msm_routing_get_port_mixer,
  16107. msm_routing_put_port_mixer),
  16108. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16110. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16111. msm_routing_get_port_mixer,
  16112. msm_routing_put_port_mixer),
  16113. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16114. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16115. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16116. msm_routing_get_port_mixer,
  16117. msm_routing_put_port_mixer),
  16118. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16120. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16121. msm_routing_get_port_mixer,
  16122. msm_routing_put_port_mixer),
  16123. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16124. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  16125. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16126. msm_routing_get_port_mixer,
  16127. msm_routing_put_port_mixer),
  16128. };
  16129. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  16130. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16131. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16132. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16133. msm_routing_put_port_mixer),
  16134. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16135. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16136. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16137. msm_routing_put_port_mixer),
  16138. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16139. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16140. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16141. msm_routing_put_port_mixer),
  16142. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16143. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16144. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16145. msm_routing_put_port_mixer),
  16146. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16148. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16149. msm_routing_put_port_mixer),
  16150. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16152. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16153. msm_routing_put_port_mixer),
  16154. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16156. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16157. msm_routing_put_port_mixer),
  16158. };
  16159. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  16160. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16161. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16162. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16163. msm_routing_put_port_mixer),
  16164. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16165. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16166. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16167. msm_routing_put_port_mixer),
  16168. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16169. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16170. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16171. msm_routing_put_port_mixer),
  16172. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16173. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16174. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16175. msm_routing_put_port_mixer),
  16176. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16177. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16178. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16179. msm_routing_put_port_mixer),
  16180. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16182. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16183. msm_routing_put_port_mixer),
  16184. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16185. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16186. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16187. msm_routing_put_port_mixer),
  16188. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16189. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16190. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16191. msm_routing_put_port_mixer),
  16192. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  16194. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16195. msm_routing_put_port_mixer),
  16196. };
  16197. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  16198. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16200. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16201. msm_routing_put_listen_mixer),
  16202. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16204. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16205. msm_routing_put_listen_mixer),
  16206. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16208. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16209. msm_routing_put_listen_mixer),
  16210. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16212. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16213. msm_routing_put_listen_mixer),
  16214. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16216. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16217. msm_routing_put_listen_mixer),
  16218. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16220. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16221. msm_routing_put_listen_mixer),
  16222. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16224. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16225. msm_routing_put_listen_mixer),
  16226. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16228. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16229. msm_routing_put_listen_mixer),
  16230. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16232. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16233. msm_routing_put_listen_mixer),
  16234. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16236. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16237. msm_routing_put_listen_mixer),
  16238. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16240. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16241. msm_routing_put_listen_mixer),
  16242. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16243. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16244. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16245. msm_routing_put_listen_mixer),
  16246. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16247. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16248. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  16249. msm_routing_put_listen_mixer),
  16250. };
  16251. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  16252. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16254. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16255. msm_routing_put_listen_mixer),
  16256. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  16257. SND_SOC_NOPM,
  16258. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16259. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16260. msm_routing_put_listen_mixer),
  16261. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16262. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16263. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16264. msm_routing_put_listen_mixer),
  16265. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16266. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16267. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16268. msm_routing_put_listen_mixer),
  16269. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16270. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16271. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16272. msm_routing_put_listen_mixer),
  16273. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16274. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16275. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16276. msm_routing_put_listen_mixer),
  16277. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16278. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16279. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16280. msm_routing_put_listen_mixer),
  16281. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16283. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16284. msm_routing_put_listen_mixer),
  16285. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16286. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16287. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16288. msm_routing_put_listen_mixer),
  16289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16291. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16292. msm_routing_put_listen_mixer),
  16293. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16294. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16295. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16296. msm_routing_put_listen_mixer),
  16297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16299. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16300. msm_routing_put_listen_mixer),
  16301. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16302. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16303. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  16304. msm_routing_put_listen_mixer),
  16305. };
  16306. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  16307. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16308. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16309. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16310. msm_routing_put_listen_mixer),
  16311. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16312. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16313. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16314. msm_routing_put_listen_mixer),
  16315. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16316. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16317. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16318. msm_routing_put_listen_mixer),
  16319. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16320. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16321. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16322. msm_routing_put_listen_mixer),
  16323. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16324. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16325. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16326. msm_routing_put_listen_mixer),
  16327. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16328. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16329. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16330. msm_routing_put_listen_mixer),
  16331. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16333. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16334. msm_routing_put_listen_mixer),
  16335. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16336. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16337. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16338. msm_routing_put_listen_mixer),
  16339. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16340. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16341. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16342. msm_routing_put_listen_mixer),
  16343. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16344. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16345. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16346. msm_routing_put_listen_mixer),
  16347. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16348. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16349. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16350. msm_routing_put_listen_mixer),
  16351. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16352. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16353. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16354. msm_routing_put_listen_mixer),
  16355. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16356. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16357. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  16358. msm_routing_put_listen_mixer),
  16359. };
  16360. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  16361. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16363. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16364. msm_routing_put_listen_mixer),
  16365. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16366. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16367. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16368. msm_routing_put_listen_mixer),
  16369. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16370. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16371. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16372. msm_routing_put_listen_mixer),
  16373. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16374. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16375. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16376. msm_routing_put_listen_mixer),
  16377. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16378. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16379. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16380. msm_routing_put_listen_mixer),
  16381. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16383. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16384. msm_routing_put_listen_mixer),
  16385. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16387. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16388. msm_routing_put_listen_mixer),
  16389. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16391. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16392. msm_routing_put_listen_mixer),
  16393. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16394. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16395. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16396. msm_routing_put_listen_mixer),
  16397. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16398. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16399. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16400. msm_routing_put_listen_mixer),
  16401. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16402. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16403. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16404. msm_routing_put_listen_mixer),
  16405. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16406. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16407. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16408. msm_routing_put_listen_mixer),
  16409. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16410. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16411. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16412. msm_routing_put_listen_mixer),
  16413. };
  16414. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  16415. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16417. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16418. msm_routing_put_listen_mixer),
  16419. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16420. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16421. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16422. msm_routing_put_listen_mixer),
  16423. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16425. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16426. msm_routing_put_listen_mixer),
  16427. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16429. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16430. msm_routing_put_listen_mixer),
  16431. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16433. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16434. msm_routing_put_listen_mixer),
  16435. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16437. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16438. msm_routing_put_listen_mixer),
  16439. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16440. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16441. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16442. msm_routing_put_listen_mixer),
  16443. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16444. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16445. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16446. msm_routing_put_listen_mixer),
  16447. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16448. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16449. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16450. msm_routing_put_listen_mixer),
  16451. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16452. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16453. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16454. msm_routing_put_listen_mixer),
  16455. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16456. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16457. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16458. msm_routing_put_listen_mixer),
  16459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16461. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16462. msm_routing_put_listen_mixer),
  16463. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16464. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16465. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16466. msm_routing_put_listen_mixer),
  16467. };
  16468. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  16469. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16470. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16471. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16472. msm_routing_put_listen_mixer),
  16473. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16474. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16475. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16476. msm_routing_put_listen_mixer),
  16477. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16479. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16480. msm_routing_put_listen_mixer),
  16481. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16483. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16484. msm_routing_put_listen_mixer),
  16485. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16487. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16488. msm_routing_put_listen_mixer),
  16489. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16491. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16492. msm_routing_put_listen_mixer),
  16493. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16494. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16495. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16496. msm_routing_put_listen_mixer),
  16497. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16499. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16500. msm_routing_put_listen_mixer),
  16501. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16502. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16503. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16504. msm_routing_put_listen_mixer),
  16505. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16507. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16508. msm_routing_put_listen_mixer),
  16509. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16511. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16512. msm_routing_put_listen_mixer),
  16513. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16515. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16516. msm_routing_put_listen_mixer),
  16517. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16519. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16520. msm_routing_put_listen_mixer),
  16521. };
  16522. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16523. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16524. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16525. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16526. msm_routing_put_listen_mixer),
  16527. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16528. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16529. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16530. msm_routing_put_listen_mixer),
  16531. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16532. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16533. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16534. msm_routing_put_listen_mixer),
  16535. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16536. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16537. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16538. msm_routing_put_listen_mixer),
  16539. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16540. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16541. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16542. msm_routing_put_listen_mixer),
  16543. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16544. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16545. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16546. msm_routing_put_listen_mixer),
  16547. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16548. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16549. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16550. msm_routing_put_listen_mixer),
  16551. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16552. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16553. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16554. msm_routing_put_listen_mixer),
  16555. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16556. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16557. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16558. msm_routing_put_listen_mixer),
  16559. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16560. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16561. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16562. msm_routing_put_listen_mixer),
  16563. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16564. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16565. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16566. msm_routing_put_listen_mixer),
  16567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16569. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16570. msm_routing_put_listen_mixer),
  16571. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16572. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16573. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16574. msm_routing_put_listen_mixer),
  16575. };
  16576. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16577. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16579. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16580. msm_routing_put_listen_mixer),
  16581. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16582. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16583. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16584. msm_routing_put_listen_mixer),
  16585. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16586. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16587. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16588. msm_routing_put_listen_mixer),
  16589. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16591. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16592. msm_routing_put_listen_mixer),
  16593. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16595. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16596. msm_routing_put_listen_mixer),
  16597. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16598. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16599. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16600. msm_routing_put_listen_mixer),
  16601. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16603. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16604. msm_routing_put_listen_mixer),
  16605. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16607. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16608. msm_routing_put_listen_mixer),
  16609. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16610. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16611. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16612. msm_routing_put_listen_mixer),
  16613. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16615. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16616. msm_routing_put_listen_mixer),
  16617. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  16619. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16620. msm_routing_put_listen_mixer),
  16621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16623. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16624. msm_routing_put_listen_mixer),
  16625. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16627. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16628. msm_routing_put_listen_mixer),
  16629. };
  16630. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16631. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16632. 0, 1, 0, msm_routing_get_switch_mixer,
  16633. msm_routing_put_switch_mixer);
  16634. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16635. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16636. 0, 1, 0, msm_routing_get_switch_mixer,
  16637. msm_routing_put_switch_mixer);
  16638. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16639. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16640. 0, 1, 0, msm_routing_get_switch_mixer,
  16641. msm_routing_put_switch_mixer);
  16642. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16643. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16644. 0, 1, 0, msm_routing_get_switch_mixer,
  16645. msm_routing_put_switch_mixer);
  16646. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16647. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16648. 0, 1, 0, msm_routing_get_switch_mixer,
  16649. msm_routing_put_switch_mixer);
  16650. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16651. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16652. 0, 1, 0, msm_routing_get_switch_mixer,
  16653. msm_routing_put_switch_mixer);
  16654. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16655. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16656. 0, 1, 0, msm_routing_get_switch_mixer,
  16657. msm_routing_put_switch_mixer);
  16658. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16659. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16660. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16661. msm_routing_put_fm_pcmrx_switch_mixer);
  16662. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16663. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16664. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16665. msm_routing_put_int0_mi2s_switch_mixer);
  16666. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16667. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16668. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16669. msm_routing_put_int4_mi2s_switch_mixer);
  16670. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16671. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16672. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16673. msm_routing_put_pri_mi2s_switch_mixer);
  16674. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16675. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16676. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16677. msm_routing_put_sec_mi2s_switch_mixer);
  16678. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16679. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16680. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16681. msm_routing_put_tert_mi2s_switch_mixer);
  16682. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16683. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16684. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16685. msm_routing_put_quat_mi2s_switch_mixer);
  16686. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16687. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16688. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16689. msm_routing_put_quin_mi2s_switch_mixer);
  16690. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16691. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16692. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16693. msm_routing_put_hfp_switch_mixer);
  16694. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16695. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16696. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16697. msm_routing_put_hfp_switch_mixer);
  16698. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16699. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16700. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16701. msm_routing_put_hfp_switch_mixer);
  16702. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16703. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16704. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16705. msm_routing_put_hfp_switch_mixer);
  16706. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16707. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16708. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16709. msm_routing_put_usb_switch_mixer);
  16710. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16711. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16712. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16713. msm_routing_a2dp_switch_mixer_put);
  16714. static const struct soc_enum lsm_port_enum =
  16715. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16716. static const char * const lsm_func_text[] = {
  16717. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16718. };
  16719. static const struct soc_enum lsm_func_enum =
  16720. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16721. static const struct snd_kcontrol_new lsm_controls[] = {
  16722. /* kcontrol of lsm_function */
  16723. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16724. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16725. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16726. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16727. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16728. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16729. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16730. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16731. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16732. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16733. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16734. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16735. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16736. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16737. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16738. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16739. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16740. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16741. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16742. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16743. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16744. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16745. /* kcontrol of lsm_port */
  16746. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16747. msm_routing_lsm_port_get,
  16748. msm_routing_lsm_port_put),
  16749. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  16750. msm_routing_lsm_port_get,
  16751. msm_routing_lsm_port_put),
  16752. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  16753. msm_routing_lsm_port_get,
  16754. msm_routing_lsm_port_put),
  16755. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  16756. msm_routing_lsm_port_get,
  16757. msm_routing_lsm_port_put),
  16758. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  16759. msm_routing_lsm_port_get,
  16760. msm_routing_lsm_port_put),
  16761. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  16762. msm_routing_lsm_port_get,
  16763. msm_routing_lsm_port_put),
  16764. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  16765. msm_routing_lsm_port_get,
  16766. msm_routing_lsm_port_put),
  16767. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  16768. msm_routing_lsm_port_get,
  16769. msm_routing_lsm_port_put),
  16770. };
  16771. static const char * const aanc_slim_0_rx_text[] = {
  16772. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  16773. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  16774. };
  16775. static const struct soc_enum aanc_slim_0_rx_enum =
  16776. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  16777. aanc_slim_0_rx_text);
  16778. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  16779. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  16780. msm_routing_slim_0_rx_aanc_mux_get,
  16781. msm_routing_slim_0_rx_aanc_mux_put)
  16782. };
  16783. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  16784. struct snd_ctl_elem_value *ucontrol)
  16785. {
  16786. ucontrol->value.integer.value[0] = aanc_level;
  16787. return 0;
  16788. }
  16789. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  16790. struct snd_ctl_elem_value *ucontrol)
  16791. {
  16792. int ret = 0;
  16793. mutex_lock(&routing_lock);
  16794. aanc_level = ucontrol->value.integer.value[0];
  16795. pr_debug("%s: value: %ld\n",
  16796. __func__, ucontrol->value.integer.value[0]);
  16797. ret = afe_set_aanc_noise_level(aanc_level);
  16798. mutex_unlock(&routing_lock);
  16799. return ret;
  16800. }
  16801. static const struct snd_kcontrol_new aanc_noise_level[] = {
  16802. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  16803. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  16804. };
  16805. static int msm_routing_get_stereo_to_custom_stereo_control(
  16806. struct snd_kcontrol *kcontrol,
  16807. struct snd_ctl_elem_value *ucontrol)
  16808. {
  16809. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  16810. return 0;
  16811. }
  16812. static int msm_routing_put_stereo_to_custom_stereo_control(
  16813. struct snd_kcontrol *kcontrol,
  16814. struct snd_ctl_elem_value *ucontrol)
  16815. {
  16816. int flag = 0, i = 0, rc = 0, idx = 0;
  16817. int be_index = 0, port_id, topo_id;
  16818. unsigned int session_id = 0;
  16819. uint16_t op_FL_ip_FL_weight = 0;
  16820. uint16_t op_FL_ip_FR_weight = 0;
  16821. uint16_t op_FR_ip_FL_weight = 0;
  16822. uint16_t op_FR_ip_FR_weight = 0;
  16823. flag = ucontrol->value.integer.value[0];
  16824. pr_debug("%s E flag %d\n", __func__, flag);
  16825. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  16826. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  16827. __func__, is_custom_stereo_on, flag);
  16828. return 0;
  16829. }
  16830. is_custom_stereo_on = flag ? true : false;
  16831. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  16832. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16833. port_id = msm_bedais[be_index].port_id;
  16834. if (!msm_bedais[be_index].active)
  16835. continue;
  16836. if ((port_id != SLIMBUS_0_RX) &&
  16837. (port_id != RT_PROXY_PORT_001_RX) &&
  16838. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  16839. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  16840. continue;
  16841. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16842. MSM_FRONTEND_DAI_MM_SIZE) {
  16843. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  16844. LEGACY_PCM_MODE)
  16845. goto skip_send_custom_stereo;
  16846. session_id =
  16847. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  16848. if (is_custom_stereo_on) {
  16849. op_FL_ip_FL_weight =
  16850. Q14_GAIN_ZERO_POINT_FIVE;
  16851. op_FL_ip_FR_weight =
  16852. Q14_GAIN_ZERO_POINT_FIVE;
  16853. op_FR_ip_FL_weight =
  16854. Q14_GAIN_ZERO_POINT_FIVE;
  16855. op_FR_ip_FR_weight =
  16856. Q14_GAIN_ZERO_POINT_FIVE;
  16857. } else {
  16858. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  16859. op_FL_ip_FR_weight = 0;
  16860. op_FR_ip_FL_weight = 0;
  16861. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  16862. }
  16863. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16864. unsigned long copp =
  16865. session_copp_map[i]
  16866. [SESSION_TYPE_RX][be_index];
  16867. if (!test_bit(idx, &copp))
  16868. goto skip_send_custom_stereo;
  16869. topo_id = adm_get_topology_for_port_copp_idx(
  16870. msm_bedais[be_index].port_id, idx);
  16871. if (topo_id < 0)
  16872. pr_debug("%s:Err:custom stereo topo %d",
  16873. __func__, topo_id);
  16874. pr_debug("idx %d\n", idx);
  16875. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  16876. rc = msm_ds2_dap_set_custom_stereo_onoff
  16877. (msm_bedais[be_index].port_id,
  16878. idx, is_custom_stereo_on);
  16879. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  16880. rc = dolby_dap_set_custom_stereo_onoff(
  16881. msm_bedais[be_index].port_id,
  16882. idx, is_custom_stereo_on);
  16883. else
  16884. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16885. (msm_bedais[be_index].port_id,
  16886. idx, session_id,
  16887. op_FL_ip_FL_weight,
  16888. op_FL_ip_FR_weight,
  16889. op_FR_ip_FL_weight,
  16890. op_FR_ip_FR_weight);
  16891. if (rc < 0)
  16892. skip_send_custom_stereo:
  16893. pr_err("%s: err setting custom stereo\n",
  16894. __func__);
  16895. }
  16896. }
  16897. }
  16898. return 0;
  16899. }
  16900. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16901. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16902. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16903. msm_routing_put_stereo_to_custom_stereo_control),
  16904. };
  16905. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16906. struct snd_ctl_elem_value *ucontrol)
  16907. {
  16908. return 0;
  16909. }
  16910. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16911. struct snd_ctl_elem_value *ucontrol)
  16912. {
  16913. int i = 0, j;
  16914. int num_app_types = ucontrol->value.integer.value[i++];
  16915. pr_debug("%s\n", __func__);
  16916. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16917. sizeof(struct msm_pcm_routing_app_type_data));
  16918. if (num_app_types > MAX_APP_TYPES) {
  16919. pr_err("%s: number of app types exceed the max supported\n",
  16920. __func__);
  16921. return -EINVAL;
  16922. }
  16923. for (j = 0; j < num_app_types; j++) {
  16924. app_type_cfg[j].app_type =
  16925. ucontrol->value.integer.value[i++];
  16926. app_type_cfg[j].sample_rate =
  16927. ucontrol->value.integer.value[i++];
  16928. app_type_cfg[j].bit_width =
  16929. ucontrol->value.integer.value[i++];
  16930. }
  16931. return 0;
  16932. }
  16933. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16934. struct snd_ctl_elem_value *ucontrol)
  16935. {
  16936. int j, fe_id, be_id, port_type;
  16937. int ret = 0;
  16938. unsigned long copp;
  16939. struct msm_pcm_routing_bdai_data *bedai;
  16940. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16941. SESSION_TYPE_RX;
  16942. int app_type = ucontrol->value.integer.value[1];
  16943. int gain = (ucontrol->value.integer.value[2] +
  16944. ucontrol->value.integer.value[3])/2;
  16945. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16946. MSM_AFE_PORT_TYPE_TX;
  16947. mutex_lock(&routing_lock);
  16948. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16949. if (is_be_dai_extproc(be_id))
  16950. continue;
  16951. bedai = &msm_bedais[be_id];
  16952. if (afe_get_port_type(bedai->port_id) != port_type)
  16953. continue;
  16954. if (!bedai->active)
  16955. continue;
  16956. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16957. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16958. continue;
  16959. if (app_type !=
  16960. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16961. continue;
  16962. copp = session_copp_map[fe_id][dir][be_id];
  16963. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16964. if (!test_bit(j, &copp))
  16965. continue;
  16966. ret |= adm_set_volume(bedai->port_id, j, gain);
  16967. }
  16968. }
  16969. }
  16970. mutex_unlock(&routing_lock);
  16971. return ret ? -EINVAL : 0;
  16972. }
  16973. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16974. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16975. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16976. msm_routing_put_app_type_cfg_control),
  16977. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16978. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16979. };
  16980. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16981. struct snd_ctl_elem_value *ucontrol)
  16982. {
  16983. int copp_idx, fe_id, be_id, port_type;
  16984. int ret = 0;
  16985. unsigned long copp;
  16986. struct msm_pcm_routing_bdai_data *bedai;
  16987. u8 *packed_params = NULL;
  16988. struct param_hdr_v3 param_hdr;
  16989. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16990. sizeof(uint32_t));
  16991. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16992. SESSION_TYPE_RX;
  16993. int app_type = ucontrol->value.integer.value[1];
  16994. int module_id = ucontrol->value.integer.value[2];
  16995. int instance_id = ucontrol->value.integer.value[3];
  16996. int param_id = ucontrol->value.integer.value[4];
  16997. int param_value = ucontrol->value.integer.value[5];
  16998. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16999. MSM_AFE_PORT_TYPE_TX;
  17000. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  17001. __func__, app_type, module_id,
  17002. instance_id, param_id, param_value);
  17003. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  17004. if (!packed_params)
  17005. return -ENOMEM;
  17006. memset(&param_hdr, 0, sizeof(param_hdr));
  17007. param_hdr.module_id = module_id;
  17008. param_hdr.instance_id = instance_id;
  17009. param_hdr.param_id = param_id;
  17010. param_hdr.param_size = sizeof(uint32_t);
  17011. packed_param_size = 0;
  17012. mutex_lock(&routing_lock);
  17013. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  17014. if (is_be_dai_extproc(be_id))
  17015. continue;
  17016. bedai = &msm_bedais[be_id];
  17017. if (afe_get_port_type(bedai->port_id) != port_type)
  17018. continue;
  17019. if (!bedai->active)
  17020. continue;
  17021. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  17022. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  17023. continue;
  17024. if (app_type !=
  17025. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  17026. continue;
  17027. copp = session_copp_map[fe_id][dir][be_id];
  17028. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  17029. copp_idx++) {
  17030. if (!test_bit(copp_idx, &copp))
  17031. continue;
  17032. ret = q6common_pack_pp_params(packed_params,
  17033. &param_hdr,
  17034. (u8 *) &param_value,
  17035. &packed_param_size);
  17036. if (ret) {
  17037. pr_err("%s: Failed to pack params, error %d\n",
  17038. __func__, ret);
  17039. goto done;
  17040. }
  17041. ret = adm_set_pp_params(bedai->port_id,
  17042. copp_idx, NULL,
  17043. packed_params,
  17044. packed_param_size);
  17045. if (ret) {
  17046. pr_err("%s: Setting param failed with err=%d\n",
  17047. __func__, ret);
  17048. ret = -EINVAL;
  17049. goto done;
  17050. }
  17051. }
  17052. }
  17053. }
  17054. done:
  17055. mutex_unlock(&routing_lock);
  17056. kfree(packed_params);
  17057. return ret;
  17058. }
  17059. static const struct snd_kcontrol_new module_cfg_controls[] = {
  17060. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  17061. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  17062. };
  17063. static int msm_routing_get_lsm_app_type_cfg_control(
  17064. struct snd_kcontrol *kcontrol,
  17065. struct snd_ctl_elem_value *ucontrol)
  17066. {
  17067. int shift = ((struct soc_multi_mixer_control *)
  17068. kcontrol->private_value)->shift;
  17069. int i = 0, j = 0;
  17070. ucontrol->value.integer.value[i] = num_app_cfg_types;
  17071. for (j = 0; j < num_app_cfg_types; ++j) {
  17072. ucontrol->value.integer.value[++i] =
  17073. lsm_app_type_cfg[j].app_type;
  17074. ucontrol->value.integer.value[++i] =
  17075. lsm_app_type_cfg[j].sample_rate;
  17076. ucontrol->value.integer.value[++i] =
  17077. lsm_app_type_cfg[j].bit_width;
  17078. if (shift == 1)
  17079. ucontrol->value.integer.value[++i] =
  17080. lsm_app_type_cfg[j].num_out_channels;
  17081. }
  17082. return 0;
  17083. }
  17084. static int msm_routing_put_lsm_app_type_cfg_control(
  17085. struct snd_kcontrol *kcontrol,
  17086. struct snd_ctl_elem_value *ucontrol)
  17087. {
  17088. int shift = ((struct soc_multi_mixer_control *)
  17089. kcontrol->private_value)->shift;
  17090. int i = 0, j;
  17091. num_app_cfg_types = ucontrol->value.integer.value[i++];
  17092. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  17093. sizeof(struct msm_pcm_routing_app_type_data));
  17094. if (num_app_cfg_types > MAX_APP_TYPES) {
  17095. pr_err("%s: number of app types exceed the max supported\n",
  17096. __func__);
  17097. return -EINVAL;
  17098. }
  17099. for (j = 0; j < num_app_cfg_types; j++) {
  17100. lsm_app_type_cfg[j].app_type =
  17101. ucontrol->value.integer.value[i++];
  17102. lsm_app_type_cfg[j].sample_rate =
  17103. ucontrol->value.integer.value[i++];
  17104. lsm_app_type_cfg[j].bit_width =
  17105. ucontrol->value.integer.value[i++];
  17106. /* Shift of 1 indicates this is V2 mixer control */
  17107. if (shift == 1)
  17108. lsm_app_type_cfg[j].num_out_channels =
  17109. ucontrol->value.integer.value[i++];
  17110. }
  17111. return 0;
  17112. }
  17113. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  17114. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  17115. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  17116. msm_routing_put_lsm_app_type_cfg_control),
  17117. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  17118. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  17119. msm_routing_put_lsm_app_type_cfg_control),
  17120. };
  17121. static int msm_routing_get_use_ds1_or_ds2_control(
  17122. struct snd_kcontrol *kcontrol,
  17123. struct snd_ctl_elem_value *ucontrol)
  17124. {
  17125. ucontrol->value.integer.value[0] = is_ds2_on;
  17126. return 0;
  17127. }
  17128. static int msm_routing_put_use_ds1_or_ds2_control(
  17129. struct snd_kcontrol *kcontrol,
  17130. struct snd_ctl_elem_value *ucontrol)
  17131. {
  17132. is_ds2_on = ucontrol->value.integer.value[0];
  17133. return 0;
  17134. }
  17135. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  17136. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  17137. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  17138. msm_routing_put_use_ds1_or_ds2_control),
  17139. };
  17140. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  17141. struct snd_ctl_elem_value *ucontrol) {
  17142. int rc = 0;
  17143. int be_idx = 0;
  17144. char *param_value;
  17145. int *update_param_value;
  17146. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  17147. struct param_hdr_v3 param_hdr;
  17148. param_value = kzalloc(param_size, GFP_KERNEL);
  17149. if (!param_value)
  17150. return -ENOMEM;
  17151. memset(&param_hdr, 0, sizeof(param_hdr));
  17152. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  17153. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  17154. break;
  17155. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  17156. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  17157. param_hdr.instance_id = INSTANCE_ID_0;
  17158. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  17159. param_hdr.param_size = param_size;
  17160. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  17161. NULL, &param_hdr, (u8 *) param_value);
  17162. if (rc) {
  17163. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  17164. kfree(param_value);
  17165. return -EINVAL;
  17166. }
  17167. update_param_value = (int *)param_value;
  17168. ucontrol->value.integer.value[0] = update_param_value[0];
  17169. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  17170. __func__, update_param_value[0]);
  17171. }
  17172. kfree(param_value);
  17173. return 0;
  17174. }
  17175. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  17176. struct snd_ctl_elem_value *ucontrol)
  17177. {
  17178. voc_session_id = ucontrol->value.integer.value[0];
  17179. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  17180. return 0;
  17181. }
  17182. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  17183. struct snd_ctl_elem_value *ucontrol)
  17184. {
  17185. ucontrol->value.integer.value[0] = voc_session_id;
  17186. return 0;
  17187. }
  17188. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  17189. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  17190. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  17191. msm_voc_session_id_put),
  17192. };
  17193. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  17194. struct snd_ctl_elem_info *uinfo)
  17195. {
  17196. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  17197. uinfo->count = sizeof(struct sound_focus_param);
  17198. return 0;
  17199. }
  17200. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  17201. struct snd_ctl_elem_value *ucontrol)
  17202. {
  17203. int ret = 0;
  17204. struct sound_focus_param soundFocusData;
  17205. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  17206. sizeof(struct sound_focus_param));
  17207. ret = voc_set_sound_focus(soundFocusData);
  17208. if (ret) {
  17209. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  17210. __func__, ret);
  17211. ret = -EINVAL;
  17212. }
  17213. return ret;
  17214. }
  17215. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  17216. struct snd_ctl_elem_value *ucontrol)
  17217. {
  17218. int ret = 0;
  17219. struct sound_focus_param soundFocusData;
  17220. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  17221. ret = voc_get_sound_focus(&soundFocusData);
  17222. if (ret) {
  17223. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  17224. __func__, ret);
  17225. ret = -EINVAL;
  17226. goto done;
  17227. }
  17228. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  17229. sizeof(struct sound_focus_param));
  17230. done:
  17231. return ret;
  17232. }
  17233. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  17234. struct snd_ctl_elem_info *uinfo)
  17235. {
  17236. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  17237. uinfo->count = sizeof(struct source_tracking_param);
  17238. return 0;
  17239. }
  17240. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  17241. struct snd_ctl_elem_value *ucontrol)
  17242. {
  17243. int ret = 0;
  17244. struct source_tracking_param sourceTrackingData;
  17245. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  17246. ret = voc_get_source_tracking(&sourceTrackingData);
  17247. if (ret) {
  17248. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  17249. __func__, ret);
  17250. ret = -EINVAL;
  17251. goto done;
  17252. }
  17253. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  17254. sizeof(struct source_tracking_param));
  17255. done:
  17256. return ret;
  17257. }
  17258. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  17259. int *copp_idx)
  17260. {
  17261. int i, idx, be_idx;
  17262. int ret = 0;
  17263. unsigned long copp;
  17264. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  17265. ret = q6audio_validate_port(port_id);
  17266. if (ret < 0) {
  17267. pr_err("%s: port validation failed id 0x%x ret %d\n",
  17268. __func__, port_id, ret);
  17269. ret = -EINVAL;
  17270. goto done;
  17271. }
  17272. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  17273. if (msm_bedais[be_idx].port_id == port_id)
  17274. break;
  17275. }
  17276. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  17277. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  17278. ret = -EINVAL;
  17279. goto done;
  17280. }
  17281. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  17282. MSM_FRONTEND_DAI_MAX) {
  17283. if (!(is_mm_lsm_fe_id(i) &&
  17284. route_check_fe_id_adm_support(i)))
  17285. continue;
  17286. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  17287. copp = session_copp_map[i]
  17288. [session_type][be_idx];
  17289. if (test_bit(idx, &copp))
  17290. break;
  17291. }
  17292. if (idx >= MAX_COPPS_PER_PORT)
  17293. continue;
  17294. else
  17295. break;
  17296. }
  17297. if (i >= MSM_FRONTEND_DAI_MAX) {
  17298. pr_debug("%s: Invalid FE, exiting\n", __func__);
  17299. ret = -EINVAL;
  17300. goto done;
  17301. }
  17302. *copp_idx = idx;
  17303. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  17304. done:
  17305. return ret;
  17306. }
  17307. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  17308. const char *prefix, int *port_id)
  17309. {
  17310. int ret = 0;
  17311. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  17312. /*
  17313. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  17314. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  17315. * and compare the string with the backend name to derive the port id.
  17316. */
  17317. if (!strcmp(kcontrol->id.name + strlen(prefix),
  17318. "SLIMBUS_0")) {
  17319. *port_id = SLIMBUS_0_TX;
  17320. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17321. "TERT_MI2S")) {
  17322. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  17323. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17324. "INT3_MI2S")) {
  17325. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  17326. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17327. "VA_CDC_DMA_TX_0")) {
  17328. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  17329. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17330. "TX_CDC_DMA_TX_3")) {
  17331. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  17332. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  17333. "QUIN_TDM_TX_0")) {
  17334. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  17335. } else {
  17336. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  17337. __func__, kcontrol->id.name);
  17338. ret = -EINVAL;
  17339. goto done;
  17340. }
  17341. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  17342. __func__, kcontrol->id.name, *port_id);
  17343. done:
  17344. return ret;
  17345. }
  17346. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  17347. struct snd_ctl_elem_value *ucontrol)
  17348. {
  17349. int ret = 0;
  17350. struct sound_focus_param soundFocusData;
  17351. int port_id, copp_idx;
  17352. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  17353. "Sound Focus Audio Tx ", &port_id);
  17354. if (ret != 0) {
  17355. pr_err("%s: Error in deriving port id, err=%d\n",
  17356. __func__, ret);
  17357. ret = -EINVAL;
  17358. goto done;
  17359. }
  17360. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17361. &copp_idx);
  17362. if (ret) {
  17363. pr_err("%s: Could not get copp idx for port_id=%d\n",
  17364. __func__, port_id);
  17365. ret = -EINVAL;
  17366. goto done;
  17367. }
  17368. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  17369. sizeof(struct sound_focus_param));
  17370. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  17371. if (ret) {
  17372. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  17373. __func__, ret);
  17374. ret = -EINVAL;
  17375. goto done;
  17376. }
  17377. done:
  17378. return ret;
  17379. }
  17380. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  17381. struct snd_ctl_elem_value *ucontrol)
  17382. {
  17383. int ret = 0;
  17384. struct sound_focus_param soundFocusData;
  17385. int port_id, copp_idx;
  17386. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  17387. "Sound Focus Audio Tx ", &port_id);
  17388. if (ret) {
  17389. pr_err("%s: Error in deriving port id, err=%d\n",
  17390. __func__, ret);
  17391. ret = -EINVAL;
  17392. goto done;
  17393. }
  17394. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17395. &copp_idx);
  17396. if (ret) {
  17397. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  17398. __func__, port_id);
  17399. ret = -EINVAL;
  17400. goto done;
  17401. }
  17402. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  17403. if (ret) {
  17404. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  17405. __func__, ret);
  17406. ret = -EINVAL;
  17407. goto done;
  17408. }
  17409. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  17410. sizeof(struct sound_focus_param));
  17411. done:
  17412. return ret;
  17413. }
  17414. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  17415. struct snd_ctl_elem_value *ucontrol)
  17416. {
  17417. int ret = 0;
  17418. struct source_tracking_param sourceTrackingData;
  17419. int port_id, copp_idx;
  17420. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  17421. "Source Tracking Audio Tx ", &port_id);
  17422. if (ret) {
  17423. pr_err("%s: Error in deriving port id, err=%d\n",
  17424. __func__, ret);
  17425. ret = -EINVAL;
  17426. goto done;
  17427. }
  17428. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17429. &copp_idx);
  17430. if (ret) {
  17431. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  17432. __func__, port_id);
  17433. ret = -EINVAL;
  17434. goto done;
  17435. }
  17436. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  17437. if (ret) {
  17438. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  17439. __func__, ret);
  17440. ret = -EINVAL;
  17441. goto done;
  17442. }
  17443. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  17444. sizeof(struct source_tracking_param));
  17445. done:
  17446. return ret;
  17447. }
  17448. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  17449. struct snd_ctl_elem_info *uinfo)
  17450. {
  17451. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  17452. uinfo->count = sizeof(struct doa_tracking_mon_param);
  17453. return 0;
  17454. }
  17455. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  17456. struct snd_ctl_elem_value *ucontrol)
  17457. {
  17458. int ret = 0;
  17459. struct doa_tracking_mon_param doa_tracking_data;
  17460. int port_id, copp_idx;
  17461. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  17462. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  17463. "Doa Tracking Monitor Listen ", &port_id);
  17464. if (ret) {
  17465. pr_err("%s: Error in deriving port id, err=%d\n",
  17466. __func__, ret);
  17467. ret = -EINVAL;
  17468. goto done;
  17469. }
  17470. /*
  17471. * If copp id exists for given port id, query adm to get doa data.
  17472. * Else query afe for doa tracking params.
  17473. * This is to support in cases where LSM directly connects to
  17474. * AFE for FFNS.
  17475. */
  17476. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  17477. &copp_idx);
  17478. if (!ret)
  17479. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  17480. &doa_tracking_data);
  17481. else
  17482. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  17483. if (ret) {
  17484. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  17485. __func__, ret);
  17486. ret = -EINVAL;
  17487. goto done;
  17488. }
  17489. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  17490. sizeof(struct doa_tracking_mon_param));
  17491. done:
  17492. return ret;
  17493. }
  17494. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  17495. {
  17496. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17497. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17498. .name = "Sound Focus Voice Tx SLIMBUS_0",
  17499. .info = msm_sound_focus_info,
  17500. .get = msm_voice_sound_focus_get,
  17501. .put = msm_voice_sound_focus_put,
  17502. },
  17503. {
  17504. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17506. .name = "Source Tracking Voice Tx SLIMBUS_0",
  17507. .info = msm_source_tracking_info,
  17508. .get = msm_voice_source_tracking_get,
  17509. },
  17510. {
  17511. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17513. .name = "Sound Focus Audio Tx SLIMBUS_0",
  17514. .info = msm_sound_focus_info,
  17515. .get = msm_audio_sound_focus_get,
  17516. .put = msm_audio_sound_focus_put,
  17517. },
  17518. {
  17519. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17521. .name = "Source Tracking Audio Tx SLIMBUS_0",
  17522. .info = msm_source_tracking_info,
  17523. .get = msm_audio_source_tracking_get,
  17524. },
  17525. {
  17526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17528. .name = "Sound Focus Voice Tx TERT_MI2S",
  17529. .info = msm_sound_focus_info,
  17530. .get = msm_voice_sound_focus_get,
  17531. .put = msm_voice_sound_focus_put,
  17532. },
  17533. {
  17534. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17535. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17536. .name = "Source Tracking Voice Tx TERT_MI2S",
  17537. .info = msm_source_tracking_info,
  17538. .get = msm_voice_source_tracking_get,
  17539. },
  17540. {
  17541. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17542. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17543. .name = "Sound Focus Audio Tx TERT_MI2S",
  17544. .info = msm_sound_focus_info,
  17545. .get = msm_audio_sound_focus_get,
  17546. .put = msm_audio_sound_focus_put,
  17547. },
  17548. {
  17549. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17551. .name = "Source Tracking Audio Tx TERT_MI2S",
  17552. .info = msm_source_tracking_info,
  17553. .get = msm_audio_source_tracking_get,
  17554. },
  17555. {
  17556. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17558. .name = "Sound Focus Voice Tx INT3_MI2S",
  17559. .info = msm_sound_focus_info,
  17560. .get = msm_voice_sound_focus_get,
  17561. .put = msm_voice_sound_focus_put,
  17562. },
  17563. {
  17564. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17566. .name = "Source Tracking Voice Tx INT3_MI2S",
  17567. .info = msm_source_tracking_info,
  17568. .get = msm_voice_source_tracking_get,
  17569. },
  17570. {
  17571. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17573. .name = "Sound Focus Audio Tx INT3_MI2S",
  17574. .info = msm_sound_focus_info,
  17575. .get = msm_audio_sound_focus_get,
  17576. .put = msm_audio_sound_focus_put,
  17577. },
  17578. {
  17579. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17580. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17581. .name = "Source Tracking Audio Tx INT3_MI2S",
  17582. .info = msm_source_tracking_info,
  17583. .get = msm_audio_source_tracking_get,
  17584. },
  17585. {
  17586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17587. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17588. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17589. .info = msm_sound_focus_info,
  17590. .get = msm_voice_sound_focus_get,
  17591. .put = msm_voice_sound_focus_put,
  17592. },
  17593. {
  17594. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17596. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17597. .info = msm_source_tracking_info,
  17598. .get = msm_voice_source_tracking_get,
  17599. },
  17600. {
  17601. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17603. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17604. .info = msm_sound_focus_info,
  17605. .get = msm_audio_sound_focus_get,
  17606. .put = msm_audio_sound_focus_put,
  17607. },
  17608. {
  17609. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17610. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17611. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17612. .info = msm_source_tracking_info,
  17613. .get = msm_audio_source_tracking_get,
  17614. },
  17615. {
  17616. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17617. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17618. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17619. .info = msm_sound_focus_info,
  17620. .get = msm_voice_sound_focus_get,
  17621. .put = msm_voice_sound_focus_put,
  17622. },
  17623. {
  17624. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17625. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17626. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17627. .info = msm_source_tracking_info,
  17628. .get = msm_voice_source_tracking_get,
  17629. },
  17630. {
  17631. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17632. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17633. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17634. .info = msm_sound_focus_info,
  17635. .get = msm_audio_sound_focus_get,
  17636. .put = msm_audio_sound_focus_put,
  17637. },
  17638. {
  17639. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17640. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17641. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17642. .info = msm_source_tracking_info,
  17643. .get = msm_audio_source_tracking_get,
  17644. },
  17645. {
  17646. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17647. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17648. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17649. .info = msm_sound_focus_info,
  17650. .get = msm_voice_sound_focus_get,
  17651. .put = msm_voice_sound_focus_put,
  17652. },
  17653. {
  17654. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17655. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17656. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17657. .info = msm_source_tracking_info,
  17658. .get = msm_voice_source_tracking_get,
  17659. },
  17660. {
  17661. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17662. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17663. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17664. .info = msm_sound_focus_info,
  17665. .get = msm_audio_sound_focus_get,
  17666. .put = msm_audio_sound_focus_put,
  17667. },
  17668. {
  17669. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17670. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17671. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17672. .info = msm_source_tracking_info,
  17673. .get = msm_audio_source_tracking_get,
  17674. },
  17675. {
  17676. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17677. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17678. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  17679. .info = msm_doa_tracking_mon_info,
  17680. .get = msm_doa_tracking_mon_get,
  17681. },
  17682. };
  17683. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17684. struct snd_ctl_elem_value *ucontrol)
  17685. {
  17686. int ret = 0;
  17687. int item;
  17688. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17689. pr_debug("%s item is %d\n", __func__,
  17690. ucontrol->value.enumerated.item[0]);
  17691. mutex_lock(&routing_lock);
  17692. item = ucontrol->value.enumerated.item[0];
  17693. if (item < e->items) {
  17694. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17695. __func__, e->shift_l, e->values[item]);
  17696. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17697. e->values[item] < MSM_BACKEND_DAI_MAX)
  17698. /* Enable feedback TX path */
  17699. ret = afe_spk_prot_feed_back_cfg(
  17700. msm_bedais[e->values[item]].port_id,
  17701. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17702. else {
  17703. pr_debug("%s values are out of range item %d\n",
  17704. __func__, e->values[item]);
  17705. /* Disable feedback TX path */
  17706. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17707. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17708. else
  17709. ret = -EINVAL;
  17710. }
  17711. } else {
  17712. pr_err("%s item value is out of range item\n", __func__);
  17713. ret = -EINVAL;
  17714. }
  17715. mutex_unlock(&routing_lock);
  17716. return ret;
  17717. }
  17718. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17719. struct snd_ctl_elem_value *ucontrol)
  17720. {
  17721. int ret = 0;
  17722. int item;
  17723. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17724. pr_debug("%s item is %d\n", __func__,
  17725. ucontrol->value.enumerated.item[0]);
  17726. mutex_lock(&routing_lock);
  17727. item = ucontrol->value.enumerated.item[0];
  17728. if (item < e->items) {
  17729. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17730. __func__, e->shift_l, e->values[item]);
  17731. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17732. e->values[item] < MSM_BACKEND_DAI_MAX)
  17733. /* Enable feedback TX path */
  17734. ret = afe_spk_prot_feed_back_cfg(
  17735. msm_bedais[e->values[item]].port_id,
  17736. msm_bedais[e->shift_l].port_id,
  17737. 1, 1, 1);
  17738. else {
  17739. pr_debug("%s values are out of range item %d\n",
  17740. __func__, e->values[item]);
  17741. /* Disable feedback TX path */
  17742. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17743. ret = afe_spk_prot_feed_back_cfg(0,
  17744. 0, 0, 0, 0);
  17745. else
  17746. ret = -EINVAL;
  17747. }
  17748. } else {
  17749. pr_err("%s item value is out of range item\n", __func__);
  17750. ret = -EINVAL;
  17751. }
  17752. mutex_unlock(&routing_lock);
  17753. return ret;
  17754. }
  17755. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  17756. struct snd_ctl_elem_value *ucontrol)
  17757. {
  17758. pr_debug("%s\n", __func__);
  17759. return 0;
  17760. }
  17761. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  17762. struct snd_ctl_elem_value *ucontrol)
  17763. {
  17764. pr_debug("%s\n", __func__);
  17765. ucontrol->value.enumerated.item[0] = 0;
  17766. return 0;
  17767. }
  17768. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  17769. "ZERO", "SLIM4_TX"
  17770. };
  17771. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  17772. "ZERO", "SLIM4_TX"
  17773. };
  17774. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  17775. "ZERO", "WSA_CDC_DMA_TX_0"
  17776. };
  17777. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  17778. "ZERO", "WSA_CDC_DMA_TX_0"
  17779. };
  17780. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  17781. "ZERO", "SENARY_TX"
  17782. };
  17783. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  17784. "ZERO", "INT5_MI2S_TX"
  17785. };
  17786. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  17787. "ZERO", "INT5_MI2S_TX"
  17788. };
  17789. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  17790. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17791. };
  17792. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  17793. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17794. };
  17795. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  17796. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17797. };
  17798. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  17799. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17800. };
  17801. static const int mi2s_rx_vi_fb_tx_value[] = {
  17802. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  17803. };
  17804. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  17805. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17806. };
  17807. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  17808. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17809. };
  17810. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  17811. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17812. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  17813. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  17814. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  17815. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17816. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  17817. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  17818. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  17819. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17820. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  17821. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  17822. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  17823. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17824. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  17825. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  17826. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  17827. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  17828. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  17829. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  17830. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  17831. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17832. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  17833. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  17834. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  17835. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  17836. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17837. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  17838. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  17839. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  17840. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  17841. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  17842. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17843. spkr_prot_put_vi_lch_port);
  17844. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  17845. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  17846. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17847. spkr_prot_put_vi_rch_port);
  17848. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  17849. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  17850. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17851. spkr_prot_put_vi_lch_port);
  17852. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  17853. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  17854. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17855. spkr_prot_put_vi_rch_port);
  17856. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  17857. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  17858. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  17859. spkr_prot_put_vi_lch_port);
  17860. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  17861. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  17862. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  17863. spkr_prot_put_vi_lch_port);
  17864. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  17865. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  17866. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  17867. spkr_prot_put_vi_rch_port);
  17868. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  17869. /* Frontend AIF */
  17870. /* Widget name equals to Front-End DAI name<Need confirmation>,
  17871. * Stream name must contains substring of front-end dai name
  17872. */
  17873. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  17874. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  17875. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  17876. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  17877. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  17878. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  17879. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  17880. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  17881. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  17882. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  17883. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  17884. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  17885. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  17886. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  17887. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  17888. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  17889. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  17890. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  17891. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  17892. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  17893. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  17894. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  17895. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  17896. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  17897. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  17898. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  17899. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  17900. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  17901. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  17902. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  17903. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  17904. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  17905. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  17906. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  17907. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  17908. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  17909. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  17910. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  17911. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  17912. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  17913. "VoiceMMode1 Playback", 0, 0, 0, 0),
  17914. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  17915. "VoiceMMode1 Capture", 0, 0, 0, 0),
  17916. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  17917. "VoiceMMode2 Playback", 0, 0, 0, 0),
  17918. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  17919. "VoiceMMode2 Capture", 0, 0, 0, 0),
  17920. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  17921. 0, 0, 0, 0),
  17922. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  17923. 0, 0, 0, 0),
  17924. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  17925. 0, 0, 0, 0),
  17926. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  17927. 0, 0, 0, 0),
  17928. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  17929. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  17930. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  17931. 0, 0, 0, 0),
  17932. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  17933. 0, 0, 0, 0),
  17934. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  17935. 0, 0, 0, 0),
  17936. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  17937. 0, 0, 0, 0),
  17938. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  17939. 0, 0, 0, 0),
  17940. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  17941. 0, 0, 0, 0),
  17942. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  17943. 0, 0, 0, 0),
  17944. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  17945. 0, 0, 0, 0),
  17946. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  17947. 0, 0, 0, 0),
  17948. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  17949. 0, 0, 0, 0),
  17950. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  17951. 0, 0, 0, 0),
  17952. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  17953. 0, 0, 0, 0),
  17954. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  17955. 0, 0, 0, 0),
  17956. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  17957. 0, 0, 0, 0),
  17958. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  17959. 0, 0, 0, 0),
  17960. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  17961. 0, 0, 0, 0),
  17962. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  17963. 0, 0, 0, 0),
  17964. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  17965. 0, 0, 0, 0),
  17966. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  17967. 0, 0, 0, 0),
  17968. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  17969. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  17970. 0, 0, 0, 0),
  17971. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  17972. "INT0 MI2S_RX Hostless Playback",
  17973. 0, 0, 0, 0),
  17974. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  17975. "INT4 MI2S_RX Hostless Playback",
  17976. 0, 0, 0, 0),
  17977. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  17978. "Primary MI2S_RX Hostless Playback",
  17979. 0, 0, 0, 0),
  17980. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  17981. "Secondary MI2S_RX Hostless Playback",
  17982. 0, 0, 0, 0),
  17983. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  17984. "Tertiary MI2S_RX Hostless Playback",
  17985. 0, 0, 0, 0),
  17986. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  17987. "Quaternary MI2S_RX Hostless Playback",
  17988. 0, 0, 0, 0),
  17989. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17990. "Quinary MI2S_RX Hostless Playback",
  17991. 0, 0, 0, 0),
  17992. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17993. 0, 0, 0, 0),
  17994. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17995. 0, 0, 0, 0),
  17996. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17997. 0, 0, 0, 0),
  17998. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17999. 0, 0, 0, 0),
  18000. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  18001. 0, 0, 0, 0),
  18002. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  18003. "INT3 MI2S_TX Hostless Capture",
  18004. 0, 0, 0, 0),
  18005. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  18006. "Tertiary MI2S_TX Hostless Capture",
  18007. 0, 0, 0, 0),
  18008. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  18009. "Secondary MI2S_TX Hostless Capture",
  18010. 0, 0, 0, 0),
  18011. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  18012. "Primary MI2S_TX Hostless Capture",
  18013. 0, 0, 0, 0),
  18014. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  18015. 0, 0, 0, 0),
  18016. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  18017. 0, 0, 0, 0),
  18018. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  18019. "Quaternary MI2S_TX Hostless Capture",
  18020. 0, 0, 0, 0),
  18021. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  18022. "Quinary MI2S_TX Hostless Capture",
  18023. 0, 0, 0, 0),
  18024. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  18025. "Primary TDM0 Hostless Playback",
  18026. 0, 0, 0, 0),
  18027. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  18028. "Primary TDM0 Hostless Capture",
  18029. 0, 0, 0, 0),
  18030. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  18031. "Primary TDM1 Hostless Playback",
  18032. 0, 0, 0, 0),
  18033. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  18034. "Primary TDM1 Hostless Capture",
  18035. 0, 0, 0, 0),
  18036. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  18037. "Primary TDM2 Hostless Playback",
  18038. 0, 0, 0, 0),
  18039. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  18040. "Primary TDM2 Hostless Capture",
  18041. 0, 0, 0, 0),
  18042. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  18043. "Primary TDM3 Hostless Playback",
  18044. 0, 0, 0, 0),
  18045. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  18046. "Primary TDM3 Hostless Capture",
  18047. 0, 0, 0, 0),
  18048. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  18049. "Primary TDM4 Hostless Playback",
  18050. 0, 0, 0, 0),
  18051. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  18052. "Primary TDM4 Hostless Capture",
  18053. 0, 0, 0, 0),
  18054. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  18055. "Primary TDM5 Hostless Playback",
  18056. 0, 0, 0, 0),
  18057. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  18058. "Primary TDM5 Hostless Capture",
  18059. 0, 0, 0, 0),
  18060. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  18061. "Primary TDM6 Hostless Playback",
  18062. 0, 0, 0, 0),
  18063. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  18064. "Primary TDM6 Hostless Capture",
  18065. 0, 0, 0, 0),
  18066. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  18067. "Primary TDM7 Hostless Playback",
  18068. 0, 0, 0, 0),
  18069. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  18070. "Primary TDM7 Hostless Capture",
  18071. 0, 0, 0, 0),
  18072. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  18073. "Secondary TDM0 Hostless Playback",
  18074. 0, 0, 0, 0),
  18075. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  18076. "Secondary TDM0 Hostless Capture",
  18077. 0, 0, 0, 0),
  18078. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  18079. "Secondary TDM1 Hostless Playback",
  18080. 0, 0, 0, 0),
  18081. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  18082. "Secondary TDM1 Hostless Capture",
  18083. 0, 0, 0, 0),
  18084. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  18085. "Secondary TDM2 Hostless Playback",
  18086. 0, 0, 0, 0),
  18087. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  18088. "Secondary TDM2 Hostless Capture",
  18089. 0, 0, 0, 0),
  18090. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  18091. "Secondary TDM3 Hostless Playback",
  18092. 0, 0, 0, 0),
  18093. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  18094. "Secondary TDM3 Hostless Capture",
  18095. 0, 0, 0, 0),
  18096. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  18097. "Secondary TDM4 Hostless Playback",
  18098. 0, 0, 0, 0),
  18099. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  18100. "Secondary TDM4 Hostless Capture",
  18101. 0, 0, 0, 0),
  18102. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  18103. "Secondary TDM5 Hostless Playback",
  18104. 0, 0, 0, 0),
  18105. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  18106. "Secondary TDM5 Hostless Capture",
  18107. 0, 0, 0, 0),
  18108. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  18109. "Secondary TDM6 Hostless Playback",
  18110. 0, 0, 0, 0),
  18111. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  18112. "Secondary TDM6 Hostless Capture",
  18113. 0, 0, 0, 0),
  18114. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  18115. "Secondary TDM7 Hostless Playback",
  18116. 0, 0, 0, 0),
  18117. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  18118. "Secondary TDM7 Hostless Capture",
  18119. 0, 0, 0, 0),
  18120. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  18121. "Tertiary TDM0 Hostless Playback",
  18122. 0, 0, 0, 0),
  18123. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  18124. "Tertiary TDM0 Hostless Capture",
  18125. 0, 0, 0, 0),
  18126. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  18127. "Tertiary TDM1 Hostless Playback",
  18128. 0, 0, 0, 0),
  18129. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  18130. "Tertiary TDM1 Hostless Capture",
  18131. 0, 0, 0, 0),
  18132. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  18133. "Tertiary TDM2 Hostless Playback",
  18134. 0, 0, 0, 0),
  18135. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  18136. "Tertiary TDM2 Hostless Capture",
  18137. 0, 0, 0, 0),
  18138. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  18139. "Tertiary TDM3 Hostless Playback",
  18140. 0, 0, 0, 0),
  18141. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  18142. "Tertiary TDM3 Hostless Capture",
  18143. 0, 0, 0, 0),
  18144. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  18145. "Tertiary TDM4 Hostless Playback",
  18146. 0, 0, 0, 0),
  18147. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  18148. "Tertiary TDM4 Hostless Capture",
  18149. 0, 0, 0, 0),
  18150. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  18151. "Tertiary TDM5 Hostless Playback",
  18152. 0, 0, 0, 0),
  18153. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  18154. "Tertiary TDM5 Hostless Capture",
  18155. 0, 0, 0, 0),
  18156. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  18157. "Tertiary TDM6 Hostless Playback",
  18158. 0, 0, 0, 0),
  18159. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  18160. "Tertiary TDM6 Hostless Capture",
  18161. 0, 0, 0, 0),
  18162. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  18163. "Tertiary TDM7 Hostless Playback",
  18164. 0, 0, 0, 0),
  18165. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  18166. "Tertiary TDM7 Hostless Capture",
  18167. 0, 0, 0, 0),
  18168. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  18169. "Quaternary TDM0 Hostless Playback",
  18170. 0, 0, 0, 0),
  18171. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  18172. "Quaternary TDM0 Hostless Capture",
  18173. 0, 0, 0, 0),
  18174. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  18175. "Quaternary TDM1 Hostless Playback",
  18176. 0, 0, 0, 0),
  18177. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  18178. "Quaternary TDM1 Hostless Capture",
  18179. 0, 0, 0, 0),
  18180. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  18181. "Quaternary TDM2 Hostless Playback",
  18182. 0, 0, 0, 0),
  18183. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  18184. "Quaternary TDM2 Hostless Capture",
  18185. 0, 0, 0, 0),
  18186. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  18187. "Quaternary TDM3 Hostless Playback",
  18188. 0, 0, 0, 0),
  18189. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  18190. "Quaternary TDM3 Hostless Capture",
  18191. 0, 0, 0, 0),
  18192. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  18193. "Quaternary TDM4 Hostless Playback",
  18194. 0, 0, 0, 0),
  18195. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  18196. "Quaternary TDM4 Hostless Capture",
  18197. 0, 0, 0, 0),
  18198. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  18199. "Quaternary TDM5 Hostless Playback",
  18200. 0, 0, 0, 0),
  18201. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  18202. "Quaternary TDM5 Hostless Capture",
  18203. 0, 0, 0, 0),
  18204. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  18205. "Quaternary TDM6 Hostless Playback",
  18206. 0, 0, 0, 0),
  18207. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  18208. "Quaternary TDM6 Hostless Capture",
  18209. 0, 0, 0, 0),
  18210. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  18211. "Quaternary TDM7 Hostless Playback",
  18212. 0, 0, 0, 0),
  18213. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  18214. "Quaternary TDM7 Hostless Capture",
  18215. 0, 0, 0, 0),
  18216. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  18217. "Quinary TDM0 Hostless Playback",
  18218. 0, 0, 0, 0),
  18219. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  18220. "Quinary TDM0 Hostless Capture",
  18221. 0, 0, 0, 0),
  18222. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  18223. "Quinary TDM1 Hostless Playback",
  18224. 0, 0, 0, 0),
  18225. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  18226. "Quinary TDM1 Hostless Capture",
  18227. 0, 0, 0, 0),
  18228. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  18229. "Quinary TDM2 Hostless Playback",
  18230. 0, 0, 0, 0),
  18231. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  18232. "Quinary TDM2 Hostless Capture",
  18233. 0, 0, 0, 0),
  18234. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  18235. "Quinary TDM3 Hostless Playback",
  18236. 0, 0, 0, 0),
  18237. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  18238. "Quinary TDM3 Hostless Capture",
  18239. 0, 0, 0, 0),
  18240. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  18241. "Quinary TDM4 Hostless Playback",
  18242. 0, 0, 0, 0),
  18243. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  18244. "Quinary TDM4 Hostless Capture",
  18245. 0, 0, 0, 0),
  18246. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  18247. "Quinary TDM5 Hostless Playback",
  18248. 0, 0, 0, 0),
  18249. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  18250. "Quinary TDM5 Hostless Capture",
  18251. 0, 0, 0, 0),
  18252. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  18253. "Quinary TDM6 Hostless Playback",
  18254. 0, 0, 0, 0),
  18255. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  18256. "Quinary TDM6 Hostless Capture",
  18257. 0, 0, 0, 0),
  18258. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  18259. "Quinary TDM7 Hostless Playback",
  18260. 0, 0, 0, 0),
  18261. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  18262. "Quinary TDM7 Hostless Capture",
  18263. 0, 0, 0, 0),
  18264. /* LSM */
  18265. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  18266. 0, 0, 0, 0),
  18267. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  18268. 0, 0, 0, 0),
  18269. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  18270. 0, 0, 0, 0),
  18271. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  18272. 0, 0, 0, 0),
  18273. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  18274. 0, 0, 0, 0),
  18275. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  18276. 0, 0, 0, 0),
  18277. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  18278. 0, 0, 0, 0),
  18279. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  18280. 0, 0, 0, 0),
  18281. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  18282. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  18283. /* Backend AIF */
  18284. /* Stream name equals to backend dai link stream name */
  18285. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  18286. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  18287. 0, 0, 0, 0),
  18288. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  18289. 0, 0, 0, 0),
  18290. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  18291. 0, 0, 0, 0),
  18292. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  18293. 0, 0, 0, 0),
  18294. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  18295. 0, 0, 0, 0),
  18296. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  18297. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  18298. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  18299. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  18300. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  18301. 0, 0, 0, 0),
  18302. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  18303. 0, 0, 0, 0),
  18304. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  18305. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  18306. 0, 0, 0, 0),
  18307. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  18308. 0, 0, 0, 0),
  18309. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  18310. 0, 0, 0, 0),
  18311. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  18312. "Secondary MI2S Playback SD1",
  18313. 0, 0, 0, 0),
  18314. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  18315. 0, 0, 0, 0),
  18316. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  18317. 0, 0, 0, 0),
  18318. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  18319. 0, 0, 0, 0),
  18320. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  18321. 0, 0, 0, 0),
  18322. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  18323. 0, 0, 0, 0),
  18324. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  18325. 0, 0, 0, 0),
  18326. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  18327. 0, 0, 0, 0),
  18328. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  18329. 0, 0, 0, 0),
  18330. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  18331. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  18332. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  18333. 0, 0, 0, 0),
  18334. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  18335. 0, 0, 0, 0),
  18336. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  18337. 0, 0, 0, 0),
  18338. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  18339. 0, 0, 0, 0),
  18340. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  18341. 0, 0, 0, 0),
  18342. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  18343. 0, 0, 0, 0),
  18344. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  18345. 0, 0, 0, 0),
  18346. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  18347. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  18348. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  18349. 0, 0, 0, 0),
  18350. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  18351. 0, 0, 0, 0),
  18352. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  18353. 0, 0, 0, 0),
  18354. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  18355. 0, 0, 0, 0),
  18356. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  18357. 0, 0, 0, 0),
  18358. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  18359. 0, 0, 0, 0),
  18360. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  18361. 0, 0, 0, 0),
  18362. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  18363. 0, 0, 0, 0),
  18364. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  18365. 0, 0, 0, 0),
  18366. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  18367. 0, 0, 0, 0),
  18368. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  18369. 0, 0, 0, 0),
  18370. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  18371. 0, 0, 0, 0),
  18372. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  18373. 0, 0, 0, 0),
  18374. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  18375. 0, 0, 0, 0),
  18376. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  18377. 0, 0, 0, 0),
  18378. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  18379. 0, 0, 0, 0),
  18380. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  18381. 0, 0, 0, 0),
  18382. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  18383. 0, 0, 0, 0),
  18384. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  18385. 0, 0, 0, 0),
  18386. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  18387. 0, 0, 0, 0),
  18388. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  18389. 0, 0, 0, 0),
  18390. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  18391. 0, 0, 0, 0),
  18392. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  18393. 0, 0, 0, 0),
  18394. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  18395. 0, 0, 0, 0),
  18396. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  18397. 0, 0, 0, 0),
  18398. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  18399. 0, 0, 0, 0),
  18400. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  18401. 0, 0, 0, 0),
  18402. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  18403. 0, 0, 0, 0),
  18404. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  18405. 0, 0, 0, 0),
  18406. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  18407. 0, 0, 0, 0),
  18408. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  18409. 0, 0, 0, 0),
  18410. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  18411. 0, 0, 0, 0),
  18412. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  18413. 0, 0, 0, 0),
  18414. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  18415. 0, 0, 0, 0),
  18416. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  18417. 0, 0, 0, 0),
  18418. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  18419. 0, 0, 0, 0),
  18420. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  18421. 0, 0, 0, 0),
  18422. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  18423. 0, 0, 0, 0),
  18424. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  18425. 0, 0, 0, 0),
  18426. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  18427. 0, 0, 0, 0),
  18428. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  18429. 0, 0, 0, 0),
  18430. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  18431. 0, 0, 0, 0),
  18432. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  18433. 0, 0, 0, 0),
  18434. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  18435. 0, 0, 0, 0),
  18436. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  18437. 0, 0, 0, 0),
  18438. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  18439. 0, 0, 0, 0),
  18440. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  18441. 0, 0, 0, 0),
  18442. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  18443. 0, 0, 0, 0),
  18444. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  18445. 0, 0, 0, 0),
  18446. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  18447. 0, 0, 0, 0),
  18448. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  18449. 0, 0, 0, 0),
  18450. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  18451. 0, 0, 0, 0),
  18452. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  18453. 0, 0, 0, 0),
  18454. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  18455. 0, 0, 0, 0),
  18456. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  18457. 0, 0, 0, 0),
  18458. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  18459. 0, 0, 0, 0),
  18460. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  18461. 0, 0, 0, 0),
  18462. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  18463. 0, 0, 0, 0),
  18464. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  18465. 0, 0, 0, 0),
  18466. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  18467. 0, 0, 0, 0),
  18468. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  18469. 0, 0, 0, 0),
  18470. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  18471. 0, 0, 0, 0),
  18472. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  18473. 0, 0, 0, 0),
  18474. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  18475. 0, 0, 0, 0),
  18476. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  18477. 0, 0, 0, 0),
  18478. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  18479. 0, 0, 0, 0),
  18480. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  18481. 0, 0, 0, 0),
  18482. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  18483. 0, 0, 0, 0),
  18484. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  18485. 0, 0, 0, 0),
  18486. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  18487. 0, 0, 0, 0),
  18488. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  18489. 0, 0, 0, 0),
  18490. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  18491. 0, 0, 0, 0),
  18492. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  18493. 0, 0, 0, 0),
  18494. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  18495. 0, 0, 0, 0),
  18496. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  18497. 0, 0, 0, 0),
  18498. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  18499. 0, 0, 0, 0),
  18500. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  18501. 0, 0, 0, 0),
  18502. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  18503. 0, 0, 0, 0),
  18504. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  18505. 0, 0, 0, 0),
  18506. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  18507. 0, 0, 0, 0),
  18508. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  18509. 0, 0, 0, 0),
  18510. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  18511. 0, 0, 0, 0),
  18512. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  18513. 0, 0, 0, 0),
  18514. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  18515. 0, 0, 0, 0),
  18516. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  18517. 0, 0, 0, 0),
  18518. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  18519. 0, 0, 0, 0),
  18520. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  18521. 0, 0, 0, 0),
  18522. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  18523. 0, 0, 0, 0),
  18524. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  18525. 0, 0, 0, 0),
  18526. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  18527. 0, 0, 0, 0),
  18528. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  18529. 0, 0, 0, 0),
  18530. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  18531. 0, 0, 0, 0),
  18532. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  18533. 0, 0, 0, 0),
  18534. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  18535. 0, 0, 0, 0),
  18536. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  18537. 0, 0, 0, 0),
  18538. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  18539. 0, 0, 0, 0),
  18540. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  18541. 0, 0, 0, 0),
  18542. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  18543. 0, 0, 0, 0),
  18544. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  18545. 0, 0, 0, 0),
  18546. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  18547. 0, 0, 0, 0),
  18548. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  18549. 0, 0, 0, 0),
  18550. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  18551. 0, 0, 0, 0),
  18552. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  18553. 0, 0, 0, 0),
  18554. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  18555. 0, 0, 0, 0),
  18556. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  18557. 0, 0, 0, 0),
  18558. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  18559. 0, 0, 0, 0),
  18560. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  18561. 0, 0, 0, 0),
  18562. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  18563. 0, 0, 0, 0),
  18564. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  18565. 0, 0, 0, 0),
  18566. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  18567. 0, 0, 0, 0),
  18568. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  18569. 0, 0, 0, 0),
  18570. /* incall */
  18571. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  18572. 0, 0, 0, 0),
  18573. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  18574. 0, 0, 0, 0),
  18575. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  18576. 0, 0, 0, 0),
  18577. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  18578. 0, 0, 0, 0),
  18579. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  18580. 0, 0, 0, 0),
  18581. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  18582. 0, 0, 0, 0),
  18583. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  18584. 0, 0, 0, 0),
  18585. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  18586. 0, 0, 0, 0),
  18587. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  18588. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  18589. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  18590. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  18591. 0, 0, 0, 0),
  18592. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  18593. 0, 0, 0, 0),
  18594. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  18595. 0, 0, 0, 0),
  18596. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18597. 0, 0, 0, 0),
  18598. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18599. 0, 0, 0, 0),
  18600. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18601. 0, 0, 0, 0),
  18602. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18603. 0, 0, 0, 0),
  18604. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18605. 0, 0, 0, 0),
  18606. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18607. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18608. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18609. 0, 0, 0, 0),
  18610. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18611. 0, 0, 0, 0),
  18612. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18613. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18614. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18615. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18616. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18617. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18618. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18619. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18620. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18621. /* In- call recording */
  18622. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18623. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18624. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  18625. 0, 0, 0, 0),
  18626. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18627. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18628. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18629. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18630. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18631. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18632. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18633. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18634. /* Switch Definitions */
  18635. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18636. &slim_fm_switch_mixer_controls),
  18637. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18638. &slim1_fm_switch_mixer_controls),
  18639. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18640. &slim3_fm_switch_mixer_controls),
  18641. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18642. &slim4_fm_switch_mixer_controls),
  18643. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18644. &slim6_fm_switch_mixer_controls),
  18645. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18646. &pcm_rx_switch_mixer_controls),
  18647. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18648. &int0_mi2s_rx_switch_mixer_controls),
  18649. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18650. &int4_mi2s_rx_switch_mixer_controls),
  18651. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18652. &pri_mi2s_rx_switch_mixer_controls),
  18653. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18654. &sec_mi2s_rx_switch_mixer_controls),
  18655. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18656. &tert_mi2s_rx_switch_mixer_controls),
  18657. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18658. &quat_mi2s_rx_switch_mixer_controls),
  18659. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18660. &quin_mi2s_rx_switch_mixer_controls),
  18661. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18662. &hfp_pri_aux_switch_mixer_controls),
  18663. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18664. &hfp_aux_switch_mixer_controls),
  18665. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18666. &hfp_int_switch_mixer_controls),
  18667. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18668. &hfp_slim7_switch_mixer_controls),
  18669. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18670. &usb_switch_mixer_controls),
  18671. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18672. &a2dp_slim7_switch_mixer_controls),
  18673. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18674. &cdc_dma_wsa_switch_mixer_controls),
  18675. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18676. &cdc_dma_rx_switch_mixer_controls),
  18677. /* Mixer definitions */
  18678. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18679. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18680. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18681. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18682. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18683. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18684. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18685. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18686. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18687. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18688. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18689. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18690. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18691. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18692. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18693. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18694. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18695. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18696. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18697. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18698. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18699. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18700. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18701. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18702. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18703. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18704. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18705. quaternary_mi2s_rx_mixer_controls,
  18706. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18707. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18708. tertiary_mi2s_rx_mixer_controls,
  18709. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18710. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18711. secondary_mi2s_rx_mixer_controls,
  18712. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18713. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18714. secondary_mi2s_rx2_mixer_controls,
  18715. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18716. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18717. primary_mi2s_rx_mixer_controls,
  18718. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18719. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18720. int0_mi2s_rx_mixer_controls,
  18721. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18722. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18723. int4_mi2s_rx_mixer_controls,
  18724. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18725. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18726. quinary_mi2s_rx_mixer_controls,
  18727. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18728. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18729. pri_tdm_rx_0_mixer_controls,
  18730. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  18731. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18732. pri_tdm_rx_1_mixer_controls,
  18733. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  18734. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18735. pri_tdm_rx_2_mixer_controls,
  18736. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  18737. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18738. pri_tdm_rx_3_mixer_controls,
  18739. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  18740. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18741. pri_tdm_tx_0_mixer_controls,
  18742. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  18743. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18744. sec_tdm_rx_0_mixer_controls,
  18745. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  18746. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18747. sec_tdm_rx_1_mixer_controls,
  18748. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  18749. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18750. sec_tdm_rx_2_mixer_controls,
  18751. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  18752. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18753. sec_tdm_rx_3_mixer_controls,
  18754. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  18755. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18756. sec_tdm_tx_0_mixer_controls,
  18757. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  18758. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18759. tert_tdm_rx_0_mixer_controls,
  18760. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  18761. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18762. tert_tdm_tx_0_mixer_controls,
  18763. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  18764. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18765. tert_tdm_rx_1_mixer_controls,
  18766. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  18767. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18768. tert_tdm_rx_2_mixer_controls,
  18769. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  18770. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18771. tert_tdm_rx_3_mixer_controls,
  18772. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  18773. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18774. tert_tdm_rx_4_mixer_controls,
  18775. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  18776. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18777. quat_tdm_rx_0_mixer_controls,
  18778. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  18779. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18780. quat_tdm_tx_0_mixer_controls,
  18781. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  18782. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18783. quat_tdm_rx_1_mixer_controls,
  18784. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  18785. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18786. quat_tdm_rx_2_mixer_controls,
  18787. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  18788. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18789. quat_tdm_rx_3_mixer_controls,
  18790. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  18791. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18792. quin_tdm_rx_0_mixer_controls,
  18793. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  18794. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18795. quin_tdm_tx_0_mixer_controls,
  18796. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  18797. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18798. quin_tdm_rx_1_mixer_controls,
  18799. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  18800. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18801. quin_tdm_rx_2_mixer_controls,
  18802. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  18803. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18804. quin_tdm_rx_3_mixer_controls,
  18805. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  18806. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18807. wsa_cdc_dma_rx_0_mixer_controls,
  18808. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  18809. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18810. wsa_cdc_dma_rx_1_mixer_controls,
  18811. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  18812. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18813. rx_cdc_dma_rx_0_mixer_controls,
  18814. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  18815. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18816. rx_cdc_dma_rx_1_mixer_controls,
  18817. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  18818. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18819. rx_cdc_dma_rx_2_mixer_controls,
  18820. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  18821. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18822. rx_cdc_dma_rx_3_mixer_controls,
  18823. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  18824. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18825. rx_cdc_dma_rx_4_mixer_controls,
  18826. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  18827. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18828. rx_cdc_dma_rx_5_mixer_controls,
  18829. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  18830. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18831. rx_cdc_dma_rx_6_mixer_controls,
  18832. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  18833. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18834. rx_cdc_dma_rx_7_mixer_controls,
  18835. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  18836. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  18837. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  18838. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  18839. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  18840. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  18841. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  18842. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  18843. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  18844. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  18845. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  18846. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  18847. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  18848. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  18849. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  18850. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  18851. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  18852. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  18853. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  18854. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  18855. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  18856. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  18857. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  18858. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  18859. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  18860. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  18861. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  18862. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  18863. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  18864. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  18865. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  18866. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  18867. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  18868. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  18869. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  18870. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  18871. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  18872. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18873. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  18874. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18875. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  18876. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18877. tert_auxpcm_rx_mixer_controls,
  18878. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  18879. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18880. quat_auxpcm_rx_mixer_controls,
  18881. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  18882. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18883. quin_auxpcm_rx_mixer_controls,
  18884. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  18885. /* incall */
  18886. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  18887. incall_music_delivery_mixer_controls,
  18888. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  18889. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18890. incall_music2_delivery_mixer_controls,
  18891. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  18892. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18893. slimbus_4_rx_mixer_controls,
  18894. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  18895. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18896. slimbus_6_rx_mixer_controls,
  18897. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  18898. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18899. usb_audio_rx_mixer_controls,
  18900. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  18901. /* Voice Mixer */
  18902. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  18903. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  18904. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  18905. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  18906. SND_SOC_NOPM, 0, 0,
  18907. sec_i2s_rx_voice_mixer_controls,
  18908. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  18909. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  18910. SND_SOC_NOPM, 0, 0,
  18911. sec_mi2s_rx_voice_mixer_controls,
  18912. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  18913. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  18914. SND_SOC_NOPM, 0, 0,
  18915. slimbus_rx_voice_mixer_controls,
  18916. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  18917. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  18918. SND_SOC_NOPM, 0, 0,
  18919. bt_sco_rx_voice_mixer_controls,
  18920. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  18921. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  18922. SND_SOC_NOPM, 0, 0,
  18923. afe_pcm_rx_voice_mixer_controls,
  18924. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  18925. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  18926. SND_SOC_NOPM, 0, 0,
  18927. aux_pcm_rx_voice_mixer_controls,
  18928. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  18929. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  18930. SND_SOC_NOPM, 0, 0,
  18931. sec_aux_pcm_rx_voice_mixer_controls,
  18932. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  18933. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  18934. SND_SOC_NOPM, 0, 0,
  18935. tert_aux_pcm_rx_voice_mixer_controls,
  18936. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  18937. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  18938. SND_SOC_NOPM, 0, 0,
  18939. quat_aux_pcm_rx_voice_mixer_controls,
  18940. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  18941. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  18942. SND_SOC_NOPM, 0, 0,
  18943. quin_aux_pcm_rx_voice_mixer_controls,
  18944. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  18945. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  18946. SND_SOC_NOPM, 0, 0,
  18947. hdmi_rx_voice_mixer_controls,
  18948. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  18949. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  18950. SND_SOC_NOPM, 0, 0,
  18951. mi2s_rx_voice_mixer_controls,
  18952. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  18953. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  18954. SND_SOC_NOPM, 0, 0,
  18955. pri_mi2s_rx_voice_mixer_controls,
  18956. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  18957. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  18958. SND_SOC_NOPM, 0, 0,
  18959. int0_mi2s_rx_voice_mixer_controls,
  18960. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  18961. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  18962. SND_SOC_NOPM, 0, 0,
  18963. int4_mi2s_rx_voice_mixer_controls,
  18964. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  18965. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  18966. SND_SOC_NOPM, 0, 0,
  18967. tert_mi2s_rx_voice_mixer_controls,
  18968. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  18969. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  18970. SND_SOC_NOPM, 0, 0,
  18971. quat_mi2s_rx_voice_mixer_controls,
  18972. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  18973. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  18974. SND_SOC_NOPM, 0, 0,
  18975. quin_mi2s_rx_voice_mixer_controls,
  18976. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  18977. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  18978. SND_SOC_NOPM, 0, 0,
  18979. quat_tdm_rx_2_voice_mixer_controls,
  18980. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  18981. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  18982. SND_SOC_NOPM, 0, 0,
  18983. wsa_cdc_dma_rx_0_voice_mixer_controls,
  18984. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  18985. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  18986. SND_SOC_NOPM, 0, 0,
  18987. rx_cdc_dma_rx_0_voice_mixer_controls,
  18988. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  18989. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  18990. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  18991. ARRAY_SIZE(tx_voip_mixer_controls)),
  18992. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  18993. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  18994. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  18995. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  18996. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  18997. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18998. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18999. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  19000. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19001. int_bt_a2dp_rx_mixer_controls,
  19002. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  19003. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19004. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  19005. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  19006. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  19007. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  19008. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  19009. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  19010. tx_voice2_stub_mixer_controls,
  19011. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  19012. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  19013. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  19014. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  19015. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  19016. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  19017. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  19018. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  19019. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  19020. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  19021. SND_SOC_NOPM, 0, 0,
  19022. slimbus_6_rx_voice_mixer_controls,
  19023. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  19024. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  19025. slimbus_7_rx_voice_mixer_controls,
  19026. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  19027. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  19028. slimbus_8_rx_voice_mixer_controls,
  19029. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  19030. /* port mixer */
  19031. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  19032. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  19033. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  19034. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  19035. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  19036. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  19037. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  19038. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  19039. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  19040. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  19041. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  19042. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  19043. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  19044. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  19045. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  19046. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  19047. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  19048. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  19049. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19050. sbus_1_rx_port_mixer_controls,
  19051. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  19052. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19053. bt_sco_rx_port_mixer_controls,
  19054. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  19055. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  19056. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  19057. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  19058. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  19059. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  19060. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  19061. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  19062. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  19063. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  19064. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  19065. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  19066. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  19067. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  19068. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  19069. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  19070. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  19071. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  19072. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  19073. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  19074. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  19075. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  19076. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19077. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  19078. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19079. primary_mi2s_rx_port_mixer_controls,
  19080. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  19081. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19082. sec_mi2s_rx_port_mixer_controls,
  19083. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  19084. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19085. tert_mi2s_rx_port_mixer_controls,
  19086. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  19087. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19088. quat_mi2s_rx_port_mixer_controls,
  19089. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  19090. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19091. quin_mi2s_rx_port_mixer_controls,
  19092. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  19093. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19094. pri_tdm_rx_0_port_mixer_controls,
  19095. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  19096. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19097. pri_tdm_rx_1_port_mixer_controls,
  19098. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  19099. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19100. pri_tdm_rx_2_port_mixer_controls,
  19101. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  19102. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19103. pri_tdm_rx_3_port_mixer_controls,
  19104. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  19105. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19106. sec_tdm_rx_0_port_mixer_controls,
  19107. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  19108. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19109. sec_tdm_rx_1_port_mixer_controls,
  19110. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  19111. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19112. sec_tdm_rx_2_port_mixer_controls,
  19113. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  19114. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19115. sec_tdm_rx_3_port_mixer_controls,
  19116. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  19117. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  19118. sec_tdm_rx_7_port_mixer_controls,
  19119. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  19120. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19121. tert_tdm_rx_0_port_mixer_controls,
  19122. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  19123. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19124. tert_tdm_rx_1_port_mixer_controls,
  19125. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  19126. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19127. tert_tdm_rx_2_port_mixer_controls,
  19128. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  19129. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19130. tert_tdm_rx_3_port_mixer_controls,
  19131. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  19132. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19133. quat_tdm_rx_0_port_mixer_controls,
  19134. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  19135. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19136. quat_tdm_rx_1_port_mixer_controls,
  19137. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  19138. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19139. quat_tdm_rx_2_port_mixer_controls,
  19140. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  19141. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19142. quat_tdm_rx_3_port_mixer_controls,
  19143. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  19144. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19145. quin_tdm_rx_0_port_mixer_controls,
  19146. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  19147. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  19148. quin_tdm_rx_1_port_mixer_controls,
  19149. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  19150. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  19151. quin_tdm_rx_2_port_mixer_controls,
  19152. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  19153. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  19154. quin_tdm_rx_3_port_mixer_controls,
  19155. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  19156. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19157. int0_mi2s_rx_port_mixer_controls,
  19158. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  19159. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  19160. int4_mi2s_rx_port_mixer_controls,
  19161. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  19162. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19163. wsa_cdc_dma_rx_0_port_mixer_controls,
  19164. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  19165. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  19166. rx_cdc_dma_rx_0_port_mixer_controls,
  19167. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  19168. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  19169. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  19170. ARRAY_SIZE(tx_qchat_mixer_controls)),
  19171. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  19172. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  19173. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  19174. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  19175. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  19176. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  19177. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  19178. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  19179. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  19180. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  19181. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  19182. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  19183. /* lsm mixer definitions */
  19184. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  19185. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  19186. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  19187. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  19188. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  19189. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  19190. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  19191. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  19192. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  19193. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  19194. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  19195. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  19196. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  19197. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  19198. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  19199. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  19200. /* Virtual Pins to force backends ON atm */
  19201. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  19202. SND_SOC_DAPM_INPUT("BE_IN"),
  19203. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  19204. &slim0_rx_vi_fb_lch_mux),
  19205. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  19206. &slim0_rx_vi_fb_rch_mux),
  19207. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  19208. &wsa_rx_0_vi_fb_lch_mux),
  19209. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  19210. &wsa_rx_0_vi_fb_rch_mux),
  19211. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  19212. &mi2s_rx_vi_fb_mux),
  19213. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  19214. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  19215. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  19216. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  19217. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  19218. &voc_ext_ec_mux),
  19219. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  19220. &ext_ec_ref_mux_ul1),
  19221. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  19222. &ext_ec_ref_mux_ul2),
  19223. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  19224. &ext_ec_ref_mux_ul3),
  19225. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  19226. &ext_ec_ref_mux_ul4),
  19227. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  19228. &ext_ec_ref_mux_ul5),
  19229. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  19230. &ext_ec_ref_mux_ul6),
  19231. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  19232. &ext_ec_ref_mux_ul8),
  19233. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  19234. &ext_ec_ref_mux_ul9),
  19235. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  19236. &ext_ec_ref_mux_ul10),
  19237. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  19238. &ext_ec_ref_mux_ul16),
  19239. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  19240. &ext_ec_ref_mux_ul17),
  19241. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  19242. &ext_ec_ref_mux_ul18),
  19243. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  19244. &ext_ec_ref_mux_ul19),
  19245. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  19246. &ext_ec_ref_mux_ul28),
  19247. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  19248. &ext_ec_ref_mux_ul29),
  19249. };
  19250. static const struct snd_soc_dapm_route intercon[] = {
  19251. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19252. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19253. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19254. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19255. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19256. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19257. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19258. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19259. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19260. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19261. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19262. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19263. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19264. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19265. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19266. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19267. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19268. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  19269. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19270. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19271. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19272. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19273. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19274. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19275. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19276. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19277. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19278. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19279. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19280. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19281. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19282. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19283. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19284. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19285. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19286. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  19287. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19288. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19289. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19290. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19291. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19292. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19293. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19294. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19295. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19296. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19297. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19298. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19299. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19300. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19301. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19302. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19303. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19304. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  19305. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19306. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19307. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19308. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19309. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19310. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19311. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19312. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19313. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19314. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19315. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19316. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19317. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19318. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19319. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19320. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19321. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19322. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  19323. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19324. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19325. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19326. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19327. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19328. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19329. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19330. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19331. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19332. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19333. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19334. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19335. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19336. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19337. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19338. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19339. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19340. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  19341. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19342. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19343. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19344. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19345. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19346. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19347. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19348. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19349. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19350. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19351. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19352. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19353. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19354. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19355. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19356. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19357. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19358. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  19359. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19360. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19361. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19362. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19363. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19364. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19365. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19366. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19367. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19368. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19369. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19370. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19371. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19372. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19373. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19374. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19375. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19376. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  19377. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19378. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19379. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19380. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19381. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19382. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19383. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19384. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19385. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19386. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19387. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19388. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19389. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19390. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19391. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19392. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19393. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19394. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  19395. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19396. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19397. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19398. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19399. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19400. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19401. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19402. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19403. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19404. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19405. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19406. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19407. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19408. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19409. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19410. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19411. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19412. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  19413. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19414. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19415. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19416. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19417. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19418. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19419. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19420. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19421. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19422. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19423. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19424. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19425. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19426. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19427. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19428. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19429. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19430. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  19431. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19432. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19433. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19434. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19435. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19436. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19437. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19438. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19439. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19440. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19441. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19442. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19443. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19444. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19445. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19446. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19447. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19448. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  19449. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19450. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19451. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19452. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19453. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19454. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19455. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19456. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19457. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19458. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19459. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19460. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19461. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19462. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19463. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19464. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19465. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19466. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  19467. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19468. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19469. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19470. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19471. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19472. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19473. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19474. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19475. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19476. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19477. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19478. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19479. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19480. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19481. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19482. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19483. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19484. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  19485. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19486. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19487. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19488. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19489. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19490. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19491. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19492. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19493. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19494. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19495. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19496. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19497. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19498. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19499. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19500. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19501. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19502. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  19503. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19504. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19505. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19506. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19507. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19508. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19509. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19510. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19511. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19512. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19513. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19514. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19515. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19516. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19517. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19518. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19519. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19520. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  19521. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  19522. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  19523. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  19524. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  19525. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  19526. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  19527. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  19528. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  19529. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  19530. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  19531. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  19532. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  19533. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  19534. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  19535. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  19536. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  19537. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  19538. {"HDMI", NULL, "HDMI Mixer"},
  19539. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  19540. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  19541. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  19542. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  19543. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  19544. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  19545. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  19546. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  19547. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  19548. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  19549. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  19550. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  19551. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  19552. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  19553. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  19554. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  19555. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  19556. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  19557. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  19558. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  19559. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  19560. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  19561. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  19562. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  19563. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  19564. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  19565. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  19566. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  19567. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  19568. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  19569. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  19570. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  19571. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  19572. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  19573. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  19574. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  19575. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19576. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19577. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19578. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19579. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19580. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19581. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19582. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19583. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19584. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19585. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19586. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19587. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19588. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19589. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19590. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19591. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19592. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  19593. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19594. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19595. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19596. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19597. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19598. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19599. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19600. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19601. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19602. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19603. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19604. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19605. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19606. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19607. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19608. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19609. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19610. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19611. /* incall */
  19612. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19613. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19614. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19615. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19616. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19617. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19618. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19619. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19620. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19621. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19622. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19623. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19624. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19625. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19626. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19627. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19628. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19629. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19630. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19631. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19632. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19633. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19634. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19635. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19636. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19637. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19638. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19639. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19640. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19641. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19642. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19643. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19644. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19645. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19646. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19647. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19648. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19649. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19650. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19651. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19652. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19653. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19654. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19655. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19656. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19657. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19658. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19659. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19660. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19661. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19662. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19663. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19664. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19665. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19666. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19667. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19668. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19669. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19670. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19671. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19672. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19673. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19674. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19675. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19676. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19677. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19678. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19679. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19680. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19681. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19682. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19683. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19684. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19685. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19686. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19687. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19688. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19689. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19690. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19691. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19692. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19693. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19694. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19695. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19696. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19697. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19698. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19699. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19700. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19701. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19702. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19703. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19704. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19705. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19706. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19707. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19708. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19709. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19710. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19711. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19712. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19713. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19714. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19715. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19716. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19717. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19718. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19719. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19720. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19721. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19722. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19723. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19724. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19725. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19726. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19727. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19728. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19729. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19730. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19731. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19732. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19733. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19734. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19735. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19736. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19737. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19738. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19739. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19740. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19741. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19742. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19743. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19744. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19745. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19746. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19747. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19748. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19749. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19750. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19751. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19752. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19753. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19754. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19755. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19756. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19757. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19758. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19759. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19760. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19761. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19762. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19763. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19764. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19765. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19766. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19767. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19768. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19769. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19770. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19771. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19772. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19773. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19774. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19775. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19776. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19777. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19778. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19779. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19780. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19781. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19782. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19783. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19784. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19785. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19786. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19787. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19788. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  19789. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19790. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19791. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19792. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19793. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19794. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19795. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19796. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19797. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19798. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19799. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19800. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19801. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19802. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19803. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19804. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19805. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  19806. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19807. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19808. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19809. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19810. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19811. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19812. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19813. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19814. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19815. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19816. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19817. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19818. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19819. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19820. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19821. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  19822. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19823. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19824. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19825. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19826. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19827. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19828. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19829. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19830. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19831. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19832. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19833. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19834. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19835. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19836. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19837. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  19838. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19839. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  19840. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19841. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19842. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19843. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19844. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19845. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19846. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19847. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19848. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19849. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19850. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19851. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19852. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19853. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19854. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19855. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19856. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19857. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19858. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  19859. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19860. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19861. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19862. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19863. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19864. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19865. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19866. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19867. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19868. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19869. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19870. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19871. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19872. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19873. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19874. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  19875. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19876. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19877. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19878. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19879. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19880. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19881. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19882. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19883. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19884. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19885. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19886. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19887. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19888. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19889. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19890. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  19891. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19892. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19893. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19894. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19895. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19896. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19897. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19898. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19899. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19900. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19901. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19902. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19903. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19904. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19905. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19906. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19907. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19908. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  19909. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19910. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19911. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19912. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19913. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19914. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19915. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19916. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19917. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19918. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19919. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19920. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19921. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19922. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19923. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19924. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19925. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19926. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  19927. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19928. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19929. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19930. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19931. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19932. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19933. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19934. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19935. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19936. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19937. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19938. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19939. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19940. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19941. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19942. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19943. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19944. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  19945. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19946. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19947. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19948. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19949. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19950. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19951. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19952. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19953. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19954. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19955. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19956. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19957. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19958. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19959. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19960. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19961. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19962. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  19963. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19964. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19965. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19966. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19967. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19968. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19969. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19970. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19971. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19972. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19973. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19974. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19975. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19976. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19977. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19978. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19979. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19980. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  19981. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19982. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19983. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19984. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19985. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19986. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19987. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19988. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19989. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19990. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19991. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19992. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19993. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19994. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19995. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19996. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19997. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  19998. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19999. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20000. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20001. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20002. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20003. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20004. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20005. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20006. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20007. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20008. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20009. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20010. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20011. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20012. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20013. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20014. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20015. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  20016. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20017. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20018. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20019. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20020. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20021. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20022. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20023. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20024. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20025. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20026. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20027. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20028. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20029. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20030. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20031. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20032. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20033. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  20034. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20035. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20036. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20037. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20038. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20039. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20040. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20041. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20042. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20043. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20044. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20045. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20046. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20047. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20048. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20049. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20050. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20051. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  20052. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20053. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20054. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20055. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20056. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20057. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20058. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20059. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20060. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20061. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20062. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20063. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20064. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20065. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20066. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20067. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20068. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20069. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  20070. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20071. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20072. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20073. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20074. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20075. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20076. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20077. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20078. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20079. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20080. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20081. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20082. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20083. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20084. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20085. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20086. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  20087. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20088. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20089. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20090. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20091. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20092. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20093. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20094. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20095. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20096. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20097. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20098. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20099. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20100. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20101. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20102. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20103. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20104. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  20105. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20106. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20107. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20108. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20109. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20110. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20111. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20112. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20113. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20114. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20115. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20116. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20117. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20118. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20119. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20120. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20121. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  20122. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20123. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20124. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20125. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20126. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20127. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20128. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20129. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20130. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20131. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20132. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20133. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20134. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20135. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20136. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20137. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20138. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20139. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  20140. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20141. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20142. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20143. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20144. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20145. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20146. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20147. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20148. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20149. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20150. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20151. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20152. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20153. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20154. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20155. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20156. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20157. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  20158. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20159. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20160. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20161. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20162. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20163. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20164. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20165. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20166. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20167. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20168. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20169. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20170. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20171. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20172. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20173. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20174. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20175. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  20176. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20177. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20178. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20179. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20180. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20181. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20182. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20183. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20184. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20185. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20186. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20187. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20188. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20189. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20190. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20191. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20192. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20193. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  20194. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20195. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20196. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20197. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20198. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20199. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20200. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20201. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20202. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20203. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20204. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20205. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20206. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20207. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20208. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20209. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20210. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20211. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20212. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  20213. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20214. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20215. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20216. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20217. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20218. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20219. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20220. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20221. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20222. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20223. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20224. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20225. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20226. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20227. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20228. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20229. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  20230. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20231. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20232. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20233. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20234. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20235. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20236. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20237. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20238. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20239. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20240. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20241. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20242. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20243. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20244. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20245. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20246. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20247. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20248. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  20249. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20250. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20251. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20252. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20253. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20254. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20255. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20256. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20257. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20258. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20259. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20260. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20261. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20262. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20263. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20264. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20265. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20266. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20267. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  20268. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20269. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20270. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20271. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20272. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20273. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20274. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20275. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20276. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20277. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20278. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20279. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20280. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20281. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20282. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20283. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20284. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20285. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20286. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  20287. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20288. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20289. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20290. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20291. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20292. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20293. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20294. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20295. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20296. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20297. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20298. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20299. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20300. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20301. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20302. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20303. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20304. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20305. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  20306. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20307. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20308. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20309. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20310. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20311. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20312. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20313. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20314. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20315. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20316. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20317. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20318. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20319. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20320. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20321. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20322. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  20323. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20324. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20325. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20326. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20327. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20328. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20329. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20330. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20331. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20332. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20333. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20334. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20335. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20336. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20337. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20338. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20339. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20340. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20341. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  20342. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20343. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20344. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20345. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20346. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20347. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20348. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20349. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20350. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20351. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20352. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20353. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20354. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20355. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20356. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20357. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20358. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20359. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20360. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  20361. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  20362. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  20363. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  20364. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  20365. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  20366. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  20367. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  20368. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  20369. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  20370. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  20371. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  20372. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  20373. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  20374. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  20375. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  20376. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  20377. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  20378. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  20379. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  20380. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  20381. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  20382. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  20383. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  20384. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  20385. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  20386. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  20387. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20388. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20389. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20390. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20391. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20392. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20393. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20394. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20395. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20396. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20397. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20398. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20399. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20400. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20401. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  20402. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20403. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  20404. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20405. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  20406. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  20407. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  20408. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  20409. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  20410. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  20411. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  20412. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  20413. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  20414. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  20415. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  20416. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  20417. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  20418. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  20419. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  20420. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  20421. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  20422. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20423. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20424. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20425. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  20426. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20427. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20428. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20429. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20430. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20431. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20432. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20433. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20434. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20435. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20436. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20437. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20438. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20439. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  20440. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20441. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20442. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20443. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20444. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20445. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20446. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20447. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20448. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20449. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20450. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20451. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20452. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20453. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20454. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20455. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20456. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20457. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20458. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20459. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20460. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20461. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20462. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20463. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20464. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20465. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20466. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20467. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20468. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20469. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20470. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20471. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20472. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20473. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20474. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20475. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20476. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20477. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20478. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20479. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20480. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20481. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20482. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20483. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20484. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20485. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20486. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20487. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20488. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20489. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20490. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20491. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20492. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20493. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20494. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20495. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20496. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20497. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20498. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20499. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20500. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20501. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20502. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20503. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20504. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20505. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20506. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20507. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20508. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20509. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20510. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20511. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20512. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20513. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20514. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20515. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20516. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20517. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20518. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20519. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20520. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20521. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20522. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20523. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20524. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20525. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20526. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20527. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20528. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20529. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20530. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20531. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20532. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20533. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20534. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20535. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20536. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20537. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20538. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20539. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20540. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20541. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20542. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20543. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20544. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20545. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20546. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20547. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20548. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20549. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20550. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20551. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20552. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20553. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20554. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20555. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20556. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20557. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20558. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20559. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20560. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20561. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20562. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20563. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20564. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20565. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20566. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20567. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20568. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20569. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20570. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20571. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20572. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20573. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20574. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20575. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20576. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20577. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20578. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20579. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20580. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20581. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20582. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20583. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20584. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20585. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20586. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20587. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20588. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20589. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20590. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20591. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20592. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20593. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20594. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20595. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20596. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20597. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20598. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20599. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20600. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20601. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20602. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20603. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20604. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20605. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20606. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20607. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20608. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20609. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20610. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20611. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20612. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20613. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20614. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20615. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20616. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20617. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20618. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20619. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20620. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20621. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20622. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20623. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20624. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20625. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20626. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20627. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20628. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20629. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20630. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20631. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20632. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20633. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20634. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20635. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20636. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20637. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20638. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20639. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20640. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20641. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20642. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20643. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20644. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20645. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20646. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20647. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20648. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20649. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20650. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20651. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20652. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20653. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20654. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20655. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20656. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20657. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20658. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20659. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20660. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20661. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20662. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20663. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20664. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20665. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20666. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20667. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20668. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20669. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20670. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20671. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20672. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20673. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20674. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20675. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20676. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20677. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20678. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20679. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20680. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20681. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20682. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20683. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20684. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20685. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20686. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20687. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20688. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20689. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20690. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20691. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20692. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20693. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20694. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20695. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20696. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20697. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20698. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20699. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20700. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20701. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20702. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20703. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20704. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20705. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20706. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20707. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20708. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20709. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20710. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20711. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20712. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20713. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20714. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20715. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20716. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20717. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20718. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20719. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20720. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20721. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20722. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20723. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20724. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20725. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20726. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20727. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20728. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20729. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20730. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20731. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20732. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20733. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20734. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20735. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20736. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20737. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20738. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20739. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20740. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20741. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20742. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20743. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20744. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20745. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20746. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20747. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20748. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20749. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20750. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20751. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20752. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20753. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20754. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20755. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20756. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20757. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20758. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20759. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20760. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20761. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20762. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20763. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20764. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20765. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20766. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20767. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20768. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20769. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20770. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20771. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20772. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20773. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20774. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20775. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20776. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20777. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20778. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20779. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20780. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20781. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20782. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20783. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20784. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20785. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20786. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20787. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20788. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20789. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20790. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20791. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20792. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20793. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20794. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20795. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20796. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20797. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20798. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20799. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20800. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20801. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20802. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20803. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20804. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20805. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20806. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20807. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20808. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20809. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20810. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20811. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20812. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20813. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20814. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20815. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20816. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20817. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20818. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20819. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20820. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20821. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20822. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20823. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20824. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20825. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20826. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20827. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20828. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20829. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20830. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20831. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20832. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20833. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20834. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20835. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20836. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20837. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20838. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20839. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20840. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20841. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20842. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20843. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20844. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20845. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20846. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20847. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20848. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20849. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20850. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20851. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20852. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20853. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20854. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20855. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20856. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20857. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20858. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20859. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20860. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20861. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20862. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  20863. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20864. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20865. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20866. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20867. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20868. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20869. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20870. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20871. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20872. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20873. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20874. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20875. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20876. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20877. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20878. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20879. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20880. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20881. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20882. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20883. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20884. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20885. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20886. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20887. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20888. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20889. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20890. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20891. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20892. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20893. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20894. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20895. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20896. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20897. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20898. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20899. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20900. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20901. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20902. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20903. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20904. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20905. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20906. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20907. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20908. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20909. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20910. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20911. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20912. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20913. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20914. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20915. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20916. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20917. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20918. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20919. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20920. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20921. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20922. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20923. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20924. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  20925. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20926. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20927. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20928. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20929. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20930. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20931. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20932. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20933. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20934. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20935. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20936. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20937. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20938. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20939. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20940. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20941. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20942. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  20943. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20944. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20945. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20946. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20947. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20948. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20949. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20950. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20951. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20952. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20953. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20954. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20955. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20956. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20957. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20958. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20959. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  20960. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20961. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20962. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20963. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20964. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20965. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20966. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20967. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20968. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20969. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20970. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20971. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20972. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20973. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20974. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20975. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20976. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  20977. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20978. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20979. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20980. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20981. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20982. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20983. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20984. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20985. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20986. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20987. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20988. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20989. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20990. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20991. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20992. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20993. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20994. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20995. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20996. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20997. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20998. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20999. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21000. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21001. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21002. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21003. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21004. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21005. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21006. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21007. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21008. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21009. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21010. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21011. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  21012. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  21013. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21014. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  21015. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  21016. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  21017. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  21018. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  21019. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  21020. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  21021. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  21022. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  21023. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  21024. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  21025. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  21026. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  21027. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  21028. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  21029. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  21030. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  21031. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21032. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21033. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21034. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21035. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21036. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21037. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21038. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21039. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21040. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21041. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21042. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21043. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21044. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21045. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21046. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21047. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  21048. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  21049. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21050. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21051. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21052. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21053. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21054. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21055. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21056. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21057. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21058. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21059. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21060. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21061. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21062. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21063. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21064. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21065. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  21066. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  21067. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21068. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21069. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21070. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21071. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21072. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21073. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21074. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21075. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21076. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21077. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21078. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21079. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21080. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21081. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21082. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21083. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  21084. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21085. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21086. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21087. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21088. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21089. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21090. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21091. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21092. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21093. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21094. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21095. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21096. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21097. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21098. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21099. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21100. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  21101. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21102. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21103. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21104. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21105. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21106. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21107. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21108. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21109. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21110. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21111. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21112. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21113. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21114. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21115. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21116. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21117. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  21118. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21119. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21120. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21121. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21122. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21123. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  21124. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21125. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21126. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21127. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  21128. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21129. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21130. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21131. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21132. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21133. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  21134. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21135. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21136. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21137. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21138. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21139. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  21140. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21141. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21142. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21143. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21144. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21145. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  21146. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21147. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21148. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21149. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21150. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21151. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  21152. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21153. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21154. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21155. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21156. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21157. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  21158. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  21159. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21160. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21161. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21162. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21163. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  21164. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21165. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21166. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21167. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21168. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21169. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  21170. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21171. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21172. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21173. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21174. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21175. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  21176. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21177. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21178. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21179. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21180. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21181. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  21182. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21183. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21184. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21185. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21186. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21187. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  21188. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21189. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21190. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21191. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21192. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21193. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  21194. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21195. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21196. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21197. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21198. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21199. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  21200. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21201. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21202. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21203. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21204. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21205. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  21206. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21207. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21208. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21209. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21210. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21211. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  21212. {"HDMI", NULL, "HDMI_DL_HL"},
  21213. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21214. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21215. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21216. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21217. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21218. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  21219. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21220. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21221. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21222. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21223. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21224. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  21225. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21226. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21227. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21228. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21229. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21230. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  21231. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21232. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21233. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21234. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21235. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21236. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  21237. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21238. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21239. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21240. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21241. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21242. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  21243. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21244. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21245. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21246. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21247. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  21248. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21249. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21250. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21251. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21252. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  21253. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21254. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  21255. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21256. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21257. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  21258. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21259. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21260. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  21261. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21262. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21263. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21264. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21265. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21266. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21267. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  21268. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  21269. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  21270. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  21271. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21272. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21273. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21274. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21275. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21276. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21277. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  21278. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  21279. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  21280. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21281. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  21282. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21283. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21284. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21285. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21286. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21287. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21288. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21289. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21290. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21291. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21292. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21293. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21294. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21295. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21296. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21297. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21298. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21299. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21300. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21301. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21302. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21303. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21304. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21305. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21306. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21307. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21308. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21309. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21310. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21311. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21312. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21313. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21314. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21315. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21316. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21317. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  21318. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  21319. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  21320. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21321. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  21322. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21323. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21324. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21325. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21326. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21327. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21328. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21329. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21330. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21331. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21332. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21333. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21334. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21335. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21336. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21337. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21338. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21339. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21340. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21341. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21342. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21343. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21344. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21345. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21346. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21347. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21348. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21349. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21350. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21351. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21352. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21353. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21354. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21355. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  21356. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  21357. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  21358. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  21359. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  21360. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  21361. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  21362. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  21363. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  21364. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  21365. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  21366. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  21367. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  21368. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  21369. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  21370. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  21371. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  21372. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  21373. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  21374. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  21375. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  21376. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  21377. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  21378. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  21379. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  21380. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  21381. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  21382. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  21383. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  21384. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  21385. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  21386. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  21387. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  21388. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  21389. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  21390. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  21391. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  21392. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  21393. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  21394. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  21395. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  21396. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  21397. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  21398. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  21399. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  21400. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  21401. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  21402. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  21403. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  21404. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  21405. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  21406. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  21407. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  21408. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  21409. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  21410. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  21411. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  21412. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  21413. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  21414. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  21415. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  21416. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  21417. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  21418. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  21419. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  21420. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  21421. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  21422. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  21423. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  21424. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  21425. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  21426. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  21427. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  21428. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  21429. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  21430. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  21431. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  21432. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  21433. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  21434. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  21435. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  21436. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  21437. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  21438. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  21439. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  21440. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  21441. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  21442. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  21443. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  21444. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  21445. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  21446. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  21447. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  21448. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  21449. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  21450. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  21451. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  21452. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  21453. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  21454. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  21455. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21456. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21457. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21458. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21459. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21460. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21461. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21462. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21463. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21464. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21465. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21466. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21467. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21468. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  21469. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21470. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21471. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21472. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21473. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21474. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21475. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21476. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21477. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21478. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21479. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21480. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21481. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21482. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  21483. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21484. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21485. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21486. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21487. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21488. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21489. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21490. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21491. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21492. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21493. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21494. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21495. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21496. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  21497. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21498. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21499. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21500. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21501. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21502. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21503. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21504. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21505. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21506. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21507. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21508. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21509. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21510. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  21511. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21512. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21513. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21514. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21515. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21516. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21517. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21518. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21519. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21520. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21521. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21522. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21523. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21524. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  21525. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21526. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21527. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21528. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21529. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21530. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21531. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21532. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21533. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21534. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21535. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21536. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  21537. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21538. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21539. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21540. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21541. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21542. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21543. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21544. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21545. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21546. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21547. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21548. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  21549. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21550. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21551. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21552. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21553. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21554. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21555. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21556. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21557. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  21558. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21559. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21560. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  21561. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  21562. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  21563. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  21564. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  21565. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  21566. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  21567. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  21568. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  21569. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  21570. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  21571. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  21572. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  21573. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  21574. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  21575. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  21576. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  21577. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  21578. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  21579. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  21580. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  21581. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  21582. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  21583. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  21584. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  21585. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  21586. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  21587. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  21588. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  21589. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  21590. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  21591. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  21592. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  21593. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  21594. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  21595. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  21596. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  21597. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  21598. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  21599. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  21600. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  21601. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  21602. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  21603. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  21604. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  21605. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  21606. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  21607. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  21608. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  21609. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  21610. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  21611. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  21612. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  21613. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  21614. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  21615. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21616. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  21617. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21618. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  21619. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  21620. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  21621. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  21622. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  21623. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  21624. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  21625. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  21626. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  21627. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  21628. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  21629. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  21630. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  21631. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  21632. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  21633. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  21634. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  21635. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  21636. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  21637. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  21638. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  21639. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  21640. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  21641. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  21642. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  21643. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  21644. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  21645. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  21646. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  21647. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  21648. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  21649. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  21650. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  21651. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  21652. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  21653. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  21654. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  21655. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  21656. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  21657. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  21658. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  21659. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  21660. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  21661. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  21662. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  21663. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  21664. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  21665. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  21666. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  21667. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21668. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21669. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21670. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21671. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21672. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21673. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21674. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21675. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21676. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21677. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21678. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21679. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21680. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21681. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21682. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21683. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21684. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21685. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21686. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21687. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  21688. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21689. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21690. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21691. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21692. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21693. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21694. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21695. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21696. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21697. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21698. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21699. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21700. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21701. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21702. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21703. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21704. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21705. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21706. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21707. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21708. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  21709. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21710. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21711. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21712. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21713. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21714. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21715. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21716. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21717. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21718. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21719. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21720. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21721. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21722. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21723. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21724. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21725. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21726. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21727. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21728. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21729. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  21730. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21731. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21732. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21733. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21734. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21735. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21736. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21737. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21738. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21739. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21740. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21741. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21742. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21743. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21744. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21745. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21746. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21747. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21748. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21749. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21750. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  21751. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21752. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21753. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21754. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21755. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21756. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21757. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21758. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21759. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21760. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21761. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21762. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21763. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21764. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21765. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21766. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21767. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21768. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21769. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21770. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21771. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  21772. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21773. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21774. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21775. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21776. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21777. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21778. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21779. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21780. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21781. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21782. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21783. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21784. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21785. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21786. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21787. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21788. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21789. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21790. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21791. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21792. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  21793. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21794. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21795. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21796. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21797. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21798. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21799. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21800. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21801. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21802. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21803. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21804. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21805. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21806. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21807. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21808. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21809. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21810. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21811. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21812. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21813. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  21814. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21815. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21816. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21817. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21818. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21819. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21820. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21821. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21822. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21823. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21824. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21825. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21826. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21827. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21828. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21829. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21830. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21831. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21832. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21833. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21834. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  21835. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  21836. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  21837. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21838. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21839. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21840. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21841. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21842. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21843. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21844. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21845. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21846. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21847. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21848. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21849. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21850. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21851. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21852. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21853. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21854. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21855. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21856. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21857. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  21858. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21859. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21860. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21861. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21862. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21863. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21864. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21865. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21866. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21867. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21868. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21869. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21870. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21871. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21872. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21873. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21874. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21875. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21876. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21877. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21878. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  21879. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21880. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21881. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21882. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21883. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21884. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21885. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21886. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21887. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21888. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21889. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21890. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21891. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21892. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21893. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21894. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21895. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21896. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21897. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21898. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21899. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  21900. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21901. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21902. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21903. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21904. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21905. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21906. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21907. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21908. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21909. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21910. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21911. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21912. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21913. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21914. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21915. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21916. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21917. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21918. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21919. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21920. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  21921. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21922. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21923. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21924. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21925. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21926. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21927. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21928. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21929. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21930. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21931. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21932. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21933. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21934. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21935. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21936. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21937. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21938. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21939. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21940. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21941. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  21942. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21943. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21944. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21945. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21946. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21947. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21948. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21949. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21950. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21951. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21952. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21953. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21954. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21955. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21956. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21957. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21958. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21959. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21960. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21961. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21962. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  21963. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21964. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21965. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21966. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21967. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21968. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21969. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21970. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21971. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21972. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21973. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21974. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21975. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21976. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21977. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21978. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21979. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21980. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21981. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21982. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21983. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  21984. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21985. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21986. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21987. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21988. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21989. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21990. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21991. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21992. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21993. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21994. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21995. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21996. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21997. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21998. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21999. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22000. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22001. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22002. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22003. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22004. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  22005. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22006. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22007. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22008. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22009. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22010. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22011. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22012. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22013. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22014. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22015. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22016. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22017. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22018. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22019. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22020. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22021. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22022. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22023. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22024. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22025. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  22026. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22027. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22028. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22029. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22030. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22031. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22032. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22033. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22034. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22035. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22036. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22037. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22038. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22039. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22040. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22041. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22042. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22043. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22044. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22045. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22046. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  22047. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22048. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22049. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22050. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22051. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22052. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22053. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22054. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22055. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22056. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22057. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22058. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22059. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22060. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22061. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22062. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22063. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22064. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22065. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22066. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22067. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  22068. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22069. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22070. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22071. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22072. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22073. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22074. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22075. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22076. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22077. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22078. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22079. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22080. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22081. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22082. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22083. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22084. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22085. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22086. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22087. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22088. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  22089. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22090. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22091. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22092. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22093. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22094. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22095. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22096. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22097. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22098. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22099. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22100. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  22101. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22102. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22103. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22104. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22105. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22106. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22107. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22108. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22109. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22110. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22111. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22112. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  22113. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  22114. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  22115. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22116. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22117. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  22118. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  22119. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22120. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22121. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  22122. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22123. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22124. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22125. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22126. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22127. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22128. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22129. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22130. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  22131. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  22132. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  22133. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22134. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22135. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22136. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22137. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22138. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22139. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22140. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  22141. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22142. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22143. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  22144. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  22145. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  22146. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  22147. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  22148. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  22149. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22150. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22151. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22152. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22153. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22154. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22155. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  22156. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22157. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22158. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22159. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22160. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  22161. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22162. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  22163. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22164. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  22165. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22166. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  22167. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22168. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  22169. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22170. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  22171. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22172. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  22173. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  22174. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22175. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22176. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  22177. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22178. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22179. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  22180. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  22181. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  22182. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  22183. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22184. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22185. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22186. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22187. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22188. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  22189. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22190. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22191. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  22192. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  22193. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  22194. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22195. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  22196. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22197. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22198. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  22199. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22200. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22201. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  22202. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22203. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22204. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  22205. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  22206. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22207. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  22208. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22209. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22210. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  22211. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22212. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22213. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  22214. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22215. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22216. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  22217. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22218. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22219. {"STUB_RX", NULL, "STUB_RX Mixer"},
  22220. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22221. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22222. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  22223. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22224. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22225. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  22226. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  22227. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  22228. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  22229. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22230. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22231. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  22232. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  22233. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  22234. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  22235. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  22236. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  22237. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  22238. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22239. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  22240. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22241. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  22242. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22243. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22244. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  22245. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  22246. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22247. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  22248. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  22249. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  22250. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  22251. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22252. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22253. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22254. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22255. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22256. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22257. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22258. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22259. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22260. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22261. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22262. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22263. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22264. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  22265. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22266. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  22267. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22268. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  22269. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  22270. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  22271. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22272. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  22273. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22274. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  22275. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  22276. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22277. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22278. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22279. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22280. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22281. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22282. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22283. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  22284. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22285. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22286. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  22287. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22288. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22289. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22290. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22291. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22292. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22293. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22294. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22295. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22296. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  22297. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22298. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22299. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22300. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22301. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22302. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22303. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22304. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  22305. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22306. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22307. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22308. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22309. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22310. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22311. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22312. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22313. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22314. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  22315. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22316. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22317. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22318. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22319. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22320. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22321. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22322. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  22323. /* Backend Enablement */
  22324. {"BE_OUT", NULL, "PRI_I2S_RX"},
  22325. {"BE_OUT", NULL, "SEC_I2S_RX"},
  22326. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  22327. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  22328. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  22329. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  22330. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  22331. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  22332. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  22333. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  22334. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  22335. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  22336. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  22337. {"BE_OUT", NULL, "HDMI"},
  22338. {"BE_OUT", NULL, "DISPLAY_PORT"},
  22339. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  22340. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  22341. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  22342. {"BE_OUT", NULL, "MI2S_RX"},
  22343. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  22344. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  22345. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  22346. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  22347. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  22348. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  22349. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  22350. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  22351. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  22352. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  22353. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  22354. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  22355. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  22356. {"BE_OUT", NULL, "INT_FM_RX"},
  22357. {"BE_OUT", NULL, "PCM_RX"},
  22358. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  22359. {"BE_OUT", NULL, "AUX_PCM_RX"},
  22360. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  22361. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  22362. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  22363. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  22364. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  22365. {"BE_OUT", NULL, "INT_FM_RX"},
  22366. {"BE_OUT", NULL, "PCM_RX"},
  22367. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  22368. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  22369. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  22370. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  22371. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  22372. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  22373. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  22374. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  22375. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  22376. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  22377. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  22378. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  22379. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  22380. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  22381. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  22382. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  22383. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  22384. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  22385. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  22386. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  22387. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  22388. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  22389. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  22390. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  22391. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  22392. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  22393. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  22394. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  22395. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  22396. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  22397. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  22398. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  22399. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  22400. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  22401. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  22402. {"PRI_I2S_TX", NULL, "BE_IN"},
  22403. {"MI2S_TX", NULL, "BE_IN"},
  22404. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  22405. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  22406. {"PRI_MI2S_TX", NULL, "BE_IN"},
  22407. {"TERT_MI2S_TX", NULL, "BE_IN"},
  22408. {"INT0_MI2S_TX", NULL, "BE_IN"},
  22409. {"INT2_MI2S_TX", NULL, "BE_IN"},
  22410. {"INT3_MI2S_TX", NULL, "BE_IN"},
  22411. {"INT4_MI2S_TX", NULL, "BE_IN"},
  22412. {"INT5_MI2S_TX", NULL, "BE_IN"},
  22413. {"SEC_MI2S_TX", NULL, "BE_IN"},
  22414. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  22415. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  22416. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  22417. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  22418. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  22419. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  22420. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  22421. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  22422. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  22423. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  22424. {"USB_AUDIO_TX", NULL, "BE_IN" },
  22425. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  22426. {"INT_FM_TX", NULL, "BE_IN"},
  22427. {"PCM_TX", NULL, "BE_IN"},
  22428. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  22429. {"BE_OUT", NULL, "STUB_RX"},
  22430. {"STUB_TX", NULL, "BE_IN"},
  22431. {"STUB_1_TX", NULL, "BE_IN"},
  22432. {"BE_OUT", NULL, "AUX_PCM_RX"},
  22433. {"AUX_PCM_TX", NULL, "BE_IN"},
  22434. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  22435. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  22436. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  22437. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  22438. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  22439. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  22440. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  22441. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  22442. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22443. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22444. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  22445. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  22446. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  22447. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  22448. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  22449. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  22450. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  22451. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  22452. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  22453. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  22454. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  22455. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  22456. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  22457. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  22458. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  22459. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  22460. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  22461. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  22462. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  22463. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  22464. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  22465. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  22466. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  22467. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  22468. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  22469. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  22470. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  22471. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  22472. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  22473. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  22474. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  22475. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  22476. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  22477. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  22478. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  22479. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  22480. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  22481. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  22482. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  22483. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  22484. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  22485. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  22486. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  22487. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  22488. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  22489. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  22490. };
  22491. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  22492. struct snd_pcm_hw_params *params)
  22493. {
  22494. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22495. unsigned int be_id = rtd->dai_link->id;
  22496. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22497. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22498. return -EINVAL;
  22499. }
  22500. mutex_lock(&routing_lock);
  22501. msm_bedais[be_id].sample_rate = params_rate(params);
  22502. msm_bedais[be_id].channel = params_channels(params);
  22503. msm_bedais[be_id].format = params_format(params);
  22504. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  22505. __func__, msm_bedais[be_id].sample_rate,
  22506. msm_bedais[be_id].format, be_id);
  22507. mutex_unlock(&routing_lock);
  22508. return 0;
  22509. }
  22510. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  22511. {
  22512. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22513. unsigned int be_id = rtd->dai_link->id;
  22514. int i, session_type, path_type, topology;
  22515. struct msm_pcm_routing_bdai_data *bedai;
  22516. struct msm_pcm_routing_fdai_data *fdai;
  22517. pr_debug("%s: substream->pcm->id:%s\n",
  22518. __func__, substream->pcm->id);
  22519. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22520. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22521. return -EINVAL;
  22522. }
  22523. bedai = &msm_bedais[be_id];
  22524. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  22525. 0 : 1);
  22526. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22527. path_type = ADM_PATH_PLAYBACK;
  22528. else
  22529. path_type = ADM_PATH_LIVE_REC;
  22530. mutex_lock(&routing_lock);
  22531. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22532. if (!is_mm_lsm_fe_id(i))
  22533. continue;
  22534. fdai = &fe_dai_map[i][session_type];
  22535. if (fdai->strm_id != INVALID_SESSION) {
  22536. int idx;
  22537. int port_id;
  22538. unsigned long copp =
  22539. session_copp_map[i][session_type][be_id];
  22540. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  22541. if (test_bit(idx, &copp))
  22542. break;
  22543. if (idx >= MAX_COPPS_PER_PORT) {
  22544. pr_debug("%s: copp idx is invalid, exiting\n",
  22545. __func__);
  22546. continue;
  22547. }
  22548. fdai->be_srate = bedai->sample_rate;
  22549. port_id = get_port_id(bedai->port_id);
  22550. topology = adm_get_topology_for_port_copp_idx(port_id,
  22551. idx);
  22552. msm_routing_unload_topology(topology);
  22553. adm_close(port_id, fdai->perf_mode, idx);
  22554. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  22555. __func__, copp, i, session_type, be_id,
  22556. topology);
  22557. clear_bit(idx,
  22558. &session_copp_map[i][session_type][be_id]);
  22559. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22560. (fdai->passthr_mode == LEGACY_PCM))
  22561. msm_pcm_routing_deinit_pp(port_id,
  22562. topology);
  22563. }
  22564. }
  22565. bedai->active = 0;
  22566. bedai->sample_rate = 0;
  22567. bedai->channel = 0;
  22568. mutex_unlock(&routing_lock);
  22569. return 0;
  22570. }
  22571. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  22572. {
  22573. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22574. unsigned int be_id = rtd->dai_link->id;
  22575. int i, path_type, topology;
  22576. int session_type = INVALID_SESSION;
  22577. struct msm_pcm_routing_bdai_data *bedai;
  22578. u32 channels, sample_rate;
  22579. uint16_t bits_per_sample = 16, voc_path_type;
  22580. struct msm_pcm_routing_fdai_data *fdai;
  22581. u32 session_id;
  22582. struct media_format_info voc_be_media_format;
  22583. bool is_lsm;
  22584. pr_debug("%s: substream->pcm->id:%s\n",
  22585. __func__, substream->pcm->id);
  22586. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22587. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22588. return -EINVAL;
  22589. }
  22590. bedai = &msm_bedais[be_id];
  22591. mutex_lock(&routing_lock);
  22592. if (bedai->active == 1)
  22593. goto done; /* Ignore prepare if back-end already active */
  22594. /* AFE port is not active at this point. However, still
  22595. * go ahead setting active flag under the notion that
  22596. * QDSP6 is able to handle ADM starting before AFE port
  22597. * is started.
  22598. */
  22599. bedai->active = 1;
  22600. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22601. if (!(is_mm_lsm_fe_id(i) &&
  22602. route_check_fe_id_adm_support(i)))
  22603. continue;
  22604. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  22605. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22606. fdai = &fe_dai_map[i][session_type];
  22607. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  22608. if (fdai->passthr_mode != LEGACY_PCM)
  22609. path_type = ADM_PATH_COMPRESSED_RX;
  22610. else
  22611. path_type = ADM_PATH_PLAYBACK;
  22612. } else {
  22613. if ((fdai->passthr_mode != LEGACY_PCM) &&
  22614. (fdai->passthr_mode != LISTEN))
  22615. path_type = ADM_PATH_COMPRESSED_TX;
  22616. else
  22617. path_type = ADM_PATH_LIVE_REC;
  22618. }
  22619. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  22620. (i <= MSM_FRONTEND_DAI_LSM8);
  22621. if (fdai->strm_id != INVALID_SESSION) {
  22622. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  22623. int port_id = get_port_id(bedai->port_id);
  22624. if (session_type == SESSION_TYPE_TX &&
  22625. fdai->be_srate &&
  22626. (fdai->be_srate != bedai->sample_rate)) {
  22627. pr_debug("%s: flush strm %d diff BE rates\n",
  22628. __func__,
  22629. fdai->strm_id);
  22630. if (fdai->event_info.event_func)
  22631. fdai->event_info.event_func(
  22632. MSM_PCM_RT_EVT_BUF_RECFG,
  22633. fdai->event_info.priv_data);
  22634. fdai->be_srate = 0; /* might not need it */
  22635. }
  22636. bits_per_sample = msm_routing_get_bit_width(
  22637. bedai->format);
  22638. app_type =
  22639. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  22640. if (app_type && is_lsm) {
  22641. app_type_idx =
  22642. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  22643. sample_rate =
  22644. fe_dai_app_type_cfg[i][session_type][be_id]
  22645. .sample_rate;
  22646. bits_per_sample =
  22647. lsm_app_type_cfg[app_type_idx].bit_width;
  22648. } else if (app_type) {
  22649. app_type_idx =
  22650. msm_pcm_routing_get_app_type_idx(app_type);
  22651. sample_rate =
  22652. fe_dai_app_type_cfg[i][session_type]
  22653. [be_id].sample_rate;
  22654. bits_per_sample =
  22655. app_type_cfg[app_type_idx].bit_width;
  22656. } else
  22657. sample_rate = bedai->sample_rate;
  22658. /*
  22659. * check if ADM needs to be configured with different
  22660. * channel mapping than backend
  22661. */
  22662. if (!bedai->adm_override_ch)
  22663. channels = bedai->channel;
  22664. else
  22665. channels = bedai->adm_override_ch;
  22666. acdb_dev_id =
  22667. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  22668. topology = msm_routing_get_adm_topology(i, session_type,
  22669. be_id);
  22670. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  22671. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  22672. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  22673. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  22674. copp_idx = adm_open(port_id, path_type,
  22675. sample_rate, channels, topology,
  22676. fdai->perf_mode, bits_per_sample,
  22677. app_type, acdb_dev_id,
  22678. session_type);
  22679. if ((copp_idx < 0) ||
  22680. (copp_idx >= MAX_COPPS_PER_PORT)) {
  22681. pr_err("%s: adm open failed\n", __func__);
  22682. mutex_unlock(&routing_lock);
  22683. return -EINVAL;
  22684. }
  22685. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  22686. __func__, i, session_type, be_id);
  22687. set_bit(copp_idx,
  22688. &session_copp_map[i][session_type][be_id]);
  22689. if (msm_is_resample_needed(
  22690. sample_rate,
  22691. bedai->sample_rate))
  22692. adm_copp_mfc_cfg(port_id, copp_idx,
  22693. bedai->sample_rate);
  22694. msm_pcm_routing_build_matrix(i, session_type, path_type,
  22695. fdai->perf_mode, fdai->passthr_mode);
  22696. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22697. (fdai->passthr_mode == LEGACY_PCM))
  22698. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  22699. topology, channels);
  22700. }
  22701. }
  22702. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22703. session_id = msm_pcm_routing_get_voc_sessionid(i);
  22704. if (session_id) {
  22705. pr_debug("%s voice session_id: 0x%x\n", __func__,
  22706. session_id);
  22707. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22708. voc_path_type = RX_PATH;
  22709. else
  22710. voc_path_type = TX_PATH;
  22711. voc_set_route_flag(session_id, voc_path_type, 1);
  22712. memset(&voc_be_media_format, 0,
  22713. sizeof(struct media_format_info));
  22714. voc_be_media_format.port_id = bedai->port_id;
  22715. voc_be_media_format.num_channels = bedai->channel;
  22716. voc_be_media_format.sample_rate = bedai->sample_rate;
  22717. voc_be_media_format.bits_per_sample = bedai->format;
  22718. /* Defaulting this to 1 for voice call usecases */
  22719. voc_be_media_format.channel_mapping[0] = 1;
  22720. voc_set_device_config(session_id, voc_path_type,
  22721. &voc_be_media_format);
  22722. if (voc_get_route_flag(session_id, RX_PATH) &&
  22723. voc_get_route_flag(session_id, TX_PATH))
  22724. voc_enable_device(session_id);
  22725. }
  22726. }
  22727. /* Check if backend is an external ec ref port and set as needed */
  22728. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  22729. memset(&voc_be_media_format, 0,
  22730. sizeof(struct media_format_info));
  22731. /* Get format info for ec ref port from msm_bedais[] */
  22732. voc_be_media_format.port_id = bedai->port_id;
  22733. voc_be_media_format.num_channels = bedai->channel;
  22734. voc_be_media_format.bits_per_sample = bedai->format;
  22735. voc_be_media_format.sample_rate = bedai->sample_rate;
  22736. /* Defaulting this to 1 for voice call usecases */
  22737. voc_be_media_format.channel_mapping[0] = 1;
  22738. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  22739. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  22740. __func__, voc_be_media_format.port_id,
  22741. voc_be_media_format.num_channels,
  22742. voc_be_media_format.bits_per_sample,
  22743. voc_be_media_format.sample_rate);
  22744. }
  22745. done:
  22746. mutex_unlock(&routing_lock);
  22747. return 0;
  22748. }
  22749. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  22750. int fe_id)
  22751. {
  22752. int index, topo_id, be_idx;
  22753. unsigned long pp_config = 0;
  22754. bool mute_on;
  22755. int latency, session_type;
  22756. bool compr_passthr_mode = true;
  22757. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  22758. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  22759. pr_err("%s: Device pp params on invalid port %d\n",
  22760. __func__, port_id);
  22761. return -EINVAL;
  22762. }
  22763. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22764. if (port_id == msm_bedais[be_idx].port_id)
  22765. break;
  22766. }
  22767. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22768. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22769. return -EINVAL;
  22770. }
  22771. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22772. if (msm_bedais_pp_params[index].port_id == port_id)
  22773. break;
  22774. }
  22775. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22776. pr_err("%s: Invalid backend pp params index %d\n",
  22777. __func__, index);
  22778. return -EINVAL;
  22779. }
  22780. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  22781. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  22782. pr_err("%s: Invalid passthrough topology 0x%x\n",
  22783. __func__, topo_id);
  22784. return -EINVAL;
  22785. }
  22786. session_type =
  22787. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22788. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22789. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  22790. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  22791. compr_passthr_mode = false;
  22792. pp_config = msm_bedais_pp_params[index].pp_params_config;
  22793. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  22794. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22795. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  22796. mute_on = msm_bedais_pp_params[index].mute_on;
  22797. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22798. adm_send_compressed_device_mute(port_id,
  22799. copp_idx,
  22800. mute_on);
  22801. }
  22802. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  22803. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22804. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  22805. &pp_config);
  22806. latency = msm_bedais_pp_params[index].latency;
  22807. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22808. adm_send_compressed_device_latency(port_id,
  22809. copp_idx,
  22810. latency);
  22811. }
  22812. return 0;
  22813. }
  22814. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  22815. {
  22816. uint32_t topology = NULL_COPP_TOPOLOGY;
  22817. void *cal_info = NULL;
  22818. uint32_t size = 0;
  22819. /* Retrieve cal_info size from cal data*/
  22820. size = data_size - sizeof(struct audio_cal_type_basic);
  22821. cal_info = kzalloc(size, GFP_KERNEL);
  22822. if (!cal_info)
  22823. goto done;
  22824. memcpy(cal_info,
  22825. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  22826. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  22827. kfree(cal_info);
  22828. cal_info = NULL;
  22829. done:
  22830. pr_debug("%s: Using topology %d\n", __func__, topology);
  22831. return topology;
  22832. }
  22833. static void msm_routing_load_topology(size_t data_size, void *data)
  22834. {
  22835. uint32_t topology_id;
  22836. int ret = -EINVAL;
  22837. topology_id = msm_routing_get_topology(data_size, data);
  22838. if (topology_id != NULL_COPP_TOPOLOGY)
  22839. ret = q6core_load_unload_topo_modules(topology_id,
  22840. CORE_LOAD_TOPOLOGY);
  22841. if (ret < 0)
  22842. pr_debug("%s %d load topology failed\n",
  22843. __func__, topology_id);
  22844. }
  22845. static void msm_routing_unload_topology(uint32_t topology_id)
  22846. {
  22847. int ret = -EINVAL;
  22848. if (topology_id != NULL_COPP_TOPOLOGY)
  22849. ret = q6core_load_unload_topo_modules(topology_id,
  22850. CORE_UNLOAD_TOPOLOGY);
  22851. if (ret < 0)
  22852. pr_debug("%s %d unload topology failed\n",
  22853. __func__, topology_id);
  22854. }
  22855. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22856. struct snd_ctl_elem_value *ucontrol)
  22857. {
  22858. int pp_id = ucontrol->value.integer.value[0];
  22859. int port_id = 0;
  22860. int index, be_idx, i, topo_id, idx;
  22861. bool mute;
  22862. int latency, session_type;
  22863. bool compr_passthr_mode = true;
  22864. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  22865. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22866. port_id = msm_bedais[be_idx].port_id;
  22867. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  22868. break;
  22869. }
  22870. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22871. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22872. return -EINVAL;
  22873. }
  22874. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22875. if (msm_bedais_pp_params[index].port_id == port_id)
  22876. break;
  22877. }
  22878. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22879. pr_err("%s: Invalid pp params backend index %d\n",
  22880. __func__, index);
  22881. return -EINVAL;
  22882. }
  22883. session_type =
  22884. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22885. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22886. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22887. MSM_FRONTEND_DAI_MM_SIZE) {
  22888. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  22889. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  22890. compr_passthr_mode = false;
  22891. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22892. unsigned long copp =
  22893. session_copp_map[i]
  22894. [SESSION_TYPE_RX][be_idx];
  22895. if (!test_bit(idx, &copp))
  22896. continue;
  22897. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  22898. idx);
  22899. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  22900. continue;
  22901. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  22902. __func__, port_id, copp, msm_bedais[be_idx].active,
  22903. fe_dai_map[i][session_type].passthr_mode);
  22904. switch (pp_id) {
  22905. case ADM_PP_PARAM_MUTE_ID:
  22906. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22907. mute = ucontrol->value.integer.value[1] ? true : false;
  22908. msm_bedais_pp_params[index].mute_on = mute;
  22909. set_bit(ADM_PP_PARAM_MUTE_BIT,
  22910. &msm_bedais_pp_params[index].pp_params_config);
  22911. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22912. adm_send_compressed_device_mute(port_id,
  22913. idx, mute);
  22914. break;
  22915. case ADM_PP_PARAM_LATENCY_ID:
  22916. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22917. msm_bedais_pp_params[index].latency =
  22918. ucontrol->value.integer.value[1];
  22919. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  22920. &msm_bedais_pp_params[index].pp_params_config);
  22921. latency = msm_bedais_pp_params[index].latency =
  22922. ucontrol->value.integer.value[1];
  22923. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22924. adm_send_compressed_device_latency(port_id,
  22925. idx, latency);
  22926. break;
  22927. default:
  22928. pr_info("%s, device pp param %d not supported\n",
  22929. __func__, pp_id);
  22930. break;
  22931. }
  22932. }
  22933. }
  22934. return 0;
  22935. }
  22936. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22937. struct snd_ctl_elem_value *ucontrol)
  22938. {
  22939. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  22940. return 0;
  22941. }
  22942. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  22943. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  22944. 0, 3, msm_routing_get_device_pp_params_mixer,
  22945. msm_routing_put_device_pp_params_mixer),
  22946. };
  22947. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  22948. struct snd_ctl_elem_value *ucontrol)
  22949. {
  22950. ucontrol->value.integer.value[0] =
  22951. core_get_license_status(ASM_MEDIA_FMT_APTX);
  22952. pr_debug("%s: status %ld\n", __func__,
  22953. ucontrol->value.integer.value[0]);
  22954. return 0;
  22955. }
  22956. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  22957. struct snd_ctl_elem_value *ucontrol)
  22958. {
  22959. int32_t status = 0;
  22960. status = core_set_license(ucontrol->value.integer.value[0],
  22961. APTX_CLASSIC_DEC_LICENSE_ID);
  22962. pr_debug("%s: status %d\n", __func__, status);
  22963. return status;
  22964. }
  22965. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  22966. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  22967. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  22968. msm_aptx_dec_license_control_put),
  22969. };
  22970. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  22971. struct snd_ctl_elem_info *uinfo)
  22972. {
  22973. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22974. uinfo->count = sizeof(be_dai_name_table);
  22975. return 0;
  22976. }
  22977. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  22978. unsigned int __user *bytes,
  22979. unsigned int size)
  22980. {
  22981. int i;
  22982. int ret = 0;
  22983. if (size < sizeof(be_dai_name_table)) {
  22984. pr_err("%s: invalid size %d requested, returning\n",
  22985. __func__, size);
  22986. ret = -EINVAL;
  22987. goto done;
  22988. }
  22989. /*
  22990. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  22991. * needed when adding new backends
  22992. */
  22993. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22994. be_dai_name_table[i].be_id = i;
  22995. strlcpy(be_dai_name_table[i].be_name,
  22996. msm_bedais[i].name,
  22997. LPASS_BE_NAME_MAX_LENGTH);
  22998. }
  22999. ret = copy_to_user(bytes, &be_dai_name_table,
  23000. sizeof(be_dai_name_table));
  23001. if (ret) {
  23002. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  23003. ret = -EFAULT;
  23004. }
  23005. done:
  23006. return ret;
  23007. }
  23008. static const struct snd_kcontrol_new
  23009. msm_routing_be_dai_name_table_mixer_controls[] = {
  23010. {
  23011. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  23012. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  23013. .info = msm_routing_be_dai_name_table_info,
  23014. .name = "Backend DAI Name Table",
  23015. .tlv.c = snd_soc_bytes_tlv_callback,
  23016. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  23017. .max = sizeof(be_dai_name_table),
  23018. .get = msm_routing_be_dai_name_table_tlv_get,
  23019. }
  23020. },
  23021. };
  23022. static int msm_routing_stereo_channel_reverse_control_get(
  23023. struct snd_kcontrol *kcontrol,
  23024. struct snd_ctl_elem_value *ucontrol)
  23025. {
  23026. ucontrol->value.integer.value[0] = swap_ch;
  23027. pr_debug("%s: Swap channel value: %ld\n", __func__,
  23028. ucontrol->value.integer.value[0]);
  23029. return 0;
  23030. }
  23031. static int msm_routing_stereo_channel_reverse_control_put(
  23032. struct snd_kcontrol *kcontrol,
  23033. struct snd_ctl_elem_value *ucontrol)
  23034. {
  23035. int i, idx, be_index, port_id;
  23036. int ret = 0;
  23037. unsigned long copp;
  23038. pr_debug("%s Swap channel value:%ld\n", __func__,
  23039. ucontrol->value.integer.value[0]);
  23040. swap_ch = ucontrol->value.integer.value[0];
  23041. mutex_lock(&routing_lock);
  23042. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  23043. port_id = msm_bedais[be_index].port_id;
  23044. if (!msm_bedais[be_index].active)
  23045. continue;
  23046. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  23047. MSM_FRONTEND_DAI_MM_SIZE) {
  23048. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  23049. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  23050. if (!test_bit(idx, &copp))
  23051. continue;
  23052. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  23053. __func__, port_id, idx);
  23054. ret = adm_swap_speaker_channels(
  23055. port_id, idx,
  23056. msm_bedais[be_index].sample_rate,
  23057. swap_ch);
  23058. if (ret) {
  23059. pr_err("%s:Swap_channel failed, err=%d\n",
  23060. __func__, ret);
  23061. goto done;
  23062. }
  23063. }
  23064. }
  23065. }
  23066. done:
  23067. mutex_unlock(&routing_lock);
  23068. return ret;
  23069. }
  23070. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  23071. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  23072. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  23073. msm_routing_stereo_channel_reverse_control_put),
  23074. };
  23075. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  23076. struct snd_ctl_elem_info *uinfo)
  23077. {
  23078. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  23079. uinfo->count = 1;
  23080. return 0;
  23081. }
  23082. static int msm_routing_instance_id_support_put(
  23083. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  23084. {
  23085. bool supported = ucontrol->value.integer.value[0] ? true : false;
  23086. q6common_update_instance_id_support(supported);
  23087. return 0;
  23088. }
  23089. static int msm_routing_instance_id_support_get(
  23090. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  23091. {
  23092. bool supported = false;
  23093. supported = q6common_is_instance_id_supported();
  23094. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  23095. return 0;
  23096. }
  23097. static const struct snd_kcontrol_new
  23098. msm_routing_feature_support_mixer_controls[] = {
  23099. {
  23100. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  23101. SNDRV_CTL_ELEM_ACCESS_WRITE,
  23102. .info = msm_routing_instance_id_support_info,
  23103. .name = "Instance ID Support",
  23104. .put = msm_routing_instance_id_support_put,
  23105. .get = msm_routing_instance_id_support_get,
  23106. },
  23107. };
  23108. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  23109. .hw_params = msm_pcm_routing_hw_params,
  23110. .close = msm_pcm_routing_close,
  23111. .prepare = msm_pcm_routing_prepare,
  23112. };
  23113. /* Not used but frame seems to require it */
  23114. static int msm_routing_probe(struct snd_soc_component *component)
  23115. {
  23116. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  23117. ARRAY_SIZE(msm_qdsp6_widgets));
  23118. snd_soc_dapm_add_routes(&component->dapm, intercon,
  23119. ARRAY_SIZE(intercon));
  23120. snd_soc_dapm_new_widgets(component->dapm.card);
  23121. snd_soc_add_component_controls(component, lsm_controls,
  23122. ARRAY_SIZE(lsm_controls));
  23123. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  23124. ARRAY_SIZE(aanc_slim_0_rx_mux));
  23125. snd_soc_add_component_controls(component, aanc_noise_level,
  23126. ARRAY_SIZE(aanc_noise_level));
  23127. snd_soc_add_component_controls(component, msm_voc_session_controls,
  23128. ARRAY_SIZE(msm_voc_session_controls));
  23129. snd_soc_add_component_controls(component, app_type_cfg_controls,
  23130. ARRAY_SIZE(app_type_cfg_controls));
  23131. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  23132. ARRAY_SIZE(lsm_app_type_cfg_controls));
  23133. snd_soc_add_component_controls(component, module_cfg_controls,
  23134. ARRAY_SIZE(module_cfg_controls));
  23135. snd_soc_add_component_controls(component,
  23136. stereo_to_custom_stereo_controls,
  23137. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  23138. snd_soc_add_component_controls(component, ec_ref_param_controls,
  23139. ARRAY_SIZE(ec_ref_param_controls));
  23140. snd_soc_add_component_controls(component, channel_mixer_controls,
  23141. ARRAY_SIZE(channel_mixer_controls));
  23142. msm_qti_pp_add_controls(component);
  23143. msm_dts_srs_tm_add_controls(component);
  23144. msm_dolby_dap_add_controls(component);
  23145. snd_soc_add_component_controls(component,
  23146. use_ds1_or_ds2_controls,
  23147. ARRAY_SIZE(use_ds1_or_ds2_controls));
  23148. snd_soc_add_component_controls(component,
  23149. device_pp_params_mixer_controls,
  23150. ARRAY_SIZE(device_pp_params_mixer_controls));
  23151. snd_soc_add_component_controls(component,
  23152. msm_routing_be_dai_name_table_mixer_controls,
  23153. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  23154. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  23155. ARRAY_SIZE(msm_source_tracking_controls));
  23156. snd_soc_add_component_controls(component, adm_channel_config_controls,
  23157. ARRAY_SIZE(adm_channel_config_controls));
  23158. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  23159. ARRAY_SIZE(aptx_dec_license_controls));
  23160. snd_soc_add_component_controls(component,
  23161. stereo_channel_reverse_control,
  23162. ARRAY_SIZE(stereo_channel_reverse_control));
  23163. snd_soc_add_component_controls(
  23164. component, msm_routing_feature_support_mixer_controls,
  23165. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  23166. return 0;
  23167. }
  23168. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  23169. {
  23170. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  23171. }
  23172. void msm_routing_pcm_free(struct snd_pcm *pcm)
  23173. {
  23174. msm_pcm_routing_hwdep_free(pcm);
  23175. }
  23176. static struct snd_soc_component_driver msm_soc_routing_component = {
  23177. .name = DRV_NAME,
  23178. .ops = &msm_routing_pcm_ops,
  23179. .probe = msm_routing_probe,
  23180. .pcm_new = msm_routing_pcm_new,
  23181. .pcm_free = msm_routing_pcm_free,
  23182. };
  23183. static int msm_routing_pcm_probe(struct platform_device *pdev)
  23184. {
  23185. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  23186. return snd_soc_register_component(&pdev->dev,
  23187. &msm_soc_routing_component,
  23188. NULL, 0);
  23189. }
  23190. static int msm_routing_pcm_remove(struct platform_device *pdev)
  23191. {
  23192. snd_soc_unregister_component(&pdev->dev);
  23193. return 0;
  23194. }
  23195. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  23196. {.compatible = "qcom,msm-pcm-routing"},
  23197. {}
  23198. };
  23199. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  23200. static struct platform_driver msm_routing_pcm_driver = {
  23201. .driver = {
  23202. .name = "msm-pcm-routing",
  23203. .owner = THIS_MODULE,
  23204. .of_match_table = msm_pcm_routing_dt_match,
  23205. },
  23206. .probe = msm_routing_pcm_probe,
  23207. .remove = msm_routing_pcm_remove,
  23208. };
  23209. int msm_routing_check_backend_enabled(int fedai_id)
  23210. {
  23211. int i;
  23212. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  23213. /* bad ID assigned in machine driver */
  23214. pr_err("%s: bad MM ID\n", __func__);
  23215. return 0;
  23216. }
  23217. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  23218. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  23219. return msm_bedais[i].active;
  23220. }
  23221. return 0;
  23222. }
  23223. static int get_cal_type_index(int32_t cal_type)
  23224. {
  23225. int ret = -EINVAL;
  23226. switch (cal_type) {
  23227. case ADM_TOPOLOGY_CAL_TYPE:
  23228. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  23229. break;
  23230. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  23231. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  23232. break;
  23233. default:
  23234. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  23235. }
  23236. return ret;
  23237. }
  23238. static int msm_routing_set_cal(int32_t cal_type,
  23239. size_t data_size, void *data)
  23240. {
  23241. int ret = 0;
  23242. int cal_index;
  23243. pr_debug("%s\n", __func__);
  23244. cal_index = get_cal_type_index(cal_type);
  23245. if (cal_index < 0) {
  23246. pr_err("%s: Could not get cal index %d\n",
  23247. __func__, cal_index);
  23248. ret = -EINVAL;
  23249. goto done;
  23250. }
  23251. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  23252. if (ret < 0) {
  23253. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  23254. __func__, ret, cal_type);
  23255. ret = -EINVAL;
  23256. goto done;
  23257. }
  23258. /* Pre-load if it is ADM topology */
  23259. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  23260. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  23261. msm_routing_load_topology(data_size, data);
  23262. }
  23263. done:
  23264. return ret;
  23265. }
  23266. static void msm_routing_delete_cal_data(void)
  23267. {
  23268. pr_debug("%s\n", __func__);
  23269. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  23270. }
  23271. static int msm_routing_init_cal_data(void)
  23272. {
  23273. int ret = 0;
  23274. struct cal_type_info cal_type_info[] = {
  23275. {{ADM_TOPOLOGY_CAL_TYPE,
  23276. {NULL, NULL, NULL,
  23277. msm_routing_set_cal, NULL, NULL} },
  23278. {NULL, NULL, cal_utils_match_buf_num} },
  23279. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  23280. {NULL, NULL, NULL,
  23281. msm_routing_set_cal, NULL, NULL} },
  23282. {NULL, NULL, cal_utils_match_buf_num} },
  23283. };
  23284. pr_debug("%s\n", __func__);
  23285. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  23286. &cal_type_info[0]);
  23287. if (ret < 0) {
  23288. pr_err("%s: could not create cal type!\n",
  23289. __func__);
  23290. ret = -EINVAL;
  23291. goto err;
  23292. }
  23293. return ret;
  23294. err:
  23295. msm_routing_delete_cal_data();
  23296. return ret;
  23297. }
  23298. int __init msm_soc_routing_platform_init(void)
  23299. {
  23300. mutex_init(&routing_lock);
  23301. if (msm_routing_init_cal_data())
  23302. pr_err("%s: could not init cal data!\n", __func__);
  23303. afe_set_routing_callback(
  23304. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  23305. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  23306. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  23307. return platform_driver_register(&msm_routing_pcm_driver);
  23308. }
  23309. void msm_soc_routing_platform_exit(void)
  23310. {
  23311. msm_routing_delete_cal_data();
  23312. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  23313. mutex_destroy(&routing_lock);
  23314. platform_driver_unregister(&msm_routing_pcm_driver);
  23315. }
  23316. MODULE_DESCRIPTION("MSM routing platform driver");
  23317. MODULE_LICENSE("GPL v2");