msm-pcm-routing-v2.c 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define LSM_FUNCTION_TEXT "LSM Function"
  113. static const char * const lsm_port_text[] = {
  114. "None",
  115. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  116. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  117. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  118. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  119. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  120. };
  121. struct msm_pcm_route_bdai_pp_params {
  122. u16 port_id; /* AFE port ID */
  123. unsigned long pp_params_config;
  124. bool mute_on;
  125. int latency;
  126. };
  127. static struct msm_pcm_route_bdai_pp_params
  128. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  129. {HDMI_RX, 0, 0, 0},
  130. {DISPLAY_PORT_RX, 0, 0, 0},
  131. };
  132. /*
  133. * The be_dai_name_table is passed to HAL so that it can specify the
  134. * BE ID for the BE it wants to enable based on the name. Thus there
  135. * is a matching table and structure in HAL that need to be updated
  136. * if any changes to these are made.
  137. */
  138. struct msm_pcm_route_bdai_name {
  139. unsigned int be_id;
  140. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  141. };
  142. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  143. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  144. int fe_id);
  145. static void msm_routing_load_topology(size_t data_size, void *data);
  146. static void msm_routing_unload_topology(uint32_t topology_id);
  147. static int msm_routing_get_bit_width(unsigned int format)
  148. {
  149. int bit_width;
  150. switch (format) {
  151. case SNDRV_PCM_FORMAT_S32_LE:
  152. bit_width = 32;
  153. break;
  154. case SNDRV_PCM_FORMAT_S24_LE:
  155. case SNDRV_PCM_FORMAT_S24_3LE:
  156. bit_width = 24;
  157. break;
  158. case SNDRV_PCM_FORMAT_S16_LE:
  159. default:
  160. bit_width = 16;
  161. }
  162. return bit_width;
  163. }
  164. static bool msm_is_resample_needed(int input_sr, int output_sr)
  165. {
  166. bool rc = false;
  167. if (input_sr != output_sr)
  168. rc = true;
  169. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  170. (rc ? "oh yes" : "not really"),
  171. input_sr, output_sr);
  172. return rc;
  173. }
  174. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  175. int channels)
  176. {
  177. int rc = 0;
  178. switch (topology) {
  179. case SRS_TRUMEDIA_TOPOLOGY_ID:
  180. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  181. msm_dts_srs_tm_init(port_id, copp_idx);
  182. break;
  183. case DS2_ADM_COPP_TOPOLOGY_ID:
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  185. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  186. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  187. is_custom_stereo_on);
  188. if (rc < 0)
  189. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  190. __func__, topology, port_id,
  191. is_custom_stereo_on, rc);
  192. break;
  193. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  194. if (is_ds2_on) {
  195. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  196. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  197. is_custom_stereo_on);
  198. if (rc < 0)
  199. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  200. __func__, topology, port_id, rc);
  201. } else {
  202. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  203. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  204. is_custom_stereo_on);
  205. if (rc < 0)
  206. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  207. __func__, topology, port_id, rc);
  208. }
  209. break;
  210. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  211. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  212. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  213. if (rc < 0)
  214. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  215. __func__, topology, port_id, copp_idx, rc);
  216. break;
  217. default:
  218. /* custom topology specific feature param handlers */
  219. break;
  220. }
  221. }
  222. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  223. {
  224. switch (topology) {
  225. case SRS_TRUMEDIA_TOPOLOGY_ID:
  226. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  227. msm_dts_srs_tm_deinit(port_id);
  228. break;
  229. case DS2_ADM_COPP_TOPOLOGY_ID:
  230. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  231. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  232. msm_ds2_dap_deinit(port_id);
  233. break;
  234. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  235. if (is_ds2_on) {
  236. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  237. msm_ds2_dap_deinit(port_id);
  238. } else {
  239. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_dolby_dap_deinit(port_id);
  241. }
  242. break;
  243. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  244. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  245. msm_qti_pp_asphere_deinit(port_id);
  246. break;
  247. default:
  248. /* custom topology specific feature deinit handlers */
  249. break;
  250. }
  251. }
  252. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  253. int path_type, int perf_mode)
  254. {
  255. int itr = 0, rc = 0;
  256. if ((path_type == ADM_PATH_PLAYBACK) &&
  257. (perf_mode == LEGACY_PCM_MODE) &&
  258. is_custom_stereo_on) {
  259. for (itr = 0; itr < payload.num_copps; itr++) {
  260. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  261. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  262. continue;
  263. }
  264. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  265. payload.port_id[itr],
  266. payload.copp_idx[itr],
  267. payload.session_id,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE);
  272. if (rc < 0)
  273. pr_err("%s: err setting custom stereo\n",
  274. __func__);
  275. }
  276. }
  277. }
  278. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  279. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  280. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  281. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  282. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  283. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  284. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  285. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  286. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  287. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  288. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  289. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_AFE_PCM_RX},
  291. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_TX},
  293. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AUXPCM_RX},
  295. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_TX},
  297. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_VOICE_PLAYBACK_TX},
  299. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE2_PLAYBACK_TX},
  301. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_INCALL_RECORD_RX},
  303. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_TX},
  305. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  306. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  307. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  308. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  309. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  310. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  311. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  312. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  313. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  314. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  315. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  316. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  317. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  318. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  319. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  320. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  321. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  322. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  323. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  327. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_QUAT_MI2S_RX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_TX},
  331. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_SEC_MI2S_RX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_TX},
  335. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_PRI_MI2S_RX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_TX},
  339. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_TERT_MI2S_RX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_TX},
  343. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_AUDIO_I2S_RX},
  345. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_SEC_AUXPCM_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_TX},
  349. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_PRI_SPDIF_RX},
  351. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_SEC_MI2S_RX_SD1},
  353. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_QUIN_MI2S_RX},
  355. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_TX},
  357. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_SENARY_MI2S_TX},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_RX_0},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_TX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_RX_1},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_TX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_RX_2},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_TX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_RX_3},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_TX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_RX_4},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_TX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_RX_5},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_TX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_RX_6},
  385. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_TX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_RX_7},
  389. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_TX_7},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_RX_0},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_TX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_RX_1},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_TX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_RX_2},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_TX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_RX_3},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_TX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_RX_4},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_TX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_RX_5},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_TX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_RX_6},
  417. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_TX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_RX_7},
  421. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_TX_7},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_RX_0},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_TX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_RX_1},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_TX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_RX_2},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_TX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_RX_3},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_TX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_RX_4},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_TX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_RX_5},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_TX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_RX_6},
  449. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_TX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_RX_7},
  453. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_TX_7},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_RX_0},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_TX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_RX_1},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_TX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_RX_2},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_TX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_RX_3},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_TX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_RX_4},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_TX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_RX_5},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_TX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_RX_6},
  481. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_TX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_RX_7},
  485. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_TX_7},
  487. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_RX_0},
  489. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_TX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_RX_1},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_TX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_RX_2},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_TX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_RX_3},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_TX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_RX_4},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_TX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_RX_5},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_TX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_RX_6},
  513. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_TX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_RX_7},
  517. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_TX_7},
  519. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_SEN_TDM_RX_0},
  521. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_TX_0},
  523. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_RX_1},
  525. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_TX_1},
  527. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_RX_2},
  529. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_TX_2},
  531. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_RX_3},
  533. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_TX_3},
  535. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_RX_4},
  537. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_TX_4},
  539. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_RX_5},
  541. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_TX_5},
  543. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_RX_6},
  545. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_TX_6},
  547. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_RX_7},
  549. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_TX_7},
  551. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT_BT_A2DP_RX},
  553. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_USB_AUDIO_RX},
  555. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_TX},
  557. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_DISPLAY_PORT},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT1},
  561. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_TERT_AUXPCM_RX},
  563. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_TX},
  565. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_QUAT_AUXPCM_RX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_TX},
  569. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUIN_AUXPCM_RX},
  571. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_TX},
  573. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_INT0_MI2S_RX},
  575. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_TX},
  577. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT1_MI2S_RX},
  579. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_TX},
  581. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT2_MI2S_RX},
  583. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_TX},
  585. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT3_MI2S_RX},
  587. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_TX},
  589. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT4_MI2S_RX},
  591. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_TX},
  593. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT5_MI2S_RX},
  595. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_TX},
  597. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT6_MI2S_RX},
  599. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_TX},
  601. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_SEN_AUXPCM_RX},
  603. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_TX},
  605. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SENARY_MI2S_RX},
  607. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_WSA_CDC_DMA_RX_0},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_TX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_RX_1},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_TX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_2},
  617. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_VA_CDC_DMA_TX_0},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_1},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_2},
  623. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_RX_CDC_DMA_RX_0},
  625. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_TX_CDC_DMA_TX_0},
  627. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_RX_CDC_DMA_RX_1},
  629. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_TX_CDC_DMA_TX_1},
  631. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_RX_CDC_DMA_RX_2},
  633. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_TX_CDC_DMA_TX_2},
  635. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_RX_CDC_DMA_RX_3},
  637. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_TX_CDC_DMA_TX_3},
  639. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_RX_CDC_DMA_RX_4},
  641. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_TX_CDC_DMA_TX_4},
  643. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_RX_CDC_DMA_RX_5},
  645. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_TX_CDC_DMA_TX_5},
  647. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_RX_CDC_DMA_RX_6},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_7},
  651. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_PRI_SPDIF_TX},
  653. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_SEC_SPDIF_RX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_TX},
  657. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  658. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  659. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  660. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_PRI_META_MI2S_RX},
  662. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_SEC_META_MI2S_RX},
  664. };
  665. /* Track ASM playback & capture sessions of DAI
  666. * Track LSM listen sessions
  667. */
  668. static struct msm_pcm_routing_fdai_data
  669. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  670. /* MULTIMEDIA1 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  673. /* MULTIMEDIA2 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  676. /* MULTIMEDIA3 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA4 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA5 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA6 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA7*/
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA8 */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA9 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* MULTIMEDIA10 */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* MULTIMEDIA11 */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* MULTIMEDIA12 */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* MULTIMEDIA13 */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* MULTIMEDIA14 */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* MULTIMEDIA15 */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* MULTIMEDIA16 */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* MULTIMEDIA17 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* MULTIMEDIA18 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* MULTIMEDIA19 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* MULTIMEDIA20 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* MULTIMEDIA21 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* MULTIMEDIA22 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* MULTIMEDIA26 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* MULTIMEDIA27 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* MULTIMEDIA28 */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* MULTIMEDIA29 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* MULTIMEDIA30 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. /* VOIP */
  752. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  753. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  754. /* AFE_RX */
  755. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  756. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  757. /* AFE_TX */
  758. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  759. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  760. /* VOICE_STUB */
  761. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  762. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  763. /* DTMF_RX */
  764. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  765. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  766. /* QCHAT */
  767. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  768. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  769. /* VOLTE_STUB */
  770. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  771. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  772. /* LSM1 */
  773. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  774. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  775. /* LSM2 */
  776. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  777. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  778. /* LSM3 */
  779. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  780. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  781. /* LSM4 */
  782. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  783. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  784. /* LSM5 */
  785. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  786. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  787. /* LSM6 */
  788. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  789. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  790. /* LSM7 */
  791. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  792. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  793. /* LSM8 */
  794. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  795. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  796. /* VOICE2_STUB */
  797. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  798. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  799. /* VOICEMMODE1 */
  800. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  801. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  802. /* VOICEMMODE2 */
  803. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  804. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  805. };
  806. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  807. [MSM_BACKEND_DAI_MAX];
  808. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  809. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  810. static struct msm_pcm_stream_app_type_cfg
  811. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  812. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  813. /* The caller of this should acquire routing lock */
  814. void msm_pcm_routing_get_bedai_info(int be_idx,
  815. struct msm_pcm_routing_bdai_data *be_dai)
  816. {
  817. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  818. memcpy(be_dai, &msm_bedais[be_idx],
  819. sizeof(struct msm_pcm_routing_bdai_data));
  820. }
  821. /* The caller of this should acquire routing lock */
  822. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  823. struct msm_pcm_routing_fdai_data *fe_dai)
  824. {
  825. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  826. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  827. sizeof(struct msm_pcm_routing_fdai_data));
  828. }
  829. void msm_pcm_routing_acquire_lock(void)
  830. {
  831. mutex_lock(&routing_lock);
  832. }
  833. void msm_pcm_routing_release_lock(void)
  834. {
  835. mutex_unlock(&routing_lock);
  836. }
  837. static int msm_pcm_routing_get_app_type_idx(int app_type)
  838. {
  839. int idx;
  840. pr_debug("%s: app_type: %d\n", __func__, app_type);
  841. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  842. if (app_type_cfg[idx].app_type == app_type)
  843. return idx;
  844. }
  845. pr_info("%s: App type not available, fallback to default\n", __func__);
  846. return 0;
  847. }
  848. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  849. {
  850. int idx;
  851. pr_debug("%s: app_type: %d\n", __func__, app_type);
  852. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  853. if (lsm_app_type_cfg[idx].app_type == app_type)
  854. return idx;
  855. }
  856. pr_debug("%s: App type not available, fallback to default\n", __func__);
  857. return 0;
  858. }
  859. static int get_port_id(int port_id)
  860. {
  861. int ret = port_id;
  862. if (port_id == AFE_LOOPBACK_TX) {
  863. /*
  864. * Return afe_loopback_tx_port_id if set. Else return
  865. * msm_ec_ref_port_id to maintain backward compatibility.
  866. */
  867. if (afe_loopback_tx_port_id != -1)
  868. ret = afe_loopback_tx_port_id;
  869. else
  870. ret = msm_ec_ref_port_id;
  871. }
  872. return ret;
  873. }
  874. static bool is_mm_lsm_fe_id(int fe_id)
  875. {
  876. bool rc = true;
  877. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  878. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  879. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  880. rc = false;
  881. }
  882. return rc;
  883. }
  884. /*
  885. * msm_pcm_routing_send_chmix_cfg:
  886. * send the channel mixer command to mix the input channels
  887. * into output channels.
  888. *
  889. * @fe_id: front end id
  890. * @ip_channel_cnt: input channel count
  891. * @op_channel_cnt: output channel count
  892. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  893. * @session_type: indicates session is of type TX or RX
  894. * @stream_type: indicates either Audio or Listen stream type
  895. */
  896. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  897. int op_channel_cnt, int *ch_wght_coeff,
  898. int session_type, int stream_type)
  899. {
  900. int rc = 0, idx = 0;
  901. int be_index = 0, port_id;
  902. unsigned int session_id = 0;
  903. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  904. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  905. stream_type);
  906. if (!is_mm_lsm_fe_id(fe_id)) {
  907. /* bad ID assigned in machine driver */
  908. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  909. return -EINVAL;
  910. }
  911. if (ch_wght_coeff == NULL) {
  912. pr_err("%s: Null channel weightage coefficients passed\n",
  913. __func__);
  914. return -EINVAL;
  915. }
  916. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  917. port_id = msm_bedais[be_index].port_id;
  918. if (!msm_bedais[be_index].active ||
  919. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  920. continue;
  921. session_id = fe_dai_map[fe_id][session_type].strm_id;
  922. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  923. unsigned long copp =
  924. session_copp_map[fe_id][session_type][be_index];
  925. if (!test_bit(idx, &copp))
  926. continue;
  927. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  928. session_id, ip_channel_cnt,
  929. op_channel_cnt, ch_wght_coeff,
  930. session_type, stream_type);
  931. if (rc < 0)
  932. pr_err("%s: err setting channel mix config\n",
  933. __func__);
  934. }
  935. }
  936. return 0;
  937. }
  938. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  939. /**
  940. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  941. * setting before use case start.
  942. *
  943. * @fe_id: frontend idx
  944. * @type: stream direction type
  945. * @params: parameters of channel mixer setting
  946. *
  947. * Return 0 for success
  948. */
  949. int msm_pcm_routing_set_channel_mixer_cfg(
  950. int fe_id, int type,
  951. struct msm_pcm_channel_mixer *params)
  952. {
  953. int i, j = 0;
  954. channel_mixer_v2[fe_id][type].enable = params->enable;
  955. channel_mixer_v2[fe_id][type].rule = params->rule;
  956. channel_mixer_v2[fe_id][type].input_channel =
  957. params->input_channel;
  958. channel_mixer_v2[fe_id][type].output_channel =
  959. params->output_channel;
  960. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  961. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  962. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  963. params->in_ch_map[i];
  964. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  965. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  966. params->out_ch_map[i];
  967. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  968. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  969. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  970. params->channel_weight[i][j];
  971. channel_mixer_v2[fe_id][type].override_in_ch_map =
  972. params->override_in_ch_map;
  973. channel_mixer_v2[fe_id][type].override_out_ch_map =
  974. params->override_out_ch_map;
  975. return 0;
  976. }
  977. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  978. int msm_pcm_routing_reg_stream_app_type_cfg(
  979. int fedai_id, int session_type, int be_id,
  980. struct msm_pcm_stream_app_type_cfg *cfg_data)
  981. {
  982. int ret = 0;
  983. if (cfg_data == NULL) {
  984. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  985. ret = -EINVAL;
  986. goto done;
  987. }
  988. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  989. __func__, fedai_id, session_type, be_id,
  990. cfg_data->app_type, cfg_data->acdb_dev_id,
  991. cfg_data->sample_rate);
  992. if (!is_mm_lsm_fe_id(fedai_id)) {
  993. pr_err("%s: Invalid machine driver ID %d\n",
  994. __func__, fedai_id);
  995. ret = -EINVAL;
  996. goto done;
  997. }
  998. if (session_type != SESSION_TYPE_RX &&
  999. session_type != SESSION_TYPE_TX) {
  1000. pr_err("%s: Invalid session type %d\n",
  1001. __func__, session_type);
  1002. ret = -EINVAL;
  1003. goto done;
  1004. }
  1005. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1006. pr_err("%s: Received out of bounds be_id %d\n",
  1007. __func__, be_id);
  1008. ret = -EINVAL;
  1009. goto done;
  1010. }
  1011. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1012. /*
  1013. * Store the BE ID of the configuration information set as the latest so
  1014. * the get mixer control knows what to return.
  1015. */
  1016. last_be_id_configured[fedai_id][session_type] = be_id;
  1017. done:
  1018. return ret;
  1019. }
  1020. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1021. /**
  1022. * msm_pcm_routing_get_stream_app_type_cfg
  1023. *
  1024. * Receives fedai_id, session_type, be_id, and populates app_type,
  1025. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1026. * -EINVAL and does not alter passed values.
  1027. *
  1028. * fedai_id - Passed value, front end ID for which app type config is wanted
  1029. * session_type - Passed value, session type for which app type config
  1030. * is wanted
  1031. * be_id - Returned value, back end device id the app type config data is for
  1032. * cfg_data - Returned value, configuration data used by app type config
  1033. */
  1034. int msm_pcm_routing_get_stream_app_type_cfg(
  1035. int fedai_id, int session_type, int *bedai_id,
  1036. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1037. {
  1038. int be_id;
  1039. int ret = 0;
  1040. if (bedai_id == NULL) {
  1041. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1042. ret = -EINVAL;
  1043. goto done;
  1044. } else if (cfg_data == NULL) {
  1045. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1046. ret = -EINVAL;
  1047. goto done;
  1048. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1049. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1050. ret = -EINVAL;
  1051. goto done;
  1052. } else if (session_type != SESSION_TYPE_RX &&
  1053. session_type != SESSION_TYPE_TX) {
  1054. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. }
  1058. be_id = last_be_id_configured[fedai_id][session_type];
  1059. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1060. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. }
  1064. *bedai_id = be_id;
  1065. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1066. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1067. __func__, fedai_id, session_type, *bedai_id,
  1068. cfg_data->app_type, cfg_data->acdb_dev_id,
  1069. cfg_data->sample_rate);
  1070. done:
  1071. return ret;
  1072. }
  1073. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1074. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1075. int cal_index)
  1076. {
  1077. struct list_head *ptr, *next;
  1078. struct cal_block_data *cal_block = NULL;
  1079. pr_debug("%s\n", __func__);
  1080. list_for_each_safe(ptr, next,
  1081. &cal_data[cal_index]->cal_blocks) {
  1082. cal_block = list_entry(ptr,
  1083. struct cal_block_data, list);
  1084. if (cal_utils_is_cal_stale(cal_block))
  1085. continue;
  1086. if (((struct audio_cal_info_adm_top *)cal_block
  1087. ->cal_info)->path == path) {
  1088. return cal_block;
  1089. }
  1090. }
  1091. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1092. return NULL;
  1093. }
  1094. static struct cal_block_data *msm_routing_find_topology(int path,
  1095. int app_type,
  1096. int acdb_id,
  1097. int cal_index,
  1098. bool exact)
  1099. {
  1100. struct list_head *ptr, *next;
  1101. struct cal_block_data *cal_block = NULL;
  1102. struct audio_cal_info_adm_top *cal_info;
  1103. pr_debug("%s\n", __func__);
  1104. list_for_each_safe(ptr, next,
  1105. &cal_data[cal_index]->cal_blocks) {
  1106. cal_block = list_entry(ptr,
  1107. struct cal_block_data, list);
  1108. if (cal_utils_is_cal_stale(cal_block))
  1109. continue;
  1110. cal_info = (struct audio_cal_info_adm_top *)
  1111. cal_block->cal_info;
  1112. if ((cal_info->path == path) &&
  1113. (cal_info->app_type == app_type) &&
  1114. (cal_info->acdb_id == acdb_id)) {
  1115. return cal_block;
  1116. }
  1117. }
  1118. pr_debug("%s: Can't find topology for path %d, app %d, "
  1119. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1120. exact ? "fail" : "defaulting to search by path");
  1121. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1122. cal_index);
  1123. }
  1124. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1125. int acdb_dev_id, int idx,
  1126. bool exact)
  1127. {
  1128. int topology = -EINVAL;
  1129. struct cal_block_data *cal_block = NULL;
  1130. mutex_lock(&cal_data[idx]->lock);
  1131. cal_block = msm_routing_find_topology(session_type, app_type,
  1132. acdb_dev_id, idx, exact);
  1133. if (cal_block != NULL) {
  1134. topology = ((struct audio_cal_info_adm_top *)
  1135. cal_block->cal_info)->topology;
  1136. }
  1137. mutex_unlock(&cal_data[idx]->lock);
  1138. return topology;
  1139. }
  1140. /*
  1141. * Retrieving cal_block will mark cal_block as stale.
  1142. * Hence it cannot be reused or resent unless the flag
  1143. * is reset.
  1144. */
  1145. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1146. int be_id)
  1147. {
  1148. int topology = NULL_COPP_TOPOLOGY;
  1149. int app_type = 0, acdb_dev_id = 0;
  1150. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1151. __func__, fedai_id, session_type, be_id);
  1152. if (cal_data == NULL)
  1153. goto done;
  1154. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1155. acdb_dev_id =
  1156. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1157. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1158. topology = msm_routing_find_topology_on_index(session_type,
  1159. app_type,
  1160. acdb_dev_id,
  1161. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1162. true /*exact*/);
  1163. if (topology < 0) {
  1164. pr_debug("%s: Check for compatible topology\n", __func__);
  1165. topology = msm_routing_find_topology_on_index(session_type,
  1166. app_type,
  1167. acdb_dev_id,
  1168. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1169. false /*exact*/);
  1170. if (topology < 0)
  1171. topology = NULL_COPP_TOPOLOGY;
  1172. }
  1173. done:
  1174. pr_debug("%s: Using topology %d\n", __func__, topology);
  1175. return topology;
  1176. }
  1177. static uint8_t is_be_dai_extproc(int be_dai)
  1178. {
  1179. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1180. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1181. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1182. return 1;
  1183. else
  1184. return 0;
  1185. }
  1186. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1187. int path_type, int perf_mode,
  1188. uint32_t passthr_mode)
  1189. {
  1190. int i, port_type, j, num_copps = 0;
  1191. struct route_payload payload;
  1192. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1193. path_type == ADM_PATH_COMPRESSED_RX) ?
  1194. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1195. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1196. if (!is_be_dai_extproc(i) &&
  1197. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1198. (msm_bedais[i].active) &&
  1199. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1200. int port_id = get_port_id(msm_bedais[i].port_id);
  1201. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1202. unsigned long copp =
  1203. session_copp_map[fedai_id][sess_type][i];
  1204. if (test_bit(j, &copp)) {
  1205. payload.port_id[num_copps] = port_id;
  1206. payload.copp_idx[num_copps] = j;
  1207. payload.app_type[num_copps] =
  1208. fe_dai_app_type_cfg
  1209. [fedai_id][sess_type][i]
  1210. .app_type;
  1211. payload.acdb_dev_id[num_copps] =
  1212. fe_dai_app_type_cfg
  1213. [fedai_id][sess_type][i]
  1214. .acdb_dev_id;
  1215. payload.sample_rate[num_copps] =
  1216. fe_dai_app_type_cfg
  1217. [fedai_id][sess_type][i]
  1218. .sample_rate;
  1219. num_copps++;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. if (num_copps) {
  1225. payload.num_copps = num_copps;
  1226. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1227. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1228. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1229. }
  1230. }
  1231. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1232. int stream_type)
  1233. {
  1234. int i, session_type, path_type, port_type;
  1235. u32 mode = 0;
  1236. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1237. /* bad ID assigned in machine driver */
  1238. pr_err("%s: bad MM ID\n", __func__);
  1239. return;
  1240. }
  1241. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1242. session_type = SESSION_TYPE_RX;
  1243. path_type = ADM_PATH_PLAYBACK;
  1244. port_type = MSM_AFE_PORT_TYPE_RX;
  1245. } else {
  1246. session_type = SESSION_TYPE_TX;
  1247. path_type = ADM_PATH_LIVE_REC;
  1248. port_type = MSM_AFE_PORT_TYPE_TX;
  1249. }
  1250. mutex_lock(&routing_lock);
  1251. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1252. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1253. if (!is_be_dai_extproc(i) &&
  1254. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1255. (msm_bedais[i].active) &&
  1256. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1257. mode = afe_get_port_type(msm_bedais[i].port_id);
  1258. adm_connect_afe_port(mode, dspst_id,
  1259. msm_bedais[i].port_id);
  1260. break;
  1261. }
  1262. }
  1263. mutex_unlock(&routing_lock);
  1264. }
  1265. static bool route_check_fe_id_adm_support(int fe_id)
  1266. {
  1267. bool rc = true;
  1268. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1269. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1270. /* fe id is listen while port is set to afe */
  1271. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1272. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1273. __func__, fe_id, lsm_port_index);
  1274. rc = false;
  1275. }
  1276. }
  1277. return rc;
  1278. }
  1279. /*
  1280. * msm_pcm_routing_get_pp_ch_cnt:
  1281. * Read the processed channel count
  1282. *
  1283. * @fe_id: Front end ID
  1284. * @session_type: Inidicates RX or TX session type
  1285. */
  1286. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1287. {
  1288. struct msm_pcm_stream_app_type_cfg cfg_data;
  1289. int be_id = 0, app_type_idx = 0, app_type = 0;
  1290. int ret = -EINVAL;
  1291. memset(&cfg_data, 0, sizeof(cfg_data));
  1292. if (!is_mm_lsm_fe_id(fe_id)) {
  1293. pr_err("%s: bad MM ID\n", __func__);
  1294. return -EINVAL;
  1295. }
  1296. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1297. &be_id, &cfg_data);
  1298. if (ret) {
  1299. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1300. return ret;
  1301. }
  1302. app_type = cfg_data.app_type;
  1303. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1304. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1305. }
  1306. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1307. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1308. int dspst_id, int stream_type,
  1309. uint32_t passthr_mode)
  1310. {
  1311. int i, j, session_type, path_type, port_type, topology;
  1312. int num_copps = 0;
  1313. struct route_payload payload;
  1314. u32 channels, sample_rate;
  1315. u16 bit_width = 16, be_bit_width;
  1316. bool is_lsm;
  1317. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1318. __func__, fe_id, perf_mode, dspst_id,
  1319. stream_type, passthr_mode);
  1320. if (!is_mm_lsm_fe_id(fe_id)) {
  1321. /* bad ID assigned in machine driver */
  1322. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1323. return -EINVAL;
  1324. }
  1325. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1326. session_type = SESSION_TYPE_RX;
  1327. if (passthr_mode != LEGACY_PCM)
  1328. path_type = ADM_PATH_COMPRESSED_RX;
  1329. else
  1330. path_type = ADM_PATH_PLAYBACK;
  1331. port_type = MSM_AFE_PORT_TYPE_RX;
  1332. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1333. session_type = SESSION_TYPE_TX;
  1334. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1335. path_type = ADM_PATH_COMPRESSED_TX;
  1336. else
  1337. path_type = ADM_PATH_LIVE_REC;
  1338. port_type = MSM_AFE_PORT_TYPE_TX;
  1339. } else {
  1340. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1341. return -EINVAL;
  1342. }
  1343. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1344. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1345. mutex_lock(&routing_lock);
  1346. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1347. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1348. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1349. if (!route_check_fe_id_adm_support(fe_id)) {
  1350. /* ignore adm open if not supported for fe_id */
  1351. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1352. mutex_unlock(&routing_lock);
  1353. return 0;
  1354. }
  1355. payload.num_copps = 0; /* only RX needs to use payload */
  1356. /* re-enable EQ if active */
  1357. msm_qti_pp_send_eq_values(fe_id);
  1358. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1359. if (!is_be_dai_extproc(i) &&
  1360. (afe_get_port_type(msm_bedais[i].port_id) ==
  1361. port_type) &&
  1362. (msm_bedais[i].active) &&
  1363. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1364. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1365. int port_id = get_port_id(msm_bedais[i].port_id);
  1366. /*
  1367. * check if ADM needs to be configured with different
  1368. * channel mapping than backend
  1369. */
  1370. if (!msm_bedais[i].adm_override_ch)
  1371. channels = msm_bedais[i].channel;
  1372. else
  1373. channels = msm_bedais[i].adm_override_ch;
  1374. bit_width = msm_routing_get_bit_width(
  1375. msm_bedais[i].format);
  1376. app_type =
  1377. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1378. if (app_type && is_lsm) {
  1379. app_type_idx =
  1380. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1381. sample_rate =
  1382. fe_dai_app_type_cfg[fe_id][session_type][i]
  1383. .sample_rate;
  1384. bit_width =
  1385. lsm_app_type_cfg[app_type_idx].bit_width;
  1386. } else if (app_type) {
  1387. app_type_idx =
  1388. msm_pcm_routing_get_app_type_idx(
  1389. app_type);
  1390. sample_rate =
  1391. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1392. bit_width =
  1393. app_type_cfg[app_type_idx].bit_width;
  1394. } else {
  1395. sample_rate = msm_bedais[i].sample_rate;
  1396. }
  1397. acdb_dev_id =
  1398. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1399. topology = msm_routing_get_adm_topology(fe_id,
  1400. session_type,
  1401. i);
  1402. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1403. || (passthr_mode ==
  1404. COMPRESSED_PASSTHROUGH_GEN)
  1405. || (passthr_mode ==
  1406. COMPRESSED_PASSTHROUGH_IEC61937))
  1407. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1408. pr_debug("%s: Before adm open topology %d\n", __func__,
  1409. topology);
  1410. be_bit_width = msm_routing_get_bit_width(
  1411. msm_bedais[i].format);
  1412. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1413. == 384000 || msm_bedais[i].sample_rate ==
  1414. 352800) && be_bit_width == 32)
  1415. bit_width = msm_routing_get_bit_width(
  1416. SNDRV_PCM_FORMAT_S32_LE);
  1417. copp_idx =
  1418. adm_open(port_id, path_type, sample_rate,
  1419. channels, topology, perf_mode,
  1420. bit_width, app_type, acdb_dev_id,
  1421. session_type);
  1422. if ((copp_idx < 0) ||
  1423. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1424. pr_err("%s:adm open failed coppid:%d\n",
  1425. __func__, copp_idx);
  1426. mutex_unlock(&routing_lock);
  1427. return -EINVAL;
  1428. }
  1429. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1430. __func__, fe_id, session_type, i);
  1431. set_bit(copp_idx,
  1432. &session_copp_map[fe_id][session_type][i]);
  1433. if (msm_is_resample_needed(
  1434. sample_rate,
  1435. msm_bedais[i].sample_rate))
  1436. adm_copp_mfc_cfg(port_id, copp_idx,
  1437. msm_bedais[i].sample_rate);
  1438. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1439. unsigned long copp =
  1440. session_copp_map[fe_id][session_type][i];
  1441. if (test_bit(j, &copp)) {
  1442. payload.port_id[num_copps] = port_id;
  1443. payload.copp_idx[num_copps] = j;
  1444. payload.app_type[num_copps] =
  1445. fe_dai_app_type_cfg
  1446. [fe_id][session_type][i]
  1447. .app_type;
  1448. payload.acdb_dev_id[num_copps] =
  1449. fe_dai_app_type_cfg
  1450. [fe_id][session_type][i]
  1451. .acdb_dev_id;
  1452. payload.sample_rate[num_copps] =
  1453. fe_dai_app_type_cfg
  1454. [fe_id][session_type][i]
  1455. .sample_rate;
  1456. num_copps++;
  1457. }
  1458. }
  1459. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1460. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1461. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1462. msm_routing_send_device_pp_params(port_id,
  1463. copp_idx, fe_id);
  1464. }
  1465. }
  1466. if (num_copps) {
  1467. payload.num_copps = num_copps;
  1468. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1469. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1470. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1471. }
  1472. mutex_unlock(&routing_lock);
  1473. return 0;
  1474. }
  1475. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1476. {
  1477. u32 session_id;
  1478. switch (val) {
  1479. case MSM_FRONTEND_DAI_QCHAT:
  1480. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1481. break;
  1482. case MSM_FRONTEND_DAI_VOIP:
  1483. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1484. break;
  1485. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1486. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1487. break;
  1488. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1489. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1490. break;
  1491. default:
  1492. session_id = 0;
  1493. }
  1494. pr_debug("%s session_id 0x%x", __func__, session_id);
  1495. return session_id;
  1496. }
  1497. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1498. int dspst_id, int stream_type)
  1499. {
  1500. int copp_idx = 0;
  1501. int sess_type = 0;
  1502. int j = 0, be_id = 0;
  1503. int ret = 0;
  1504. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1505. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1506. return 0;
  1507. }
  1508. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1509. sess_type = SESSION_TYPE_RX;
  1510. else
  1511. sess_type = SESSION_TYPE_TX;
  1512. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1513. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1514. __func__, fe_id, sess_type);
  1515. return 0;
  1516. }
  1517. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1518. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1519. channel_mixer_v2[fe_id][sess_type].input_channel;
  1520. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1521. __func__, sess_type, fe_id,
  1522. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1523. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1524. msm_bedais[be_id].active);
  1525. if ((msm_bedais[be_id].active) &&
  1526. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1527. unsigned long copp =
  1528. session_copp_map[fe_id][sess_type][be_id];
  1529. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1530. if (test_bit(j, &copp)) {
  1531. copp_idx = j;
  1532. break;
  1533. }
  1534. }
  1535. ret = adm_programable_channel_mixer(
  1536. msm_bedais[be_id].port_id,
  1537. copp_idx, dspst_id, sess_type,
  1538. &channel_mixer_v2[fe_id][sess_type], 0);
  1539. }
  1540. return ret;
  1541. }
  1542. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1543. int dspst_id, int stream_type)
  1544. {
  1545. int copp_idx = 0;
  1546. int sess_type = 0;
  1547. int i = 0, j = 0, be_id;
  1548. int ret = 0;
  1549. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1550. dspst_id, stream_type);
  1551. if (ret) {
  1552. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1553. fe_id);
  1554. return ret;
  1555. }
  1556. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1557. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1558. return 0;
  1559. }
  1560. if (!(channel_mixer[fe_id].enable)) {
  1561. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1562. __func__, fe_id);
  1563. return 0;
  1564. }
  1565. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1566. sess_type = SESSION_TYPE_RX;
  1567. else
  1568. sess_type = SESSION_TYPE_TX;
  1569. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1570. ++i) {
  1571. be_id = channel_input[fe_id][i] - 1;
  1572. channel_mixer[fe_id].input_channels[i] =
  1573. msm_bedais[be_id].channel;
  1574. if ((msm_bedais[be_id].active) &&
  1575. test_bit(fe_id,
  1576. &msm_bedais[be_id].fe_sessions[0])) {
  1577. unsigned long copp =
  1578. session_copp_map[fe_id][sess_type][be_id];
  1579. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1580. if (test_bit(j, &copp)) {
  1581. copp_idx = j;
  1582. break;
  1583. }
  1584. }
  1585. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1586. __func__,
  1587. fe_id, be_id, msm_bedais[be_id].channel,
  1588. copp_idx);
  1589. ret = adm_programable_channel_mixer(
  1590. get_port_id(msm_bedais[be_id].port_id),
  1591. copp_idx, dspst_id, sess_type,
  1592. channel_mixer + fe_id, i);
  1593. }
  1594. }
  1595. return ret;
  1596. }
  1597. /**
  1598. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1599. * setting during runtime.
  1600. *
  1601. * @be_id: backend index
  1602. * @session_id: session index
  1603. * @session_type: session type
  1604. * @params: parameters for channel mixer
  1605. *
  1606. * Retuen: 0 for success, else error
  1607. */
  1608. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1609. int session_type,
  1610. struct msm_pcm_channel_mixer *params)
  1611. {
  1612. int rc = 0;
  1613. int port_id, copp_idx = 0;
  1614. be_id--;
  1615. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1616. pr_err("%s: invalid backend id %d\n", __func__,
  1617. be_id);
  1618. return -EINVAL;
  1619. }
  1620. port_id = msm_bedais[be_id].port_id;
  1621. copp_idx = adm_get_default_copp_idx(port_id);
  1622. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1623. __func__, port_id, copp_idx, session_id);
  1624. if ((params->input_channel < 0) ||
  1625. (params->input_channel > ADM_MAX_CHANNELS)) {
  1626. pr_err("%s: invalid input channel %d\n", __func__,
  1627. params->input_channel);
  1628. return -EINVAL;
  1629. }
  1630. if ((params->output_channel < 0) ||
  1631. (params->output_channel > ADM_MAX_CHANNELS)) {
  1632. pr_err("%s: invalid output channel %d\n", __func__,
  1633. params->output_channel);
  1634. return -EINVAL;
  1635. }
  1636. params->input_channels[0] = params->input_channel;
  1637. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1638. __func__, session_type,
  1639. params->override_in_ch_map,
  1640. params->override_out_ch_map,
  1641. msm_bedais[be_id].active);
  1642. rc = adm_programable_channel_mixer(port_id,
  1643. copp_idx,
  1644. session_id,
  1645. session_type,
  1646. params,
  1647. 0);
  1648. if (rc) {
  1649. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1650. rc = -EINVAL;
  1651. }
  1652. return rc;
  1653. }
  1654. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1655. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1656. int dspst_id, int stream_type)
  1657. {
  1658. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1659. struct route_payload payload;
  1660. u32 channels, sample_rate;
  1661. uint16_t bits_per_sample = 16, be_bit_width;
  1662. uint32_t passthr_mode = LEGACY_PCM;
  1663. int ret = 0;
  1664. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1665. /* bad ID assigned in machine driver */
  1666. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1667. return -EINVAL;
  1668. }
  1669. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1670. session_type = SESSION_TYPE_RX;
  1671. path_type = ADM_PATH_PLAYBACK;
  1672. port_type = MSM_AFE_PORT_TYPE_RX;
  1673. } else {
  1674. session_type = SESSION_TYPE_TX;
  1675. path_type = ADM_PATH_LIVE_REC;
  1676. port_type = MSM_AFE_PORT_TYPE_TX;
  1677. }
  1678. mutex_lock(&routing_lock);
  1679. payload.num_copps = 0; /* only RX needs to use payload */
  1680. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1681. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1682. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1683. /* re-enable EQ if active */
  1684. msm_qti_pp_send_eq_values(fedai_id);
  1685. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1686. if (!is_be_dai_extproc(i) &&
  1687. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1688. (msm_bedais[i].active) &&
  1689. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1690. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1691. int port_id = get_port_id(msm_bedais[i].port_id);
  1692. /*
  1693. * check if ADM needs to be configured with different
  1694. * channel mapping than backend
  1695. */
  1696. if (!msm_bedais[i].adm_override_ch)
  1697. channels = msm_bedais[i].channel;
  1698. else
  1699. channels = msm_bedais[i].adm_override_ch;
  1700. bits_per_sample = msm_routing_get_bit_width(
  1701. msm_bedais[i].format);
  1702. app_type =
  1703. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1704. if (app_type) {
  1705. app_type_idx =
  1706. msm_pcm_routing_get_app_type_idx(app_type);
  1707. sample_rate =
  1708. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1709. .sample_rate;
  1710. bits_per_sample =
  1711. app_type_cfg[app_type_idx].bit_width;
  1712. } else
  1713. sample_rate = msm_bedais[i].sample_rate;
  1714. acdb_dev_id =
  1715. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1716. .acdb_dev_id;
  1717. topology = msm_routing_get_adm_topology(fedai_id,
  1718. session_type,
  1719. i);
  1720. be_bit_width = msm_routing_get_bit_width(
  1721. msm_bedais[i].format);
  1722. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1723. 384000 ||msm_bedais[i].sample_rate == 352800)
  1724. && be_bit_width == 32)
  1725. bits_per_sample = msm_routing_get_bit_width(
  1726. SNDRV_PCM_FORMAT_S32_LE);
  1727. copp_idx = adm_open(port_id, path_type,
  1728. sample_rate, channels, topology,
  1729. perf_mode, bits_per_sample,
  1730. app_type, acdb_dev_id,
  1731. session_type);
  1732. if ((copp_idx < 0) ||
  1733. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1734. pr_err("%s: adm open failed copp_idx:%d\n",
  1735. __func__, copp_idx);
  1736. mutex_unlock(&routing_lock);
  1737. return -EINVAL;
  1738. }
  1739. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1740. __func__, fedai_id, session_type, i);
  1741. set_bit(copp_idx,
  1742. &session_copp_map[fedai_id][session_type][i]);
  1743. if (msm_is_resample_needed(
  1744. sample_rate,
  1745. msm_bedais[i].sample_rate))
  1746. adm_copp_mfc_cfg(port_id, copp_idx,
  1747. msm_bedais[i].sample_rate);
  1748. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1749. unsigned long copp =
  1750. session_copp_map[fedai_id][session_type][i];
  1751. if (test_bit(j, &copp)) {
  1752. payload.port_id[num_copps] = port_id;
  1753. payload.copp_idx[num_copps] = j;
  1754. payload.app_type[num_copps] =
  1755. fe_dai_app_type_cfg
  1756. [fedai_id][session_type]
  1757. [i].app_type;
  1758. payload.acdb_dev_id[num_copps] =
  1759. fe_dai_app_type_cfg
  1760. [fedai_id][session_type]
  1761. [i].acdb_dev_id;
  1762. payload.sample_rate[num_copps] =
  1763. fe_dai_app_type_cfg
  1764. [fedai_id][session_type]
  1765. [i].sample_rate;
  1766. num_copps++;
  1767. }
  1768. }
  1769. if (perf_mode == LEGACY_PCM_MODE)
  1770. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1771. topology, channels);
  1772. }
  1773. }
  1774. if (num_copps) {
  1775. payload.num_copps = num_copps;
  1776. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1777. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1778. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1779. }
  1780. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1781. dspst_id, stream_type);
  1782. mutex_unlock(&routing_lock);
  1783. return ret;
  1784. }
  1785. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1786. int dspst_id, int stream_type,
  1787. struct msm_pcm_routing_evt event_info)
  1788. {
  1789. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1790. stream_type)) {
  1791. pr_err("%s: failed to reg phy stream\n", __func__);
  1792. return -EINVAL;
  1793. }
  1794. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1795. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1796. else
  1797. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1798. return 0;
  1799. }
  1800. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1801. {
  1802. int i, port_type, session_type, path_type, topology, port_id;
  1803. struct msm_pcm_routing_fdai_data *fdai;
  1804. if (!is_mm_lsm_fe_id(fedai_id)) {
  1805. /* bad ID assigned in machine driver */
  1806. pr_err("%s: bad MM ID\n", __func__);
  1807. return;
  1808. }
  1809. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1810. port_type = MSM_AFE_PORT_TYPE_RX;
  1811. session_type = SESSION_TYPE_RX;
  1812. path_type = ADM_PATH_PLAYBACK;
  1813. } else {
  1814. port_type = MSM_AFE_PORT_TYPE_TX;
  1815. session_type = SESSION_TYPE_TX;
  1816. path_type = ADM_PATH_LIVE_REC;
  1817. }
  1818. mutex_lock(&routing_lock);
  1819. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1820. if (!is_be_dai_extproc(i) &&
  1821. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1822. (msm_bedais[i].active) &&
  1823. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1824. int idx;
  1825. unsigned long copp =
  1826. session_copp_map[fedai_id][session_type][i];
  1827. fdai = &fe_dai_map[fedai_id][session_type];
  1828. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1829. if (test_bit(idx, &copp))
  1830. break;
  1831. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1832. pr_debug("%s: copp idx is invalid, exiting\n",
  1833. __func__);
  1834. continue;
  1835. }
  1836. port_id = get_port_id(msm_bedais[i].port_id);
  1837. topology = adm_get_topology_for_port_copp_idx(
  1838. port_id, idx);
  1839. msm_routing_unload_topology(topology);
  1840. adm_close(port_id, fdai->perf_mode, idx);
  1841. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1842. __func__, copp, fedai_id, session_type, i);
  1843. clear_bit(idx,
  1844. &session_copp_map[fedai_id][session_type][i]);
  1845. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1846. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1847. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1848. (fdai->passthr_mode == LEGACY_PCM))
  1849. msm_pcm_routing_deinit_pp(port_id, topology);
  1850. }
  1851. }
  1852. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1853. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1854. mutex_unlock(&routing_lock);
  1855. }
  1856. /* Check if FE/BE route is set */
  1857. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1858. {
  1859. bool rc = false;
  1860. if (!is_mm_lsm_fe_id(fe_id)) {
  1861. /* recheck FE ID in the mixer control defined in this file */
  1862. pr_err("%s: bad MM ID\n", __func__);
  1863. return rc;
  1864. }
  1865. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1866. rc = true;
  1867. return rc;
  1868. }
  1869. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1870. {
  1871. int session_type, path_type, topology;
  1872. u32 channels, sample_rate;
  1873. uint16_t bits_per_sample = 16, be_bit_width;
  1874. struct msm_pcm_routing_fdai_data *fdai;
  1875. uint32_t passthr_mode;
  1876. bool is_lsm;
  1877. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1878. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1879. afe_get_port_type(msm_bedais[reg].port_id) ==
  1880. MSM_AFE_PORT_TYPE_RX) {
  1881. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1882. __func__, set, msm_bedais[reg].port_id);
  1883. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1884. } else if (!is_mm_lsm_fe_id(val)) {
  1885. /* recheck FE ID in the mixer control defined in this file */
  1886. pr_err("%s: bad MM ID\n", __func__);
  1887. return;
  1888. }
  1889. if (!route_check_fe_id_adm_support(val)) {
  1890. /* ignore adm open if not supported for fe_id */
  1891. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1892. if (set)
  1893. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1894. else
  1895. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1896. return;
  1897. }
  1898. session_type =
  1899. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1900. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1901. fdai = &fe_dai_map[val][session_type];
  1902. passthr_mode = fdai->passthr_mode;
  1903. if (session_type == SESSION_TYPE_RX) {
  1904. if (passthr_mode != LEGACY_PCM)
  1905. path_type = ADM_PATH_COMPRESSED_RX;
  1906. else
  1907. path_type = ADM_PATH_PLAYBACK;
  1908. } else {
  1909. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1910. path_type = ADM_PATH_COMPRESSED_TX;
  1911. else
  1912. path_type = ADM_PATH_LIVE_REC;
  1913. }
  1914. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1915. (val <= MSM_FRONTEND_DAI_LSM8);
  1916. mutex_lock(&routing_lock);
  1917. if (set) {
  1918. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1919. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1920. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1921. voc_start_playback(set, msm_bedais[reg].port_id);
  1922. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1923. if (msm_bedais[reg].active && fdai->strm_id !=
  1924. INVALID_SESSION) {
  1925. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1926. int port_id = get_port_id(msm_bedais[reg].port_id);
  1927. /*
  1928. * check if ADM needs to be configured with different
  1929. * channel mapping than backend
  1930. */
  1931. if (!msm_bedais[reg].adm_override_ch)
  1932. channels = msm_bedais[reg].channel;
  1933. else
  1934. channels = msm_bedais[reg].adm_override_ch;
  1935. if (session_type == SESSION_TYPE_TX &&
  1936. fdai->be_srate &&
  1937. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1938. pr_debug("%s: flush strm %d diff BE rates\n",
  1939. __func__, fdai->strm_id);
  1940. if (fdai->event_info.event_func)
  1941. fdai->event_info.event_func(
  1942. MSM_PCM_RT_EVT_BUF_RECFG,
  1943. fdai->event_info.priv_data);
  1944. fdai->be_srate = 0; /* might not need it */
  1945. }
  1946. bits_per_sample = msm_routing_get_bit_width(
  1947. msm_bedais[reg].format);
  1948. app_type =
  1949. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1950. if (app_type && is_lsm) {
  1951. app_type_idx =
  1952. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1953. sample_rate =
  1954. fe_dai_app_type_cfg[val][session_type][reg]
  1955. .sample_rate;
  1956. bits_per_sample =
  1957. lsm_app_type_cfg[app_type_idx].bit_width;
  1958. } else if (app_type) {
  1959. app_type_idx =
  1960. msm_pcm_routing_get_app_type_idx(app_type);
  1961. sample_rate =
  1962. fe_dai_app_type_cfg[val][session_type][reg]
  1963. .sample_rate;
  1964. bits_per_sample =
  1965. app_type_cfg[app_type_idx].bit_width;
  1966. } else
  1967. sample_rate = msm_bedais[reg].sample_rate;
  1968. topology = msm_routing_get_adm_topology(val,
  1969. session_type,
  1970. reg);
  1971. acdb_dev_id =
  1972. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1973. be_bit_width = msm_routing_get_bit_width(
  1974. msm_bedais[reg].format);
  1975. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1976. == 384000 ||msm_bedais[reg].sample_rate ==
  1977. 352800) && be_bit_width == 32)
  1978. bits_per_sample = msm_routing_get_bit_width(
  1979. SNDRV_PCM_FORMAT_S32_LE);
  1980. copp_idx = adm_open(port_id, path_type,
  1981. sample_rate, channels, topology,
  1982. fdai->perf_mode, bits_per_sample,
  1983. app_type, acdb_dev_id,
  1984. session_type);
  1985. if ((copp_idx < 0) ||
  1986. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1987. pr_err("%s: adm open failed\n", __func__);
  1988. mutex_unlock(&routing_lock);
  1989. return;
  1990. }
  1991. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1992. __func__, val, session_type, reg);
  1993. set_bit(copp_idx,
  1994. &session_copp_map[val][session_type][reg]);
  1995. if (msm_is_resample_needed(
  1996. sample_rate,
  1997. msm_bedais[reg].sample_rate))
  1998. adm_copp_mfc_cfg(port_id, copp_idx,
  1999. msm_bedais[reg].sample_rate);
  2000. if (session_type == SESSION_TYPE_RX &&
  2001. fdai->event_info.event_func)
  2002. fdai->event_info.event_func(
  2003. MSM_PCM_RT_EVT_DEVSWITCH,
  2004. fdai->event_info.priv_data);
  2005. msm_pcm_routing_build_matrix(val, session_type,
  2006. path_type,
  2007. fdai->perf_mode,
  2008. passthr_mode);
  2009. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2010. (passthr_mode == LEGACY_PCM))
  2011. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2012. topology, channels);
  2013. }
  2014. } else {
  2015. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2016. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2017. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2018. voc_start_playback(set, msm_bedais[reg].port_id);
  2019. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2020. if (msm_bedais[reg].active && fdai->strm_id !=
  2021. INVALID_SESSION) {
  2022. int idx;
  2023. int port_id;
  2024. unsigned long copp =
  2025. session_copp_map[val][session_type][reg];
  2026. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2027. if (test_bit(idx, &copp))
  2028. break;
  2029. if (idx >= MAX_COPPS_PER_PORT) {
  2030. pr_debug("%s: copp idx is invalid, exiting\n",
  2031. __func__);
  2032. mutex_unlock(&routing_lock);
  2033. return;
  2034. }
  2035. port_id = get_port_id(msm_bedais[reg].port_id);
  2036. topology = adm_get_topology_for_port_copp_idx(port_id,
  2037. idx);
  2038. msm_routing_unload_topology(topology);
  2039. adm_close(port_id, fdai->perf_mode, idx);
  2040. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2041. __func__, copp, val, session_type, reg,
  2042. topology);
  2043. clear_bit(idx,
  2044. &session_copp_map[val][session_type][reg]);
  2045. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2046. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2047. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2048. (passthr_mode == LEGACY_PCM))
  2049. msm_pcm_routing_deinit_pp(port_id, topology);
  2050. msm_pcm_routing_build_matrix(val, session_type,
  2051. path_type,
  2052. fdai->perf_mode,
  2053. passthr_mode);
  2054. }
  2055. }
  2056. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2057. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2058. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2059. mutex_unlock(&routing_lock);
  2060. }
  2061. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2062. struct snd_ctl_elem_value *ucontrol)
  2063. {
  2064. struct soc_mixer_control *mc =
  2065. (struct soc_mixer_control *)kcontrol->private_value;
  2066. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2067. ucontrol->value.integer.value[0] = 1;
  2068. else
  2069. ucontrol->value.integer.value[0] = 0;
  2070. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2071. ucontrol->value.integer.value[0]);
  2072. return 0;
  2073. }
  2074. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2075. struct snd_ctl_elem_value *ucontrol)
  2076. {
  2077. struct snd_soc_dapm_widget *widget =
  2078. snd_soc_dapm_kcontrol_widget(kcontrol);
  2079. struct soc_mixer_control *mc =
  2080. (struct soc_mixer_control *)kcontrol->private_value;
  2081. struct snd_soc_dapm_update *update = NULL;
  2082. if (ucontrol->value.integer.value[0] &&
  2083. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2084. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2085. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2086. update);
  2087. } else if (!ucontrol->value.integer.value[0] &&
  2088. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2089. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2090. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2091. update);
  2092. }
  2093. return 1;
  2094. }
  2095. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2096. struct snd_ctl_elem_value *ucontrol)
  2097. {
  2098. struct soc_mixer_control *mc =
  2099. (struct soc_mixer_control *)kcontrol->private_value;
  2100. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2101. ucontrol->value.integer.value[0] = 1;
  2102. else
  2103. ucontrol->value.integer.value[0] = 0;
  2104. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2105. ucontrol->value.integer.value[0]);
  2106. return 0;
  2107. }
  2108. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2109. struct snd_ctl_elem_value *ucontrol)
  2110. {
  2111. struct snd_soc_dapm_widget *widget =
  2112. snd_soc_dapm_kcontrol_widget(kcontrol);
  2113. struct soc_mixer_control *mc =
  2114. (struct soc_mixer_control *)kcontrol->private_value;
  2115. struct snd_soc_dapm_update *update = NULL;
  2116. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2117. ucontrol->value.integer.value[0]);
  2118. if (ucontrol->value.integer.value[0]) {
  2119. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2120. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2121. snd_soc_dapm_mixer_update_power(widget->dapm,
  2122. kcontrol, 1, update);
  2123. } else if (!ucontrol->value.integer.value[0]) {
  2124. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2125. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2126. snd_soc_dapm_mixer_update_power(widget->dapm,
  2127. kcontrol, 0, update);
  2128. }
  2129. return 1;
  2130. }
  2131. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2132. {
  2133. u32 session_id = 0;
  2134. u16 path_type;
  2135. struct media_format_info voc_be_media_format;
  2136. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2137. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2138. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2139. __func__, val, session_id);
  2140. mutex_lock(&routing_lock);
  2141. if (set)
  2142. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2143. else
  2144. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2145. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2146. afe_get_port_type(msm_bedais[reg].port_id) ==
  2147. MSM_AFE_PORT_TYPE_RX) {
  2148. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2149. __func__, set, msm_bedais[reg].port_id);
  2150. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2151. }
  2152. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2153. MSM_AFE_PORT_TYPE_RX)
  2154. path_type = RX_PATH;
  2155. else
  2156. path_type = TX_PATH;
  2157. if (set) {
  2158. if (msm_bedais[reg].active) {
  2159. voc_set_route_flag(session_id, path_type, 1);
  2160. memset(&voc_be_media_format, 0,
  2161. sizeof(struct media_format_info));
  2162. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2163. voc_be_media_format.num_channels =
  2164. msm_bedais[reg].channel;
  2165. voc_be_media_format.sample_rate =
  2166. msm_bedais[reg].sample_rate;
  2167. voc_be_media_format.bits_per_sample =
  2168. msm_bedais[reg].format;
  2169. /* Defaulting this to 1 for voice call usecases */
  2170. voc_be_media_format.channel_mapping[0] = 1;
  2171. voc_set_device_config(session_id, path_type,
  2172. &voc_be_media_format);
  2173. if (voc_get_route_flag(session_id, TX_PATH) &&
  2174. voc_get_route_flag(session_id, RX_PATH))
  2175. voc_enable_device(session_id);
  2176. } else {
  2177. pr_debug("%s BE is not active\n", __func__);
  2178. }
  2179. } else {
  2180. voc_set_route_flag(session_id, path_type, 0);
  2181. voc_disable_device(session_id);
  2182. }
  2183. mutex_unlock(&routing_lock);
  2184. }
  2185. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2186. struct snd_ctl_elem_value *ucontrol)
  2187. {
  2188. struct soc_mixer_control *mc =
  2189. (struct soc_mixer_control *)kcontrol->private_value;
  2190. mutex_lock(&routing_lock);
  2191. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2192. ucontrol->value.integer.value[0] = 1;
  2193. else
  2194. ucontrol->value.integer.value[0] = 0;
  2195. mutex_unlock(&routing_lock);
  2196. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2197. ucontrol->value.integer.value[0]);
  2198. return 0;
  2199. }
  2200. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2201. struct snd_ctl_elem_value *ucontrol)
  2202. {
  2203. struct snd_soc_dapm_widget *widget =
  2204. snd_soc_dapm_kcontrol_widget(kcontrol);
  2205. struct soc_mixer_control *mc =
  2206. (struct soc_mixer_control *)kcontrol->private_value;
  2207. struct snd_soc_dapm_update *update = NULL;
  2208. if (ucontrol->value.integer.value[0]) {
  2209. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2210. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2211. update);
  2212. } else {
  2213. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2214. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2215. update);
  2216. }
  2217. return 1;
  2218. }
  2219. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2220. struct snd_ctl_elem_value *ucontrol)
  2221. {
  2222. struct soc_mixer_control *mc =
  2223. (struct soc_mixer_control *)kcontrol->private_value;
  2224. mutex_lock(&routing_lock);
  2225. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2226. ucontrol->value.integer.value[0] = 1;
  2227. else
  2228. ucontrol->value.integer.value[0] = 0;
  2229. mutex_unlock(&routing_lock);
  2230. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2231. ucontrol->value.integer.value[0]);
  2232. return 0;
  2233. }
  2234. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2235. struct snd_ctl_elem_value *ucontrol)
  2236. {
  2237. struct snd_soc_dapm_widget *widget =
  2238. snd_soc_dapm_kcontrol_widget(kcontrol);
  2239. struct soc_mixer_control *mc =
  2240. (struct soc_mixer_control *)kcontrol->private_value;
  2241. struct snd_soc_dapm_update *update = NULL;
  2242. if (ucontrol->value.integer.value[0]) {
  2243. mutex_lock(&routing_lock);
  2244. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2245. mutex_unlock(&routing_lock);
  2246. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2247. update);
  2248. } else {
  2249. mutex_lock(&routing_lock);
  2250. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2251. mutex_unlock(&routing_lock);
  2252. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2253. update);
  2254. }
  2255. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2256. ucontrol->value.integer.value[0]);
  2257. return 1;
  2258. }
  2259. /*
  2260. * Return the mapping between port ID and backend ID to enable the AFE callback
  2261. * to determine the acdb_dev_id from the port id
  2262. */
  2263. int msm_pcm_get_be_id_from_port_id(int port_id)
  2264. {
  2265. int i;
  2266. int be_id = -EINVAL;
  2267. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2268. if (msm_bedais[i].port_id == port_id) {
  2269. be_id = i;
  2270. break;
  2271. }
  2272. }
  2273. return be_id;
  2274. }
  2275. /*
  2276. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2277. * correct AFE calibration information by comparing the header information.
  2278. */
  2279. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2280. {
  2281. int acdb_id = -EINVAL;
  2282. int i = 0;
  2283. int session;
  2284. int port_type = afe_get_port_type(port_id);
  2285. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2286. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2287. __func__, port_id, be_id, port_type);
  2288. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2289. session = SESSION_TYPE_TX;
  2290. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2291. session = SESSION_TYPE_RX;
  2292. } else {
  2293. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2294. acdb_id = -EINVAL;
  2295. goto exit;
  2296. }
  2297. if (be_id < 0) {
  2298. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2299. goto exit;
  2300. }
  2301. mutex_lock(&routing_lock);
  2302. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2303. MSM_FRONTEND_DAI_MAX);
  2304. if (i < MSM_FRONTEND_DAI_MAX)
  2305. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2306. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2307. __func__, i, session, be_id, acdb_id);
  2308. mutex_unlock(&routing_lock);
  2309. exit:
  2310. return acdb_id;
  2311. }
  2312. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2313. struct snd_ctl_elem_value *ucontrol)
  2314. {
  2315. ucontrol->value.integer.value[0] = fm_switch_enable;
  2316. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2317. ucontrol->value.integer.value[0]);
  2318. return 0;
  2319. }
  2320. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2321. struct snd_ctl_elem_value *ucontrol)
  2322. {
  2323. struct snd_soc_dapm_widget *widget =
  2324. snd_soc_dapm_kcontrol_widget(kcontrol);
  2325. struct snd_soc_dapm_update *update = NULL;
  2326. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2327. ucontrol->value.integer.value[0]);
  2328. if (ucontrol->value.integer.value[0])
  2329. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2330. update);
  2331. else
  2332. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2333. update);
  2334. fm_switch_enable = ucontrol->value.integer.value[0];
  2335. return 1;
  2336. }
  2337. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2338. struct snd_ctl_elem_value *ucontrol)
  2339. {
  2340. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2341. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2342. ucontrol->value.integer.value[0]);
  2343. return 0;
  2344. }
  2345. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2346. struct snd_ctl_elem_value *ucontrol)
  2347. {
  2348. struct snd_soc_dapm_widget *widget =
  2349. snd_soc_dapm_kcontrol_widget(kcontrol);
  2350. struct snd_soc_dapm_update *update = NULL;
  2351. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2352. ucontrol->value.integer.value[0]);
  2353. if (ucontrol->value.integer.value[0])
  2354. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2355. 1, update);
  2356. else
  2357. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2358. 0, update);
  2359. hfp_switch_enable = ucontrol->value.integer.value[0];
  2360. return 1;
  2361. }
  2362. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2363. struct snd_ctl_elem_value *ucontrol)
  2364. {
  2365. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2366. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2367. ucontrol->value.integer.value[0]);
  2368. return 0;
  2369. }
  2370. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2371. struct snd_ctl_elem_value *ucontrol)
  2372. {
  2373. struct snd_soc_dapm_widget *widget =
  2374. snd_soc_dapm_kcontrol_widget(kcontrol);
  2375. struct snd_soc_dapm_update *update = NULL;
  2376. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2377. ucontrol->value.integer.value[0]);
  2378. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2379. if (a2dp_switch_enable)
  2380. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2381. 1, update);
  2382. else
  2383. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2384. 0, update);
  2385. return 1;
  2386. }
  2387. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2388. struct snd_ctl_elem_value *ucontrol)
  2389. {
  2390. ucontrol->value.integer.value[0] = sco_switch_enable;
  2391. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2392. ucontrol->value.integer.value[0]);
  2393. return 0;
  2394. }
  2395. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2396. struct snd_ctl_elem_value *ucontrol)
  2397. {
  2398. struct snd_soc_dapm_widget *widget =
  2399. snd_soc_dapm_kcontrol_widget(kcontrol);
  2400. struct snd_soc_dapm_update *update = NULL;
  2401. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2402. ucontrol->value.integer.value[0]);
  2403. sco_switch_enable = ucontrol->value.integer.value[0];
  2404. if (sco_switch_enable)
  2405. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2406. 1, update);
  2407. else
  2408. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2409. 0, update);
  2410. return 1;
  2411. }
  2412. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2413. struct snd_ctl_elem_value *ucontrol)
  2414. {
  2415. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2416. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2417. ucontrol->value.integer.value[0]);
  2418. return 0;
  2419. }
  2420. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2421. struct snd_ctl_elem_value *ucontrol)
  2422. {
  2423. struct snd_soc_dapm_widget *widget =
  2424. snd_soc_dapm_kcontrol_widget(kcontrol);
  2425. struct snd_soc_dapm_update *update = NULL;
  2426. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2427. ucontrol->value.integer.value[0]);
  2428. if (ucontrol->value.integer.value[0])
  2429. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2430. update);
  2431. else
  2432. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2433. update);
  2434. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2435. return 1;
  2436. }
  2437. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2438. struct snd_ctl_elem_value *ucontrol)
  2439. {
  2440. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2441. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2442. ucontrol->value.integer.value[0]);
  2443. return 0;
  2444. }
  2445. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2446. struct snd_ctl_elem_value *ucontrol)
  2447. {
  2448. struct snd_soc_dapm_widget *widget =
  2449. snd_soc_dapm_kcontrol_widget(kcontrol);
  2450. struct snd_soc_dapm_update *update = NULL;
  2451. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2452. ucontrol->value.integer.value[0]);
  2453. if (ucontrol->value.integer.value[0])
  2454. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2455. update);
  2456. else
  2457. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2458. update);
  2459. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2460. return 1;
  2461. }
  2462. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2463. struct snd_ctl_elem_value *ucontrol)
  2464. {
  2465. ucontrol->value.integer.value[0] = usb_switch_enable;
  2466. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2467. ucontrol->value.integer.value[0]);
  2468. return 0;
  2469. }
  2470. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2471. struct snd_ctl_elem_value *ucontrol)
  2472. {
  2473. struct snd_soc_dapm_widget *widget =
  2474. snd_soc_dapm_kcontrol_widget(kcontrol);
  2475. struct snd_soc_dapm_update *update = NULL;
  2476. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2477. ucontrol->value.integer.value[0]);
  2478. if (ucontrol->value.integer.value[0])
  2479. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2480. 1, update);
  2481. else
  2482. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2483. 0, update);
  2484. usb_switch_enable = ucontrol->value.integer.value[0];
  2485. return 1;
  2486. }
  2487. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2488. struct snd_ctl_elem_value *ucontrol)
  2489. {
  2490. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2491. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2492. ucontrol->value.integer.value[0]);
  2493. return 0;
  2494. }
  2495. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2496. struct snd_ctl_elem_value *ucontrol)
  2497. {
  2498. struct snd_soc_dapm_widget *widget =
  2499. snd_soc_dapm_kcontrol_widget(kcontrol);
  2500. struct snd_soc_dapm_update *update = NULL;
  2501. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2502. ucontrol->value.integer.value[0]);
  2503. if (ucontrol->value.integer.value[0])
  2504. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2505. update);
  2506. else
  2507. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2508. update);
  2509. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2510. return 1;
  2511. }
  2512. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2513. struct snd_ctl_elem_value *ucontrol)
  2514. {
  2515. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2516. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2517. ucontrol->value.integer.value[0]);
  2518. return 0;
  2519. }
  2520. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2521. struct snd_ctl_elem_value *ucontrol)
  2522. {
  2523. struct snd_soc_dapm_widget *widget =
  2524. snd_soc_dapm_kcontrol_widget(kcontrol);
  2525. struct snd_soc_dapm_update *update = NULL;
  2526. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2527. ucontrol->value.integer.value[0]);
  2528. if (ucontrol->value.integer.value[0])
  2529. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2530. update);
  2531. else
  2532. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2533. update);
  2534. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2535. return 1;
  2536. }
  2537. static int msm_routing_get_tert_mi2s_switch_mixer(
  2538. struct snd_kcontrol *kcontrol,
  2539. struct snd_ctl_elem_value *ucontrol)
  2540. {
  2541. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2542. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2543. ucontrol->value.integer.value[0]);
  2544. return 0;
  2545. }
  2546. static int msm_routing_put_tert_mi2s_switch_mixer(
  2547. struct snd_kcontrol *kcontrol,
  2548. struct snd_ctl_elem_value *ucontrol)
  2549. {
  2550. struct snd_soc_dapm_widget *widget =
  2551. snd_soc_dapm_kcontrol_widget(kcontrol);
  2552. struct snd_soc_dapm_update *update = NULL;
  2553. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2554. ucontrol->value.integer.value[0]);
  2555. if (ucontrol->value.integer.value[0])
  2556. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2557. update);
  2558. else
  2559. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2560. update);
  2561. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2562. return 1;
  2563. }
  2564. static int msm_routing_get_quat_mi2s_switch_mixer(
  2565. struct snd_kcontrol *kcontrol,
  2566. struct snd_ctl_elem_value *ucontrol)
  2567. {
  2568. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2569. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2570. ucontrol->value.integer.value[0]);
  2571. return 0;
  2572. }
  2573. static int msm_routing_put_quat_mi2s_switch_mixer(
  2574. struct snd_kcontrol *kcontrol,
  2575. struct snd_ctl_elem_value *ucontrol)
  2576. {
  2577. struct snd_soc_dapm_widget *widget =
  2578. snd_soc_dapm_kcontrol_widget(kcontrol);
  2579. struct snd_soc_dapm_update *update = NULL;
  2580. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2581. ucontrol->value.integer.value[0]);
  2582. if (ucontrol->value.integer.value[0])
  2583. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2584. update);
  2585. else
  2586. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2587. update);
  2588. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2589. return 1;
  2590. }
  2591. static int msm_routing_get_quin_mi2s_switch_mixer(
  2592. struct snd_kcontrol *kcontrol,
  2593. struct snd_ctl_elem_value *ucontrol)
  2594. {
  2595. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2596. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2597. ucontrol->value.integer.value[0]);
  2598. return 0;
  2599. }
  2600. static int msm_routing_put_quin_mi2s_switch_mixer(
  2601. struct snd_kcontrol *kcontrol,
  2602. struct snd_ctl_elem_value *ucontrol)
  2603. {
  2604. struct snd_soc_dapm_widget *widget =
  2605. snd_soc_dapm_kcontrol_widget(kcontrol);
  2606. struct snd_soc_dapm_update *update = NULL;
  2607. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2608. ucontrol->value.integer.value[0]);
  2609. if (ucontrol->value.integer.value[0])
  2610. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2611. update);
  2612. else
  2613. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2614. update);
  2615. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2616. return 1;
  2617. }
  2618. static int msm_routing_get_sen_mi2s_switch_mixer(
  2619. struct snd_kcontrol *kcontrol,
  2620. struct snd_ctl_elem_value *ucontrol)
  2621. {
  2622. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2623. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2624. ucontrol->value.integer.value[0]);
  2625. return 0;
  2626. }
  2627. static int msm_routing_put_sen_mi2s_switch_mixer(
  2628. struct snd_kcontrol *kcontrol,
  2629. struct snd_ctl_elem_value *ucontrol)
  2630. {
  2631. struct snd_soc_dapm_widget *widget =
  2632. snd_soc_dapm_kcontrol_widget(kcontrol);
  2633. struct snd_soc_dapm_update *update = NULL;
  2634. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2635. ucontrol->value.integer.value[0]);
  2636. if (ucontrol->value.integer.value[0])
  2637. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2638. update);
  2639. else
  2640. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2641. update);
  2642. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2643. return 1;
  2644. }
  2645. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2646. struct snd_ctl_elem_value *ucontrol)
  2647. {
  2648. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2649. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2650. ucontrol->value.integer.value[0]);
  2651. return 0;
  2652. }
  2653. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2654. struct snd_ctl_elem_value *ucontrol)
  2655. {
  2656. struct snd_soc_dapm_widget *widget =
  2657. snd_soc_dapm_kcontrol_widget(kcontrol);
  2658. struct snd_soc_dapm_update *update = NULL;
  2659. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2660. ucontrol->value.integer.value[0]);
  2661. if (ucontrol->value.integer.value[0])
  2662. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2663. update);
  2664. else
  2665. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2666. update);
  2667. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2668. return 1;
  2669. }
  2670. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2671. struct snd_ctl_elem_value *ucontrol)
  2672. {
  2673. ucontrol->value.integer.value[0] = lsm_port_index;
  2674. return 0;
  2675. }
  2676. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2677. struct snd_ctl_elem_value *ucontrol)
  2678. {
  2679. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2680. int mux = ucontrol->value.enumerated.item[0];
  2681. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2682. if (mux >= e->items) {
  2683. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2684. return -EINVAL;
  2685. }
  2686. pr_debug("%s: LSM enable %ld\n", __func__,
  2687. ucontrol->value.integer.value[0]);
  2688. switch (ucontrol->value.integer.value[0]) {
  2689. case 1:
  2690. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2691. break;
  2692. case 2:
  2693. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2694. break;
  2695. case 3:
  2696. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2697. break;
  2698. case 4:
  2699. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2700. break;
  2701. case 5:
  2702. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2703. break;
  2704. case 6:
  2705. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2706. break;
  2707. case 7:
  2708. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2709. break;
  2710. case 8:
  2711. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2712. break;
  2713. case 9:
  2714. lsm_port = ADM_LSM_PORT_ID;
  2715. break;
  2716. case 10:
  2717. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2718. break;
  2719. case 11:
  2720. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2721. break;
  2722. case 12:
  2723. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2724. break;
  2725. case 13:
  2726. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2727. break;
  2728. case 14:
  2729. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2730. break;
  2731. case 15:
  2732. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2733. break;
  2734. default:
  2735. pr_err("Default lsm port");
  2736. break;
  2737. }
  2738. set_lsm_port(lsm_port);
  2739. lsm_port_index = ucontrol->value.integer.value[0];
  2740. return 0;
  2741. }
  2742. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2743. struct snd_ctl_elem_value *ucontrol)
  2744. {
  2745. int i;
  2746. u16 port_id;
  2747. enum afe_mad_type mad_type;
  2748. pr_debug("%s: enter\n", __func__);
  2749. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2750. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2751. strlen(lsm_port_text[i])))
  2752. break;
  2753. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2754. pr_warn("%s: Invalid id name %s\n", __func__,
  2755. kcontrol->id.name);
  2756. return -EINVAL;
  2757. }
  2758. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2759. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2760. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2761. strlen(lsm_port_text[7])))
  2762. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2763. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2764. strlen(lsm_port_text[8])))
  2765. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2766. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2767. strlen(lsm_port_text[10])))
  2768. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2769. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2770. strlen(lsm_port_text[13])))
  2771. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2772. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2773. strlen(lsm_port_text[14])))
  2774. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2775. mad_type = afe_port_get_mad_type(port_id);
  2776. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2777. mad_type);
  2778. switch (mad_type) {
  2779. case MAD_HW_NONE:
  2780. ucontrol->value.integer.value[0] = MADNONE;
  2781. break;
  2782. case MAD_HW_AUDIO:
  2783. ucontrol->value.integer.value[0] = MADAUDIO;
  2784. break;
  2785. case MAD_HW_BEACON:
  2786. ucontrol->value.integer.value[0] = MADBEACON;
  2787. break;
  2788. case MAD_HW_ULTRASOUND:
  2789. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2790. break;
  2791. case MAD_SW_AUDIO:
  2792. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2793. break;
  2794. default:
  2795. pr_warn("%s: Unknown\n", __func__);
  2796. return -EINVAL;
  2797. }
  2798. return 0;
  2799. }
  2800. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2801. struct snd_ctl_elem_value *ucontrol)
  2802. {
  2803. int i;
  2804. u16 port_id;
  2805. enum afe_mad_type mad_type;
  2806. pr_debug("%s: enter\n", __func__);
  2807. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2808. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2809. strlen(lsm_port_text[i])))
  2810. break;
  2811. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2812. pr_warn("%s: Invalid id name %s\n", __func__,
  2813. kcontrol->id.name);
  2814. return -EINVAL;
  2815. }
  2816. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2817. switch (ucontrol->value.integer.value[0]) {
  2818. case MADNONE:
  2819. mad_type = MAD_HW_NONE;
  2820. break;
  2821. case MADAUDIO:
  2822. mad_type = MAD_HW_AUDIO;
  2823. break;
  2824. case MADBEACON:
  2825. mad_type = MAD_HW_BEACON;
  2826. break;
  2827. case MADULTRASOUND:
  2828. mad_type = MAD_HW_ULTRASOUND;
  2829. break;
  2830. case MADSWAUDIO:
  2831. mad_type = MAD_SW_AUDIO;
  2832. break;
  2833. default:
  2834. pr_warn("%s: Unknown\n", __func__);
  2835. return -EINVAL;
  2836. }
  2837. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2838. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2839. strlen(lsm_port_text[7])))
  2840. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2841. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2842. strlen(lsm_port_text[8])))
  2843. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2844. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2845. strlen(lsm_port_text[10])))
  2846. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2847. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2848. strlen(lsm_port_text[13])))
  2849. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2850. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2851. strlen(lsm_port_text[14])))
  2852. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2853. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2854. mad_type);
  2855. return afe_port_set_mad_type(port_id, mad_type);
  2856. }
  2857. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2858. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2859. adm_override_chs_text);
  2860. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2861. {
  2862. int backend_id;
  2863. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2864. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2865. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2866. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2867. } else {
  2868. pr_err("%s: unsupported backend id: %s",
  2869. __func__, kcontrol->id.name);
  2870. return -EINVAL;
  2871. }
  2872. return backend_id;
  2873. }
  2874. static int msm_routing_adm_channel_config_get(
  2875. struct snd_kcontrol *kcontrol,
  2876. struct snd_ctl_elem_value *ucontrol)
  2877. {
  2878. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2879. if (backend_id >= 0) {
  2880. mutex_lock(&routing_lock);
  2881. ucontrol->value.integer.value[0] =
  2882. msm_bedais[backend_id].adm_override_ch;
  2883. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2884. ucontrol->value.integer.value[0], backend_id);
  2885. mutex_unlock(&routing_lock);
  2886. }
  2887. return 0;
  2888. }
  2889. static int msm_routing_adm_channel_config_put(
  2890. struct snd_kcontrol *kcontrol,
  2891. struct snd_ctl_elem_value *ucontrol)
  2892. {
  2893. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2894. if (backend_id >= 0) {
  2895. mutex_lock(&routing_lock);
  2896. msm_bedais[backend_id].adm_override_ch =
  2897. ucontrol->value.integer.value[0];
  2898. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2899. __func__, backend_id,
  2900. msm_bedais[backend_id].adm_override_ch);
  2901. mutex_unlock(&routing_lock);
  2902. }
  2903. return 0;
  2904. }
  2905. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2906. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2907. msm_routing_adm_channel_config_get,
  2908. msm_routing_adm_channel_config_put),
  2909. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2910. msm_routing_adm_channel_config_get,
  2911. msm_routing_adm_channel_config_put),
  2912. };
  2913. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2914. struct snd_ctl_elem_value *ucontrol)
  2915. {
  2916. mutex_lock(&routing_lock);
  2917. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2918. mutex_unlock(&routing_lock);
  2919. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2920. ucontrol->value.integer.value[0]);
  2921. return 0;
  2922. };
  2923. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2924. struct snd_ctl_elem_value *ucontrol)
  2925. {
  2926. struct aanc_data aanc_info;
  2927. mutex_lock(&routing_lock);
  2928. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2929. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2930. ucontrol->value.integer.value[0]);
  2931. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2932. if (ucontrol->value.integer.value[0] == 0) {
  2933. aanc_info.aanc_active = false;
  2934. aanc_info.aanc_tx_port = 0;
  2935. aanc_info.aanc_rx_port = 0;
  2936. } else {
  2937. aanc_info.aanc_active = true;
  2938. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2939. aanc_info.aanc_tx_port =
  2940. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2941. }
  2942. afe_set_aanc_info(&aanc_info);
  2943. mutex_unlock(&routing_lock);
  2944. return 0;
  2945. };
  2946. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2947. struct snd_ctl_elem_value *ucontrol)
  2948. {
  2949. int idx = 0, shift = 0;
  2950. struct soc_mixer_control *mc =
  2951. (struct soc_mixer_control *)kcontrol->private_value;
  2952. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2953. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2954. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2955. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2956. return -EINVAL;
  2957. }
  2958. if (test_bit(shift,
  2959. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2960. ucontrol->value.integer.value[0] = 1;
  2961. else
  2962. ucontrol->value.integer.value[0] = 0;
  2963. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2964. ucontrol->value.integer.value[0]);
  2965. return 0;
  2966. }
  2967. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2968. struct snd_ctl_elem_value *ucontrol)
  2969. {
  2970. int idx = 0, shift = 0;
  2971. struct soc_mixer_control *mc =
  2972. (struct soc_mixer_control *)kcontrol->private_value;
  2973. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2974. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2975. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2976. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2977. return -EINVAL;
  2978. }
  2979. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2980. __func__, mc->shift, mc->rshift,
  2981. ucontrol->value.integer.value[0], idx, shift);
  2982. if (ucontrol->value.integer.value[0]) {
  2983. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2984. msm_bedais[mc->rshift].port_id);
  2985. set_bit(shift,
  2986. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2987. } else {
  2988. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2989. msm_bedais[mc->rshift].port_id);
  2990. clear_bit(shift,
  2991. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2992. }
  2993. return 1;
  2994. }
  2995. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2996. struct snd_ctl_elem_value *ucontrol)
  2997. {
  2998. u16 fe_id = 0;
  2999. fe_id = ((struct soc_mixer_control *)
  3000. kcontrol->private_value)->shift;
  3001. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3002. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3003. return -EINVAL;
  3004. }
  3005. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3006. return 0;
  3007. }
  3008. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3009. struct snd_ctl_elem_value *ucontrol)
  3010. {
  3011. u16 fe_id = 0;
  3012. fe_id = ((struct soc_mixer_control *)
  3013. kcontrol->private_value)->shift;
  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. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3019. return 1;
  3020. }
  3021. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3022. struct snd_ctl_elem_value *ucontrol)
  3023. {
  3024. u16 fe_id = 0;
  3025. fe_id = ((struct soc_multi_mixer_control *)
  3026. kcontrol->private_value)->shift;
  3027. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3028. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3029. return -EINVAL;
  3030. }
  3031. ucontrol->value.integer.value[0] =
  3032. channel_mixer[fe_id].output_channel;
  3033. return 0;
  3034. }
  3035. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3036. struct snd_ctl_elem_value *ucontrol)
  3037. {
  3038. u16 fe_id = 0;
  3039. fe_id = ((struct soc_multi_mixer_control *)
  3040. kcontrol->private_value)->shift;
  3041. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3042. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3043. return -EINVAL;
  3044. }
  3045. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3046. fe_id,
  3047. (unsigned int)(ucontrol->value.integer.value[0]));
  3048. channel_mixer[fe_id].output_channel =
  3049. (unsigned int)(ucontrol->value.integer.value[0]);
  3050. return 1;
  3051. }
  3052. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3053. /* If new backend is added, need update this array */
  3054. static const char *const be_name[] = {
  3055. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3056. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3057. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3058. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3059. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3060. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3061. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3062. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3063. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3064. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3065. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3066. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3067. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3068. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3069. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3070. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3071. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3072. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3073. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3074. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3075. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3076. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3077. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3078. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3079. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3080. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3081. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3082. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3083. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3084. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3085. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3086. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3087. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3088. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3089. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3090. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3091. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3092. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3093. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3094. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3095. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3096. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3097. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3098. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3099. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3100. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3101. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3102. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3103. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3104. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3105. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3106. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3107. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3108. "SEC_META_MI2S_RX"
  3109. };
  3110. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3111. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3112. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3113. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3114. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3115. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3116. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3117. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3118. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3119. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3120. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3121. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3122. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3123. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3124. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3126. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3128. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3129. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3130. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3132. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3134. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3136. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3138. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3140. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3142. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3144. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3146. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3148. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3158. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3159. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3160. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3161. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3162. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3163. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3164. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3165. unsigned int channels,
  3166. unsigned int items, const char *const names[])
  3167. {
  3168. if (uinfo->value.enumerated.item >= items)
  3169. uinfo->value.enumerated.item = items - 1;
  3170. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3171. sizeof(uinfo->value.enumerated.name),
  3172. "ALSA: too long item name '%s'\n",
  3173. names[uinfo->value.enumerated.item]);
  3174. strlcpy(uinfo->value.enumerated.name,
  3175. names[uinfo->value.enumerated.item],
  3176. sizeof(uinfo->value.enumerated.name));
  3177. return 0;
  3178. }
  3179. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3180. struct snd_ctl_elem_info *uinfo)
  3181. {
  3182. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3183. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3184. uinfo->count = 1;
  3185. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3186. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3187. return 0;
  3188. }
  3189. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3190. struct snd_ctl_elem_value *ucontrol)
  3191. {
  3192. u16 fe_id = 0;
  3193. fe_id = ((struct soc_enum *)
  3194. kcontrol->private_value)->shift_l;
  3195. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3196. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3197. return -EINVAL;
  3198. }
  3199. pr_debug("%s: FE %d %s\n", __func__,
  3200. fe_id,
  3201. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3202. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3203. return 0;
  3204. }
  3205. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3206. struct snd_ctl_elem_value *ucontrol)
  3207. {
  3208. u16 fe_id = 0;
  3209. fe_id = ((struct soc_enum *)
  3210. kcontrol->private_value)->shift_l;
  3211. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3212. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3213. return -EINVAL;
  3214. }
  3215. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3216. pr_debug("%s: %s FE %d\n", __func__,
  3217. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3218. fe_id);
  3219. return 0;
  3220. }
  3221. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3222. struct snd_ctl_elem_info *uinfo)
  3223. {
  3224. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3225. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3226. uinfo->count = 1;
  3227. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3228. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3229. return 0;
  3230. }
  3231. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3232. struct snd_ctl_elem_value *ucontrol)
  3233. {
  3234. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3235. u16 fe_id = 0, in_ch = 0;
  3236. fe_id = e->shift_l;
  3237. in_ch = e->shift_r;
  3238. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3239. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3240. return -EINVAL;
  3241. }
  3242. if (in_ch >= ADM_MAX_CHANNELS) {
  3243. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3244. return -EINVAL;
  3245. }
  3246. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3247. return 1;
  3248. }
  3249. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3250. struct snd_ctl_elem_value *ucontrol)
  3251. {
  3252. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3253. u16 fe_id = 0, in_ch = 0;
  3254. fe_id = e->shift_l;
  3255. in_ch = e->shift_r;
  3256. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3257. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3258. return -EINVAL;
  3259. }
  3260. if (in_ch >= ADM_MAX_CHANNELS) {
  3261. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3262. return -EINVAL;
  3263. }
  3264. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3265. return 1;
  3266. }
  3267. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3268. struct snd_ctl_elem_info *uinfo)
  3269. {
  3270. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3271. uinfo->count = ADM_MAX_CHANNELS;
  3272. uinfo->value.integer.min = 0;
  3273. uinfo->value.integer.max = WEIGHT_0_DB;
  3274. return 0;
  3275. }
  3276. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3277. struct snd_ctl_elem_value *ucontrol)
  3278. {
  3279. u16 fe_id = 0, out_ch = 0;
  3280. int i, weight;
  3281. fe_id = ((struct soc_multi_mixer_control *)
  3282. kcontrol->private_value)->shift;
  3283. out_ch = ((struct soc_multi_mixer_control *)
  3284. kcontrol->private_value)->rshift;
  3285. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3286. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3287. return -EINVAL;
  3288. }
  3289. if (out_ch >= ADM_MAX_CHANNELS) {
  3290. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3291. return -EINVAL;
  3292. }
  3293. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3294. __func__, fe_id,
  3295. ucontrol->value.integer.value[0],
  3296. ucontrol->value.integer.value[1],
  3297. ucontrol->value.integer.value[2],
  3298. ucontrol->value.integer.value[3],
  3299. ucontrol->value.integer.value[4],
  3300. ucontrol->value.integer.value[5],
  3301. ucontrol->value.integer.value[6],
  3302. ucontrol->value.integer.value[7]);
  3303. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3304. weight = ucontrol->value.integer.value[i];
  3305. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3306. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3307. __func__, fe_id, out_ch, i,
  3308. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3309. }
  3310. return 0;
  3311. }
  3312. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3313. struct snd_ctl_elem_value *ucontrol)
  3314. {
  3315. u16 fe_id = 0, out_ch = 0;
  3316. int i;
  3317. fe_id = ((struct soc_multi_mixer_control *)
  3318. kcontrol->private_value)->shift;
  3319. out_ch = ((struct soc_multi_mixer_control *)
  3320. kcontrol->private_value)->rshift;
  3321. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3322. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3323. return -EINVAL;
  3324. }
  3325. if (out_ch >= ADM_MAX_CHANNELS) {
  3326. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3327. return -EINVAL;
  3328. }
  3329. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3330. ucontrol->value.integer.value[i] =
  3331. channel_mixer[fe_id].channel_weight[out_ch][i];
  3332. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3333. __func__, fe_id,
  3334. ucontrol->value.integer.value[0],
  3335. ucontrol->value.integer.value[1],
  3336. ucontrol->value.integer.value[2],
  3337. ucontrol->value.integer.value[3],
  3338. ucontrol->value.integer.value[4],
  3339. ucontrol->value.integer.value[5],
  3340. ucontrol->value.integer.value[6],
  3341. ucontrol->value.integer.value[7]);
  3342. return 0;
  3343. }
  3344. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3345. struct snd_ctl_elem_info *uinfo)
  3346. {
  3347. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3348. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3349. /* Valid channel map value ranges from 1 to 64 */
  3350. uinfo->value.integer.min = 0;
  3351. uinfo->value.integer.max = 64;
  3352. return 0;
  3353. }
  3354. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3355. struct snd_ctl_elem_value *ucontrol)
  3356. {
  3357. u16 fe_id = 0;
  3358. int i, ch_map;
  3359. fe_id = ((struct soc_multi_mixer_control *)
  3360. kcontrol->private_value)->shift;
  3361. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3362. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3363. return -EINVAL;
  3364. }
  3365. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3366. ch_map = ucontrol->value.integer.value[i];
  3367. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3368. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3369. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3370. }
  3371. /* Make override_out_ch_map false if ch map is reset */
  3372. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3373. channel_mixer[fe_id].override_out_ch_map = false;
  3374. else
  3375. channel_mixer[fe_id].override_out_ch_map = true;
  3376. return 0;
  3377. }
  3378. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3379. struct snd_ctl_elem_value *ucontrol)
  3380. {
  3381. u16 fe_id = 0;
  3382. int i;
  3383. fe_id = ((struct soc_multi_mixer_control *)
  3384. kcontrol->private_value)->shift;
  3385. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3386. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3387. return -EINVAL;
  3388. }
  3389. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3390. ucontrol->value.integer.value[i] =
  3391. channel_mixer[fe_id].out_ch_map[i];
  3392. return 0;
  3393. }
  3394. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3395. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3396. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3397. msm_pcm_get_channel_rule_index,
  3398. msm_pcm_put_channel_rule_index),
  3399. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3400. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3401. msm_pcm_get_channel_rule_index,
  3402. msm_pcm_put_channel_rule_index),
  3403. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3404. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3405. msm_pcm_get_channel_rule_index,
  3406. msm_pcm_put_channel_rule_index),
  3407. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3408. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3409. msm_pcm_get_channel_rule_index,
  3410. msm_pcm_put_channel_rule_index),
  3411. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3412. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3413. msm_pcm_get_channel_rule_index,
  3414. msm_pcm_put_channel_rule_index),
  3415. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3416. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3417. msm_pcm_get_channel_rule_index,
  3418. msm_pcm_put_channel_rule_index),
  3419. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3420. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3421. msm_pcm_get_channel_rule_index,
  3422. msm_pcm_put_channel_rule_index),
  3423. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3424. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3425. msm_pcm_get_channel_rule_index,
  3426. msm_pcm_put_channel_rule_index),
  3427. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3428. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3429. msm_pcm_get_channel_rule_index,
  3430. msm_pcm_put_channel_rule_index),
  3431. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3432. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3433. msm_pcm_get_channel_rule_index,
  3434. msm_pcm_put_channel_rule_index),
  3435. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3436. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3437. msm_pcm_get_channel_rule_index,
  3438. msm_pcm_put_channel_rule_index),
  3439. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3441. msm_pcm_get_out_chs,
  3442. msm_pcm_put_out_chs),
  3443. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3444. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3445. msm_pcm_get_out_chs,
  3446. msm_pcm_put_out_chs),
  3447. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3448. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3449. msm_pcm_get_out_chs,
  3450. msm_pcm_put_out_chs),
  3451. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3452. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3453. msm_pcm_get_out_chs,
  3454. msm_pcm_put_out_chs),
  3455. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3456. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3457. msm_pcm_get_out_chs,
  3458. msm_pcm_put_out_chs),
  3459. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3460. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3461. msm_pcm_get_out_chs,
  3462. msm_pcm_put_out_chs),
  3463. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3464. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3465. msm_pcm_get_out_chs,
  3466. msm_pcm_put_out_chs),
  3467. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3468. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3469. msm_pcm_get_out_chs,
  3470. msm_pcm_put_out_chs),
  3471. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3472. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3473. msm_pcm_get_out_chs,
  3474. msm_pcm_put_out_chs),
  3475. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3476. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3477. msm_pcm_get_out_chs,
  3478. msm_pcm_put_out_chs),
  3479. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3480. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3481. msm_pcm_get_out_chs,
  3482. msm_pcm_put_out_chs),
  3483. {
  3484. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3485. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3486. .name = "MultiMedia1 Channel Mixer",
  3487. .info = msm_pcm_channel_mixer_info,
  3488. .get = msm_pcm_channel_mixer_get,
  3489. .put = msm_pcm_channel_mixer_put,
  3490. .private_value = (unsigned long)&(mm1_channel_mux)
  3491. },
  3492. {
  3493. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3494. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3495. .name = "MultiMedia2 Channel Mixer",
  3496. .info = msm_pcm_channel_mixer_info,
  3497. .get = msm_pcm_channel_mixer_get,
  3498. .put = msm_pcm_channel_mixer_put,
  3499. .private_value = (unsigned long)&(mm2_channel_mux)
  3500. },
  3501. {
  3502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3504. .name = "MultiMedia3 Channel Mixer",
  3505. .info = msm_pcm_channel_mixer_info,
  3506. .get = msm_pcm_channel_mixer_get,
  3507. .put = msm_pcm_channel_mixer_put,
  3508. .private_value = (unsigned long)&(mm3_channel_mux)
  3509. },
  3510. {
  3511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3513. .name = "MultiMedia4 Channel Mixer",
  3514. .info = msm_pcm_channel_mixer_info,
  3515. .get = msm_pcm_channel_mixer_get,
  3516. .put = msm_pcm_channel_mixer_put,
  3517. .private_value = (unsigned long)&(mm4_channel_mux)
  3518. },
  3519. {
  3520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3521. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3522. .name = "MultiMedia18 Channel Mixer",
  3523. .info = msm_pcm_channel_mixer_info,
  3524. .get = msm_pcm_channel_mixer_get,
  3525. .put = msm_pcm_channel_mixer_put,
  3526. .private_value = (unsigned long)&(mm18_channel_mux)
  3527. },
  3528. {
  3529. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3531. .name = "MultiMedia19 Channel Mixer",
  3532. .info = msm_pcm_channel_mixer_info,
  3533. .get = msm_pcm_channel_mixer_get,
  3534. .put = msm_pcm_channel_mixer_put,
  3535. .private_value = (unsigned long)&(mm19_channel_mux)
  3536. },
  3537. {
  3538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3539. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3540. .name = "MultiMedia28 Channel Mixer",
  3541. .info = msm_pcm_channel_mixer_info,
  3542. .get = msm_pcm_channel_mixer_get,
  3543. .put = msm_pcm_channel_mixer_put,
  3544. .private_value = (unsigned long)&(mm28_channel_mux)
  3545. },
  3546. {
  3547. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3548. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3549. .name = "MultiMedia29 Channel Mixer",
  3550. .info = msm_pcm_channel_mixer_info,
  3551. .get = msm_pcm_channel_mixer_get,
  3552. .put = msm_pcm_channel_mixer_put,
  3553. .private_value = (unsigned long)&(mm29_channel_mux)
  3554. },
  3555. {
  3556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3558. .name = "MultiMedia30 Channel Mixer",
  3559. .info = msm_pcm_channel_mixer_info,
  3560. .get = msm_pcm_channel_mixer_get,
  3561. .put = msm_pcm_channel_mixer_put,
  3562. .private_value = (unsigned long)&(mm30_channel_mux)
  3563. },
  3564. {
  3565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3566. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3567. .name = "MultiMedia1 Output Channel1",
  3568. .info = msm_pcm_channel_weight_info,
  3569. .get = msm_pcm_channel_weight_get,
  3570. .put = msm_pcm_channel_weight_put,
  3571. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3572. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3573. },
  3574. {
  3575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3577. .name = "MultiMedia1 Output Channel2",
  3578. .info = msm_pcm_channel_weight_info,
  3579. .get = msm_pcm_channel_weight_get,
  3580. .put = msm_pcm_channel_weight_put,
  3581. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3582. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3583. },
  3584. {
  3585. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3587. .name = "MultiMedia1 Output Channel3",
  3588. .info = msm_pcm_channel_weight_info,
  3589. .get = msm_pcm_channel_weight_get,
  3590. .put = msm_pcm_channel_weight_put,
  3591. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3592. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3593. },
  3594. {
  3595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3597. .name = "MultiMedia1 Output Channel4",
  3598. .info = msm_pcm_channel_weight_info,
  3599. .get = msm_pcm_channel_weight_get,
  3600. .put = msm_pcm_channel_weight_put,
  3601. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3602. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3603. },
  3604. {
  3605. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3606. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3607. .name = "MultiMedia1 Output Channel5",
  3608. .info = msm_pcm_channel_weight_info,
  3609. .get = msm_pcm_channel_weight_get,
  3610. .put = msm_pcm_channel_weight_put,
  3611. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3612. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3613. },
  3614. {
  3615. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3616. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3617. .name = "MultiMedia1 Output Channel6",
  3618. .info = msm_pcm_channel_weight_info,
  3619. .get = msm_pcm_channel_weight_get,
  3620. .put = msm_pcm_channel_weight_put,
  3621. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3622. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3623. },
  3624. {
  3625. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3626. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3627. .name = "MultiMedia1 Output Channel7",
  3628. .info = msm_pcm_channel_weight_info,
  3629. .get = msm_pcm_channel_weight_get,
  3630. .put = msm_pcm_channel_weight_put,
  3631. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3632. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3633. },
  3634. {
  3635. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3636. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3637. .name = "MultiMedia1 Output Channel8",
  3638. .info = msm_pcm_channel_weight_info,
  3639. .get = msm_pcm_channel_weight_get,
  3640. .put = msm_pcm_channel_weight_put,
  3641. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3642. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3643. },
  3644. {
  3645. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3646. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3647. .name = "MultiMedia1 Output Channel9",
  3648. .info = msm_pcm_channel_weight_info,
  3649. .get = msm_pcm_channel_weight_get,
  3650. .put = msm_pcm_channel_weight_put,
  3651. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3652. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3653. },
  3654. {
  3655. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3656. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3657. .name = "MultiMedia1 Output Channel10",
  3658. .info = msm_pcm_channel_weight_info,
  3659. .get = msm_pcm_channel_weight_get,
  3660. .put = msm_pcm_channel_weight_put,
  3661. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3662. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3663. },
  3664. {
  3665. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3666. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3667. .name = "MultiMedia1 Output Channel11",
  3668. .info = msm_pcm_channel_weight_info,
  3669. .get = msm_pcm_channel_weight_get,
  3670. .put = msm_pcm_channel_weight_put,
  3671. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3672. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3673. },
  3674. {
  3675. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3676. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3677. .name = "MultiMedia1 Output Channel12",
  3678. .info = msm_pcm_channel_weight_info,
  3679. .get = msm_pcm_channel_weight_get,
  3680. .put = msm_pcm_channel_weight_put,
  3681. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3682. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3683. },
  3684. {
  3685. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3686. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3687. .name = "MultiMedia1 Output Channel13",
  3688. .info = msm_pcm_channel_weight_info,
  3689. .get = msm_pcm_channel_weight_get,
  3690. .put = msm_pcm_channel_weight_put,
  3691. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3692. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3693. },
  3694. {
  3695. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3696. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3697. .name = "MultiMedia1 Output Channel14",
  3698. .info = msm_pcm_channel_weight_info,
  3699. .get = msm_pcm_channel_weight_get,
  3700. .put = msm_pcm_channel_weight_put,
  3701. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3702. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3703. },
  3704. {
  3705. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3706. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3707. .name = "MultiMedia2 Output Channel1",
  3708. .info = msm_pcm_channel_weight_info,
  3709. .get = msm_pcm_channel_weight_get,
  3710. .put = msm_pcm_channel_weight_put,
  3711. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3712. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3713. },
  3714. {
  3715. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3716. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3717. .name = "MultiMedia2 Output Channel2",
  3718. .info = msm_pcm_channel_weight_info,
  3719. .get = msm_pcm_channel_weight_get,
  3720. .put = msm_pcm_channel_weight_put,
  3721. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3722. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3723. },
  3724. {
  3725. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3726. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3727. .name = "MultiMedia2 Output Channel3",
  3728. .info = msm_pcm_channel_weight_info,
  3729. .get = msm_pcm_channel_weight_get,
  3730. .put = msm_pcm_channel_weight_put,
  3731. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3732. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3733. },
  3734. {
  3735. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3736. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3737. .name = "MultiMedia3 Output Channel1",
  3738. .info = msm_pcm_channel_weight_info,
  3739. .get = msm_pcm_channel_weight_get,
  3740. .put = msm_pcm_channel_weight_put,
  3741. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3742. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3743. },
  3744. {
  3745. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3746. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3747. .name = "MultiMedia3 Output Channel2",
  3748. .info = msm_pcm_channel_weight_info,
  3749. .get = msm_pcm_channel_weight_get,
  3750. .put = msm_pcm_channel_weight_put,
  3751. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3752. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3753. },
  3754. {
  3755. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3756. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3757. .name = "MultiMedia18 Output Channel1",
  3758. .info = msm_pcm_channel_weight_info,
  3759. .get = msm_pcm_channel_weight_get,
  3760. .put = msm_pcm_channel_weight_put,
  3761. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3762. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3763. },
  3764. {
  3765. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3766. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3767. .name = "MultiMedia18 Output Channel2",
  3768. .info = msm_pcm_channel_weight_info,
  3769. .get = msm_pcm_channel_weight_get,
  3770. .put = msm_pcm_channel_weight_put,
  3771. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3772. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3773. },
  3774. {
  3775. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3776. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3777. .name = "MultiMedia18 Output Channel3",
  3778. .info = msm_pcm_channel_weight_info,
  3779. .get = msm_pcm_channel_weight_get,
  3780. .put = msm_pcm_channel_weight_put,
  3781. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3782. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3783. },
  3784. {
  3785. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3786. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3787. .name = "MultiMedia18 Output Channel4",
  3788. .info = msm_pcm_channel_weight_info,
  3789. .get = msm_pcm_channel_weight_get,
  3790. .put = msm_pcm_channel_weight_put,
  3791. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3792. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3793. },
  3794. {
  3795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3796. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3797. .name = "MultiMedia18 Output Channel5",
  3798. .info = msm_pcm_channel_weight_info,
  3799. .get = msm_pcm_channel_weight_get,
  3800. .put = msm_pcm_channel_weight_put,
  3801. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3802. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3803. },
  3804. {
  3805. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3806. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3807. .name = "MultiMedia18 Output Channel6",
  3808. .info = msm_pcm_channel_weight_info,
  3809. .get = msm_pcm_channel_weight_get,
  3810. .put = msm_pcm_channel_weight_put,
  3811. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3812. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3813. },
  3814. {
  3815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3816. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3817. .name = "MultiMedia18 Output Channel7",
  3818. .info = msm_pcm_channel_weight_info,
  3819. .get = msm_pcm_channel_weight_get,
  3820. .put = msm_pcm_channel_weight_put,
  3821. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3822. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3823. },
  3824. {
  3825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3826. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3827. .name = "MultiMedia18 Output Channel8",
  3828. .info = msm_pcm_channel_weight_info,
  3829. .get = msm_pcm_channel_weight_get,
  3830. .put = msm_pcm_channel_weight_put,
  3831. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3832. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3833. },
  3834. {
  3835. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3836. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3837. .name = "MultiMedia18 Output Channel9",
  3838. .info = msm_pcm_channel_weight_info,
  3839. .get = msm_pcm_channel_weight_get,
  3840. .put = msm_pcm_channel_weight_put,
  3841. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3842. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3843. },
  3844. {
  3845. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3846. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3847. .name = "MultiMedia18 Output Channel10",
  3848. .info = msm_pcm_channel_weight_info,
  3849. .get = msm_pcm_channel_weight_get,
  3850. .put = msm_pcm_channel_weight_put,
  3851. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3852. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3853. },
  3854. {
  3855. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3856. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3857. .name = "MultiMedia18 Output Channel11",
  3858. .info = msm_pcm_channel_weight_info,
  3859. .get = msm_pcm_channel_weight_get,
  3860. .put = msm_pcm_channel_weight_put,
  3861. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3862. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3863. },
  3864. {
  3865. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3866. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3867. .name = "MultiMedia18 Output Channel12",
  3868. .info = msm_pcm_channel_weight_info,
  3869. .get = msm_pcm_channel_weight_get,
  3870. .put = msm_pcm_channel_weight_put,
  3871. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3872. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3873. },
  3874. {
  3875. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3876. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3877. .name = "MultiMedia18 Output Channel13",
  3878. .info = msm_pcm_channel_weight_info,
  3879. .get = msm_pcm_channel_weight_get,
  3880. .put = msm_pcm_channel_weight_put,
  3881. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3882. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3883. },
  3884. {
  3885. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3886. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3887. .name = "MultiMedia18 Output Channel14",
  3888. .info = msm_pcm_channel_weight_info,
  3889. .get = msm_pcm_channel_weight_get,
  3890. .put = msm_pcm_channel_weight_put,
  3891. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3892. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3893. },
  3894. {
  3895. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3896. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3897. .name = "MultiMedia19 Output Channel1",
  3898. .info = msm_pcm_channel_weight_info,
  3899. .get = msm_pcm_channel_weight_get,
  3900. .put = msm_pcm_channel_weight_put,
  3901. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3902. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3903. },
  3904. {
  3905. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3906. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3907. .name = "MultiMedia19 Output Channel2",
  3908. .info = msm_pcm_channel_weight_info,
  3909. .get = msm_pcm_channel_weight_get,
  3910. .put = msm_pcm_channel_weight_put,
  3911. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3912. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3913. },
  3914. {
  3915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3916. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3917. .name = "MultiMedia19 Output Channel3",
  3918. .info = msm_pcm_channel_weight_info,
  3919. .get = msm_pcm_channel_weight_get,
  3920. .put = msm_pcm_channel_weight_put,
  3921. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3922. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3923. },
  3924. {
  3925. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3926. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3927. .name = "MultiMedia19 Output Channel4",
  3928. .info = msm_pcm_channel_weight_info,
  3929. .get = msm_pcm_channel_weight_get,
  3930. .put = msm_pcm_channel_weight_put,
  3931. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3932. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3933. },
  3934. {
  3935. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3936. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3937. .name = "MultiMedia19 Output Channel5",
  3938. .info = msm_pcm_channel_weight_info,
  3939. .get = msm_pcm_channel_weight_get,
  3940. .put = msm_pcm_channel_weight_put,
  3941. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3942. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3943. },
  3944. {
  3945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3946. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3947. .name = "MultiMedia19 Output Channel6",
  3948. .info = msm_pcm_channel_weight_info,
  3949. .get = msm_pcm_channel_weight_get,
  3950. .put = msm_pcm_channel_weight_put,
  3951. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3952. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3953. },
  3954. {
  3955. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3956. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3957. .name = "MultiMedia19 Output Channel7",
  3958. .info = msm_pcm_channel_weight_info,
  3959. .get = msm_pcm_channel_weight_get,
  3960. .put = msm_pcm_channel_weight_put,
  3961. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3962. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3963. },
  3964. {
  3965. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3966. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3967. .name = "MultiMedia19 Output Channel8",
  3968. .info = msm_pcm_channel_weight_info,
  3969. .get = msm_pcm_channel_weight_get,
  3970. .put = msm_pcm_channel_weight_put,
  3971. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3972. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3973. },
  3974. {
  3975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3976. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3977. .name = "MultiMedia19 Output Channel9",
  3978. .info = msm_pcm_channel_weight_info,
  3979. .get = msm_pcm_channel_weight_get,
  3980. .put = msm_pcm_channel_weight_put,
  3981. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3982. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3983. },
  3984. {
  3985. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3986. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3987. .name = "MultiMedia19 Output Channel10",
  3988. .info = msm_pcm_channel_weight_info,
  3989. .get = msm_pcm_channel_weight_get,
  3990. .put = msm_pcm_channel_weight_put,
  3991. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3992. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  3993. },
  3994. {
  3995. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3996. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3997. .name = "MultiMedia19 Output Channel11",
  3998. .info = msm_pcm_channel_weight_info,
  3999. .get = msm_pcm_channel_weight_get,
  4000. .put = msm_pcm_channel_weight_put,
  4001. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4002. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4003. },
  4004. {
  4005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4006. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4007. .name = "MultiMedia19 Output Channel12",
  4008. .info = msm_pcm_channel_weight_info,
  4009. .get = msm_pcm_channel_weight_get,
  4010. .put = msm_pcm_channel_weight_put,
  4011. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4012. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4013. },
  4014. {
  4015. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4016. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4017. .name = "MultiMedia19 Output Channel13",
  4018. .info = msm_pcm_channel_weight_info,
  4019. .get = msm_pcm_channel_weight_get,
  4020. .put = msm_pcm_channel_weight_put,
  4021. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4022. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4023. },
  4024. {
  4025. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4026. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4027. .name = "MultiMedia19 Output Channel14",
  4028. .info = msm_pcm_channel_weight_info,
  4029. .get = msm_pcm_channel_weight_get,
  4030. .put = msm_pcm_channel_weight_put,
  4031. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4032. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4033. },
  4034. {
  4035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4036. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4037. .name = "MultiMedia28 Output Channel1",
  4038. .info = msm_pcm_channel_weight_info,
  4039. .get = msm_pcm_channel_weight_get,
  4040. .put = msm_pcm_channel_weight_put,
  4041. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4042. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4043. },
  4044. {
  4045. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4046. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4047. .name = "MultiMedia28 Output Channel2",
  4048. .info = msm_pcm_channel_weight_info,
  4049. .get = msm_pcm_channel_weight_get,
  4050. .put = msm_pcm_channel_weight_put,
  4051. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4052. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4053. },
  4054. {
  4055. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4056. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4057. .name = "MultiMedia28 Output Channel3",
  4058. .info = msm_pcm_channel_weight_info,
  4059. .get = msm_pcm_channel_weight_get,
  4060. .put = msm_pcm_channel_weight_put,
  4061. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4062. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4063. },
  4064. {
  4065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4066. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4067. .name = "MultiMedia28 Output Channel4",
  4068. .info = msm_pcm_channel_weight_info,
  4069. .get = msm_pcm_channel_weight_get,
  4070. .put = msm_pcm_channel_weight_put,
  4071. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4072. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4073. },
  4074. {
  4075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4076. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4077. .name = "MultiMedia28 Output Channel5",
  4078. .info = msm_pcm_channel_weight_info,
  4079. .get = msm_pcm_channel_weight_get,
  4080. .put = msm_pcm_channel_weight_put,
  4081. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4082. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4083. },
  4084. {
  4085. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4086. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4087. .name = "MultiMedia28 Output Channel6",
  4088. .info = msm_pcm_channel_weight_info,
  4089. .get = msm_pcm_channel_weight_get,
  4090. .put = msm_pcm_channel_weight_put,
  4091. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4092. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4093. },
  4094. {
  4095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4096. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4097. .name = "MultiMedia28 Output Channel7",
  4098. .info = msm_pcm_channel_weight_info,
  4099. .get = msm_pcm_channel_weight_get,
  4100. .put = msm_pcm_channel_weight_put,
  4101. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4102. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4103. },
  4104. {
  4105. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4106. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4107. .name = "MultiMedia28 Output Channel8",
  4108. .info = msm_pcm_channel_weight_info,
  4109. .get = msm_pcm_channel_weight_get,
  4110. .put = msm_pcm_channel_weight_put,
  4111. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4112. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4113. },
  4114. {
  4115. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4116. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4117. .name = "MultiMedia28 Output Channel9",
  4118. .info = msm_pcm_channel_weight_info,
  4119. .get = msm_pcm_channel_weight_get,
  4120. .put = msm_pcm_channel_weight_put,
  4121. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4122. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4123. },
  4124. {
  4125. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4126. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4127. .name = "MultiMedia28 Output Channel10",
  4128. .info = msm_pcm_channel_weight_info,
  4129. .get = msm_pcm_channel_weight_get,
  4130. .put = msm_pcm_channel_weight_put,
  4131. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4132. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4133. },
  4134. {
  4135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4136. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4137. .name = "MultiMedia28 Output Channel11",
  4138. .info = msm_pcm_channel_weight_info,
  4139. .get = msm_pcm_channel_weight_get,
  4140. .put = msm_pcm_channel_weight_put,
  4141. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4142. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4143. },
  4144. {
  4145. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4146. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4147. .name = "MultiMedia28 Output Channel12",
  4148. .info = msm_pcm_channel_weight_info,
  4149. .get = msm_pcm_channel_weight_get,
  4150. .put = msm_pcm_channel_weight_put,
  4151. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4152. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4153. },
  4154. {
  4155. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4156. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4157. .name = "MultiMedia28 Output Channel13",
  4158. .info = msm_pcm_channel_weight_info,
  4159. .get = msm_pcm_channel_weight_get,
  4160. .put = msm_pcm_channel_weight_put,
  4161. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4162. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4163. },
  4164. {
  4165. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4166. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4167. .name = "MultiMedia28 Output Channel14",
  4168. .info = msm_pcm_channel_weight_info,
  4169. .get = msm_pcm_channel_weight_get,
  4170. .put = msm_pcm_channel_weight_put,
  4171. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4172. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4173. },
  4174. {
  4175. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4176. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4177. .name = "MultiMedia29 Output Channel1",
  4178. .info = msm_pcm_channel_weight_info,
  4179. .get = msm_pcm_channel_weight_get,
  4180. .put = msm_pcm_channel_weight_put,
  4181. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4182. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4183. },
  4184. {
  4185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4187. .name = "MultiMedia29 Output Channel2",
  4188. .info = msm_pcm_channel_weight_info,
  4189. .get = msm_pcm_channel_weight_get,
  4190. .put = msm_pcm_channel_weight_put,
  4191. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4192. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4193. },
  4194. {
  4195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4197. .name = "MultiMedia29 Output Channel3",
  4198. .info = msm_pcm_channel_weight_info,
  4199. .get = msm_pcm_channel_weight_get,
  4200. .put = msm_pcm_channel_weight_put,
  4201. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4202. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4203. },
  4204. {
  4205. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4206. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4207. .name = "MultiMedia29 Output Channel4",
  4208. .info = msm_pcm_channel_weight_info,
  4209. .get = msm_pcm_channel_weight_get,
  4210. .put = msm_pcm_channel_weight_put,
  4211. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4212. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4213. },
  4214. {
  4215. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4216. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4217. .name = "MultiMedia29 Output Channel5",
  4218. .info = msm_pcm_channel_weight_info,
  4219. .get = msm_pcm_channel_weight_get,
  4220. .put = msm_pcm_channel_weight_put,
  4221. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4222. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4223. },
  4224. {
  4225. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4226. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4227. .name = "MultiMedia29 Output Channel6",
  4228. .info = msm_pcm_channel_weight_info,
  4229. .get = msm_pcm_channel_weight_get,
  4230. .put = msm_pcm_channel_weight_put,
  4231. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4232. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4233. },
  4234. {
  4235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4236. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4237. .name = "MultiMedia29 Output Channel7",
  4238. .info = msm_pcm_channel_weight_info,
  4239. .get = msm_pcm_channel_weight_get,
  4240. .put = msm_pcm_channel_weight_put,
  4241. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4242. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4243. },
  4244. {
  4245. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4246. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4247. .name = "MultiMedia29 Output Channel8",
  4248. .info = msm_pcm_channel_weight_info,
  4249. .get = msm_pcm_channel_weight_get,
  4250. .put = msm_pcm_channel_weight_put,
  4251. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4252. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4253. },
  4254. {
  4255. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4256. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4257. .name = "MultiMedia29 Output Channel9",
  4258. .info = msm_pcm_channel_weight_info,
  4259. .get = msm_pcm_channel_weight_get,
  4260. .put = msm_pcm_channel_weight_put,
  4261. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4262. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4263. },
  4264. {
  4265. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4266. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4267. .name = "MultiMedia29 Output Channel10",
  4268. .info = msm_pcm_channel_weight_info,
  4269. .get = msm_pcm_channel_weight_get,
  4270. .put = msm_pcm_channel_weight_put,
  4271. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4272. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4273. },
  4274. {
  4275. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4276. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4277. .name = "MultiMedia29 Output Channel11",
  4278. .info = msm_pcm_channel_weight_info,
  4279. .get = msm_pcm_channel_weight_get,
  4280. .put = msm_pcm_channel_weight_put,
  4281. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4282. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4283. },
  4284. {
  4285. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4286. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4287. .name = "MultiMedia29 Output Channel12",
  4288. .info = msm_pcm_channel_weight_info,
  4289. .get = msm_pcm_channel_weight_get,
  4290. .put = msm_pcm_channel_weight_put,
  4291. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4292. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4293. },
  4294. {
  4295. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4296. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4297. .name = "MultiMedia29 Output Channel13",
  4298. .info = msm_pcm_channel_weight_info,
  4299. .get = msm_pcm_channel_weight_get,
  4300. .put = msm_pcm_channel_weight_put,
  4301. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4302. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4303. },
  4304. {
  4305. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4306. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4307. .name = "MultiMedia29 Output Channel14",
  4308. .info = msm_pcm_channel_weight_info,
  4309. .get = msm_pcm_channel_weight_get,
  4310. .put = msm_pcm_channel_weight_put,
  4311. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4312. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4313. },
  4314. {
  4315. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4316. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4317. .name = "MultiMedia30 Output Channel1",
  4318. .info = msm_pcm_channel_weight_info,
  4319. .get = msm_pcm_channel_weight_get,
  4320. .put = msm_pcm_channel_weight_put,
  4321. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4322. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4323. },
  4324. {
  4325. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4326. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4327. .name = "MultiMedia30 Output Channel2",
  4328. .info = msm_pcm_channel_weight_info,
  4329. .get = msm_pcm_channel_weight_get,
  4330. .put = msm_pcm_channel_weight_put,
  4331. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4332. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4333. },
  4334. {
  4335. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4336. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4337. .name = "MultiMedia30 Output Channel3",
  4338. .info = msm_pcm_channel_weight_info,
  4339. .get = msm_pcm_channel_weight_get,
  4340. .put = msm_pcm_channel_weight_put,
  4341. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4342. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4343. },
  4344. {
  4345. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4346. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4347. .name = "MultiMedia30 Output Channel4",
  4348. .info = msm_pcm_channel_weight_info,
  4349. .get = msm_pcm_channel_weight_get,
  4350. .put = msm_pcm_channel_weight_put,
  4351. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4352. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4353. },
  4354. {
  4355. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4356. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4357. .name = "MultiMedia30 Output Channel5",
  4358. .info = msm_pcm_channel_weight_info,
  4359. .get = msm_pcm_channel_weight_get,
  4360. .put = msm_pcm_channel_weight_put,
  4361. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4362. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4363. },
  4364. {
  4365. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4366. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4367. .name = "MultiMedia30 Output Channel6",
  4368. .info = msm_pcm_channel_weight_info,
  4369. .get = msm_pcm_channel_weight_get,
  4370. .put = msm_pcm_channel_weight_put,
  4371. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4372. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4373. },
  4374. {
  4375. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4376. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4377. .name = "MultiMedia30 Output Channel7",
  4378. .info = msm_pcm_channel_weight_info,
  4379. .get = msm_pcm_channel_weight_get,
  4380. .put = msm_pcm_channel_weight_put,
  4381. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4382. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4383. },
  4384. {
  4385. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4386. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4387. .name = "MultiMedia30 Output Channel8",
  4388. .info = msm_pcm_channel_weight_info,
  4389. .get = msm_pcm_channel_weight_get,
  4390. .put = msm_pcm_channel_weight_put,
  4391. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4392. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4393. },
  4394. {
  4395. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4396. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4397. .name = "MultiMedia30 Output Channel9",
  4398. .info = msm_pcm_channel_weight_info,
  4399. .get = msm_pcm_channel_weight_get,
  4400. .put = msm_pcm_channel_weight_put,
  4401. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4402. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4403. },
  4404. {
  4405. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4406. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4407. .name = "MultiMedia30 Output Channel10",
  4408. .info = msm_pcm_channel_weight_info,
  4409. .get = msm_pcm_channel_weight_get,
  4410. .put = msm_pcm_channel_weight_put,
  4411. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4412. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4413. },
  4414. {
  4415. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4416. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4417. .name = "MultiMedia30 Output Channel11",
  4418. .info = msm_pcm_channel_weight_info,
  4419. .get = msm_pcm_channel_weight_get,
  4420. .put = msm_pcm_channel_weight_put,
  4421. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4422. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4423. },
  4424. {
  4425. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4426. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4427. .name = "MultiMedia30 Output Channel12",
  4428. .info = msm_pcm_channel_weight_info,
  4429. .get = msm_pcm_channel_weight_get,
  4430. .put = msm_pcm_channel_weight_put,
  4431. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4432. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4433. },
  4434. {
  4435. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4436. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4437. .name = "MultiMedia30 Output Channel13",
  4438. .info = msm_pcm_channel_weight_info,
  4439. .get = msm_pcm_channel_weight_get,
  4440. .put = msm_pcm_channel_weight_put,
  4441. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4442. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4443. },
  4444. {
  4445. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4446. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4447. .name = "MultiMedia30 Output Channel14",
  4448. .info = msm_pcm_channel_weight_info,
  4449. .get = msm_pcm_channel_weight_get,
  4450. .put = msm_pcm_channel_weight_put,
  4451. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4452. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4453. },
  4454. {
  4455. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4456. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4457. .name = "MultiMedia1 Channel1",
  4458. .info = msm_pcm_channel_input_be_info,
  4459. .get = msm_pcm_channel_input_be_get,
  4460. .put = msm_pcm_channel_input_be_put,
  4461. .private_value = (unsigned long)&(mm1_ch1_enum)
  4462. },
  4463. {
  4464. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4465. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4466. .name = "MultiMedia1 Channel2",
  4467. .info = msm_pcm_channel_input_be_info,
  4468. .get = msm_pcm_channel_input_be_get,
  4469. .put = msm_pcm_channel_input_be_put,
  4470. .private_value = (unsigned long)&(mm1_ch2_enum)
  4471. },
  4472. {
  4473. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4474. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4475. .name = "MultiMedia1 Channel3",
  4476. .info = msm_pcm_channel_input_be_info,
  4477. .get = msm_pcm_channel_input_be_get,
  4478. .put = msm_pcm_channel_input_be_put,
  4479. .private_value = (unsigned long)&(mm1_ch3_enum)
  4480. },
  4481. {
  4482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4483. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4484. .name = "MultiMedia1 Channel4",
  4485. .info = msm_pcm_channel_input_be_info,
  4486. .get = msm_pcm_channel_input_be_get,
  4487. .put = msm_pcm_channel_input_be_put,
  4488. .private_value = (unsigned long)&(mm1_ch4_enum)
  4489. },
  4490. {
  4491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4492. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4493. .name = "MultiMedia1 Channel5",
  4494. .info = msm_pcm_channel_input_be_info,
  4495. .get = msm_pcm_channel_input_be_get,
  4496. .put = msm_pcm_channel_input_be_put,
  4497. .private_value = (unsigned long)&(mm1_ch5_enum)
  4498. },
  4499. {
  4500. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4501. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4502. .name = "MultiMedia1 Channel6",
  4503. .info = msm_pcm_channel_input_be_info,
  4504. .get = msm_pcm_channel_input_be_get,
  4505. .put = msm_pcm_channel_input_be_put,
  4506. .private_value = (unsigned long)&(mm1_ch6_enum)
  4507. },
  4508. {
  4509. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4510. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4511. .name = "MultiMedia1 Channel7",
  4512. .info = msm_pcm_channel_input_be_info,
  4513. .get = msm_pcm_channel_input_be_get,
  4514. .put = msm_pcm_channel_input_be_put,
  4515. .private_value = (unsigned long)&(mm1_ch7_enum)
  4516. },
  4517. {
  4518. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4519. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4520. .name = "MultiMedia1 Channel8",
  4521. .info = msm_pcm_channel_input_be_info,
  4522. .get = msm_pcm_channel_input_be_get,
  4523. .put = msm_pcm_channel_input_be_put,
  4524. .private_value = (unsigned long)&(mm1_ch8_enum)
  4525. },
  4526. {
  4527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4528. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4529. .name = "MultiMedia18 Channel1",
  4530. .info = msm_pcm_channel_input_be_info,
  4531. .get = msm_pcm_channel_input_be_get,
  4532. .put = msm_pcm_channel_input_be_put,
  4533. .private_value = (unsigned long)&(mm18_ch1_enum)
  4534. },
  4535. {
  4536. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4537. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4538. .name = "MultiMedia18 Channel2",
  4539. .info = msm_pcm_channel_input_be_info,
  4540. .get = msm_pcm_channel_input_be_get,
  4541. .put = msm_pcm_channel_input_be_put,
  4542. .private_value = (unsigned long)&(mm18_ch2_enum)
  4543. },
  4544. {
  4545. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4546. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4547. .name = "MultiMedia19 Channel1",
  4548. .info = msm_pcm_channel_input_be_info,
  4549. .get = msm_pcm_channel_input_be_get,
  4550. .put = msm_pcm_channel_input_be_put,
  4551. .private_value = (unsigned long)&(mm19_ch1_enum)
  4552. },
  4553. {
  4554. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4555. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4556. .name = "MultiMedia19 Channel2",
  4557. .info = msm_pcm_channel_input_be_info,
  4558. .get = msm_pcm_channel_input_be_get,
  4559. .put = msm_pcm_channel_input_be_put,
  4560. .private_value = (unsigned long)&(mm19_ch2_enum)
  4561. },
  4562. {
  4563. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4564. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4565. .name = "MultiMedia28 Channel1",
  4566. .info = msm_pcm_channel_input_be_info,
  4567. .get = msm_pcm_channel_input_be_get,
  4568. .put = msm_pcm_channel_input_be_put,
  4569. .private_value = (unsigned long)&(mm28_ch1_enum)
  4570. },
  4571. {
  4572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4573. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4574. .name = "MultiMedia28 Channel2",
  4575. .info = msm_pcm_channel_input_be_info,
  4576. .get = msm_pcm_channel_input_be_get,
  4577. .put = msm_pcm_channel_input_be_put,
  4578. .private_value = (unsigned long)&(mm28_ch2_enum)
  4579. },
  4580. {
  4581. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4582. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4583. .name = "MultiMedia29 Channel1",
  4584. .info = msm_pcm_channel_input_be_info,
  4585. .get = msm_pcm_channel_input_be_get,
  4586. .put = msm_pcm_channel_input_be_put,
  4587. .private_value = (unsigned long)&(mm29_ch1_enum)
  4588. },
  4589. {
  4590. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4591. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4592. .name = "MultiMedia29 Channel2",
  4593. .info = msm_pcm_channel_input_be_info,
  4594. .get = msm_pcm_channel_input_be_get,
  4595. .put = msm_pcm_channel_input_be_put,
  4596. .private_value = (unsigned long)&(mm29_ch2_enum)
  4597. },
  4598. {
  4599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4601. .name = "MultiMedia30 Channel1",
  4602. .info = msm_pcm_channel_input_be_info,
  4603. .get = msm_pcm_channel_input_be_get,
  4604. .put = msm_pcm_channel_input_be_put,
  4605. .private_value = (unsigned long)&(mm30_ch1_enum)
  4606. },
  4607. {
  4608. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4609. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4610. .name = "MultiMedia30 Channel2",
  4611. .info = msm_pcm_channel_input_be_info,
  4612. .get = msm_pcm_channel_input_be_get,
  4613. .put = msm_pcm_channel_input_be_put,
  4614. .private_value = (unsigned long)&(mm30_ch2_enum)
  4615. },
  4616. {
  4617. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4618. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4619. .name = "MultiMedia1 Output Channel Map",
  4620. .info = msm_pcm_channel_output_map_info,
  4621. .get = msm_pcm_channel_output_map_get,
  4622. .put = msm_pcm_channel_output_map_put,
  4623. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4624. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4625. },
  4626. {
  4627. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4628. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4629. .name = "MultiMedia2 Output Channel Map",
  4630. .info = msm_pcm_channel_output_map_info,
  4631. .get = msm_pcm_channel_output_map_get,
  4632. .put = msm_pcm_channel_output_map_put,
  4633. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4634. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4635. },
  4636. {
  4637. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4638. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4639. .name = "MultiMedia3 Output Channel Map",
  4640. .info = msm_pcm_channel_output_map_info,
  4641. .get = msm_pcm_channel_output_map_get,
  4642. .put = msm_pcm_channel_output_map_put,
  4643. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4644. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4645. },
  4646. {
  4647. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4648. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4649. .name = "MultiMedia4 Output Channel Map",
  4650. .info = msm_pcm_channel_output_map_info,
  4651. .get = msm_pcm_channel_output_map_get,
  4652. .put = msm_pcm_channel_output_map_put,
  4653. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4654. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4655. },
  4656. {
  4657. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4658. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4659. .name = "MultiMedia5 Output Channel Map",
  4660. .info = msm_pcm_channel_output_map_info,
  4661. .get = msm_pcm_channel_output_map_get,
  4662. .put = msm_pcm_channel_output_map_put,
  4663. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4664. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4665. },
  4666. {
  4667. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4668. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4669. .name = "MultiMedia6 Output Channel Map",
  4670. .info = msm_pcm_channel_output_map_info,
  4671. .get = msm_pcm_channel_output_map_get,
  4672. .put = msm_pcm_channel_output_map_put,
  4673. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4674. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4675. },
  4676. {
  4677. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4678. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4679. .name = "MultiMedia18 Output Channel Map",
  4680. .info = msm_pcm_channel_output_map_info,
  4681. .get = msm_pcm_channel_output_map_get,
  4682. .put = msm_pcm_channel_output_map_put,
  4683. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4684. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4685. },
  4686. {
  4687. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4688. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4689. .name = "MultiMedia19 Output Channel Map",
  4690. .info = msm_pcm_channel_output_map_info,
  4691. .get = msm_pcm_channel_output_map_get,
  4692. .put = msm_pcm_channel_output_map_put,
  4693. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4694. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4695. },
  4696. {
  4697. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4698. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4699. .name = "MultiMedia28 Output Channel Map",
  4700. .info = msm_pcm_channel_output_map_info,
  4701. .get = msm_pcm_channel_output_map_get,
  4702. .put = msm_pcm_channel_output_map_put,
  4703. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4704. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4705. },
  4706. {
  4707. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4708. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4709. .name = "MultiMedia29 Output Channel Map",
  4710. .info = msm_pcm_channel_output_map_info,
  4711. .get = msm_pcm_channel_output_map_get,
  4712. .put = msm_pcm_channel_output_map_put,
  4713. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4714. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4715. },
  4716. {
  4717. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4718. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4719. .name = "MultiMedia30 Output Channel Map",
  4720. .info = msm_pcm_channel_output_map_info,
  4721. .get = msm_pcm_channel_output_map_get,
  4722. .put = msm_pcm_channel_output_map_put,
  4723. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4724. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4725. },
  4726. };
  4727. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4728. struct snd_ctl_elem_value *ucontrol)
  4729. {
  4730. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4731. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4732. ucontrol->value.integer.value[0]);
  4733. return 0;
  4734. }
  4735. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4736. struct snd_ctl_elem_value *ucontrol)
  4737. {
  4738. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4739. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4740. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4741. return 0;
  4742. }
  4743. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4744. struct snd_ctl_elem_value *ucontrol)
  4745. {
  4746. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4747. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4748. ucontrol->value.integer.value[0]);
  4749. return 0;
  4750. }
  4751. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4752. struct snd_ctl_elem_value *ucontrol)
  4753. {
  4754. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4755. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4756. __func__, msm_ec_ref_ch_downmixed);
  4757. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4758. return 0;
  4759. }
  4760. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4761. struct snd_ctl_elem_value *ucontrol)
  4762. {
  4763. int i = 0, ret = 0;
  4764. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4765. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4766. kcontrol->private_value)->shift;
  4767. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4768. weights[i] = ucontrol->value.integer.value[i];
  4769. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4770. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4771. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4772. return ret;
  4773. }
  4774. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4775. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4776. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4777. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4778. struct snd_ctl_elem_value *ucontrol)
  4779. {
  4780. switch (msm_ec_ref_bit_format) {
  4781. case SNDRV_PCM_FORMAT_S24_LE:
  4782. ucontrol->value.integer.value[0] = 2;
  4783. break;
  4784. case SNDRV_PCM_FORMAT_S16_LE:
  4785. ucontrol->value.integer.value[0] = 1;
  4786. break;
  4787. default:
  4788. ucontrol->value.integer.value[0] = 0;
  4789. break;
  4790. }
  4791. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4792. __func__, ucontrol->value.integer.value[0]);
  4793. return 0;
  4794. }
  4795. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4796. struct snd_ctl_elem_value *ucontrol)
  4797. {
  4798. u16 bit_width = 0;
  4799. switch (ucontrol->value.integer.value[0]) {
  4800. case 2:
  4801. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4802. break;
  4803. case 1:
  4804. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4805. break;
  4806. default:
  4807. msm_ec_ref_bit_format = 0;
  4808. break;
  4809. }
  4810. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4811. bit_width = 16;
  4812. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4813. bit_width = 24;
  4814. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4815. __func__, msm_ec_ref_bit_format);
  4816. adm_ec_ref_rx_bit_width(bit_width);
  4817. return 0;
  4818. }
  4819. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4820. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4821. struct snd_ctl_elem_value *ucontrol)
  4822. {
  4823. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4824. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4825. __func__, ucontrol->value.integer.value[0]);
  4826. return 0;
  4827. }
  4828. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4829. struct snd_ctl_elem_value *ucontrol)
  4830. {
  4831. switch (ucontrol->value.integer.value[0]) {
  4832. case 0:
  4833. msm_ec_ref_sampling_rate = 0;
  4834. break;
  4835. case 1:
  4836. msm_ec_ref_sampling_rate = 8000;
  4837. break;
  4838. case 2:
  4839. msm_ec_ref_sampling_rate = 16000;
  4840. break;
  4841. case 3:
  4842. msm_ec_ref_sampling_rate = 32000;
  4843. break;
  4844. case 4:
  4845. msm_ec_ref_sampling_rate = 44100;
  4846. break;
  4847. case 5:
  4848. msm_ec_ref_sampling_rate = 48000;
  4849. break;
  4850. case 6:
  4851. msm_ec_ref_sampling_rate = 96000;
  4852. break;
  4853. case 7:
  4854. msm_ec_ref_sampling_rate = 192000;
  4855. break;
  4856. case 8:
  4857. msm_ec_ref_sampling_rate = 384000;
  4858. break;
  4859. default:
  4860. msm_ec_ref_sampling_rate = 48000;
  4861. break;
  4862. }
  4863. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4864. __func__, msm_ec_ref_sampling_rate);
  4865. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4866. return 0;
  4867. }
  4868. static int get_ec_ref_port_id(int value, int *index)
  4869. {
  4870. int port_id;
  4871. switch (value) {
  4872. case 0:
  4873. *index = 0;
  4874. port_id = AFE_PORT_INVALID;
  4875. break;
  4876. case 1:
  4877. *index = 1;
  4878. port_id = SLIMBUS_0_RX;
  4879. break;
  4880. case 2:
  4881. *index = 2;
  4882. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4883. break;
  4884. case 3:
  4885. *index = 3;
  4886. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4887. break;
  4888. case 4:
  4889. *index = 4;
  4890. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4891. break;
  4892. case 5:
  4893. *index = 5;
  4894. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4895. break;
  4896. case 6:
  4897. *index = 6;
  4898. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4899. break;
  4900. case 7:
  4901. *index = 7;
  4902. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4903. break;
  4904. case 9:
  4905. *index = 9;
  4906. port_id = SLIMBUS_5_RX;
  4907. break;
  4908. case 10:
  4909. *index = 10;
  4910. port_id = SLIMBUS_1_TX;
  4911. break;
  4912. case 11:
  4913. *index = 11;
  4914. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4915. break;
  4916. case 12:
  4917. *index = 12;
  4918. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4919. break;
  4920. case 13:
  4921. *index = 13;
  4922. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4923. break;
  4924. case 14:
  4925. *index = 14;
  4926. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4927. break;
  4928. case 15:
  4929. *index = 15;
  4930. port_id = SLIMBUS_6_RX;
  4931. break;
  4932. case 16:
  4933. *index = 16;
  4934. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4935. break;
  4936. case 17:
  4937. *index = 17;
  4938. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4939. break;
  4940. case 18:
  4941. *index = 18;
  4942. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4943. break;
  4944. case 19:
  4945. *index = 19;
  4946. port_id = AFE_PORT_ID_USB_RX;
  4947. break;
  4948. case 20:
  4949. *index = 20;
  4950. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4951. break;
  4952. case 21:
  4953. *index = 21;
  4954. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4955. break;
  4956. case 22:
  4957. *index = 22;
  4958. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4959. break;
  4960. case 23:
  4961. *index = 23;
  4962. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4963. break;
  4964. case 24:
  4965. *index = 24;
  4966. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4967. break;
  4968. case 25:
  4969. *index = 25;
  4970. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4971. break;
  4972. case 26:
  4973. *index = 26;
  4974. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4975. break;
  4976. case 27:
  4977. *index = 27;
  4978. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4979. break;
  4980. case 28:
  4981. *index = 28;
  4982. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4983. break;
  4984. case 29:
  4985. *index = 29;
  4986. port_id = SLIMBUS_7_RX;
  4987. break;
  4988. case 30:
  4989. *index = 30;
  4990. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  4991. break;
  4992. case 31:
  4993. *index = 31;
  4994. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4995. break;
  4996. case 32:
  4997. *index = 32;
  4998. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4999. break;
  5000. case 33:
  5001. *index = 33;
  5002. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5003. break;
  5004. case 34:
  5005. *index = 34;
  5006. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5007. break;
  5008. case 35:
  5009. *index = 35;
  5010. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5011. break;
  5012. case 36:
  5013. *index = 36;
  5014. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5015. break;
  5016. case 37:
  5017. *index = 37;
  5018. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5019. break;
  5020. default:
  5021. *index = 0; /* NONE */
  5022. pr_err("%s: Invalid value %d\n", __func__, value);
  5023. port_id = AFE_PORT_INVALID;
  5024. break;
  5025. }
  5026. return port_id;
  5027. }
  5028. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5029. struct snd_ctl_elem_value *ucontrol)
  5030. {
  5031. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5032. mutex_lock(&routing_lock);
  5033. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5034. mutex_unlock(&routing_lock);
  5035. return 0;
  5036. }
  5037. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5038. struct snd_ctl_elem_value *ucontrol)
  5039. {
  5040. int value = ucontrol->value.integer.value[0];
  5041. mutex_lock(&routing_lock);
  5042. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5043. &afe_loopback_tx_port_index);
  5044. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5045. __func__, afe_loopback_tx_port_index);
  5046. mutex_unlock(&routing_lock);
  5047. return 0;
  5048. }
  5049. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5050. "32000", "44100", "48000", "96000", "192000", "384000"};
  5051. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5052. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5053. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5054. ec_ref_bit_format_text),
  5055. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5056. };
  5057. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5058. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5059. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5060. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5061. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5062. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5063. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5064. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5065. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5066. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5067. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5068. "DISPLAY_PORT1",
  5069. };
  5070. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5071. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5072. };
  5073. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5074. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5075. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5076. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5077. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5078. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5079. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5080. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5081. msm_route_ec_ref_params_enum[0],
  5082. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5083. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5084. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5085. msm_ec_ref_chmixer_weights_put),
  5086. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5087. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5088. msm_ec_ref_chmixer_weights_put),
  5089. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5090. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5091. msm_ec_ref_chmixer_weights_put),
  5092. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5093. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5094. msm_ec_ref_chmixer_weights_put),
  5095. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5096. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5097. msm_ec_ref_chmixer_weights_put),
  5098. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5099. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5100. msm_ec_ref_chmixer_weights_put),
  5101. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5102. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5103. };
  5104. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5105. struct snd_ctl_elem_value *ucontrol)
  5106. {
  5107. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5108. mutex_lock(&routing_lock);
  5109. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5110. mutex_unlock(&routing_lock);
  5111. return 0;
  5112. }
  5113. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5114. struct snd_ctl_elem_value *ucontrol)
  5115. {
  5116. int value = ucontrol->value.integer.value[0];
  5117. struct snd_soc_dapm_widget *widget =
  5118. snd_soc_dapm_kcontrol_widget(kcontrol);
  5119. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5120. struct snd_soc_dapm_update *update = NULL;
  5121. mutex_lock(&routing_lock);
  5122. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5123. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5124. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5125. __func__, msm_route_ec_ref_rx);
  5126. mutex_unlock(&routing_lock);
  5127. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5128. msm_route_ec_ref_rx, e, update);
  5129. return 0;
  5130. }
  5131. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5132. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5133. msm_route_ec_ref_rx_enum[0],
  5134. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5135. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5136. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5137. msm_route_ec_ref_rx_enum[0],
  5138. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5139. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5140. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5141. msm_route_ec_ref_rx_enum[0],
  5142. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5143. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5144. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5145. msm_route_ec_ref_rx_enum[0],
  5146. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5147. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5148. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5149. msm_route_ec_ref_rx_enum[0],
  5150. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5151. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5152. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5153. msm_route_ec_ref_rx_enum[0],
  5154. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5155. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5156. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5157. msm_route_ec_ref_rx_enum[0],
  5158. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5159. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5160. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5161. msm_route_ec_ref_rx_enum[0],
  5162. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5163. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5164. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5165. msm_route_ec_ref_rx_enum[0],
  5166. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5167. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5168. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5169. msm_route_ec_ref_rx_enum[0],
  5170. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5171. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5172. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5173. msm_route_ec_ref_rx_enum[0],
  5174. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5175. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5176. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5177. msm_route_ec_ref_rx_enum[0],
  5178. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5179. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5180. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5181. msm_route_ec_ref_rx_enum[0],
  5182. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5183. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5184. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5185. msm_route_ec_ref_rx_enum[0],
  5186. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5187. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5188. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5189. msm_route_ec_ref_rx_enum[0],
  5190. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5191. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5192. struct snd_ctl_elem_value *ucontrol)
  5193. {
  5194. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5195. mutex_lock(&routing_lock);
  5196. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5197. mutex_unlock(&routing_lock);
  5198. return 0;
  5199. }
  5200. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5201. struct snd_ctl_elem_value *ucontrol)
  5202. {
  5203. struct snd_soc_dapm_widget *widget =
  5204. snd_soc_dapm_kcontrol_widget(kcontrol);
  5205. int mux = ucontrol->value.enumerated.item[0];
  5206. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5207. int ret = 1;
  5208. bool state = true;
  5209. uint16_t ext_ec_ref_port_id;
  5210. struct snd_soc_dapm_update *update = NULL;
  5211. if (mux >= e->items) {
  5212. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5213. return -EINVAL;
  5214. }
  5215. mutex_lock(&routing_lock);
  5216. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5217. switch (msm_route_ext_ec_ref) {
  5218. case EXT_EC_REF_PRI_MI2S_TX:
  5219. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5220. break;
  5221. case EXT_EC_REF_SEC_MI2S_TX:
  5222. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5223. break;
  5224. case EXT_EC_REF_TERT_MI2S_TX:
  5225. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5226. break;
  5227. case EXT_EC_REF_QUAT_MI2S_TX:
  5228. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5229. break;
  5230. case EXT_EC_REF_QUIN_MI2S_TX:
  5231. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5232. break;
  5233. case EXT_EC_REF_SLIM_1_TX:
  5234. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5235. break;
  5236. case EXT_EC_REF_PRI_TDM_TX:
  5237. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5238. break;
  5239. case EXT_EC_REF_SEC_TDM_TX:
  5240. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5241. break;
  5242. case EXT_EC_REF_NONE:
  5243. default:
  5244. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5245. state = false;
  5246. break;
  5247. }
  5248. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5249. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5250. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5251. mutex_unlock(&routing_lock);
  5252. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5253. update);
  5254. } else {
  5255. ret = -EINVAL;
  5256. mutex_unlock(&routing_lock);
  5257. }
  5258. return ret;
  5259. }
  5260. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5261. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5262. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5263. "SLIM_1_TX", "PRI_TDM_TX",
  5264. "SEC_TDM_TX"};
  5265. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5266. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5267. };
  5268. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5269. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5270. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5271. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5272. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5273. MSM_BACKEND_DAI_PRI_I2S_RX,
  5274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5275. msm_routing_put_audio_mixer),
  5276. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5277. MSM_BACKEND_DAI_PRI_I2S_RX,
  5278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5279. msm_routing_put_audio_mixer),
  5280. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5281. MSM_BACKEND_DAI_PRI_I2S_RX,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5285. MSM_BACKEND_DAI_PRI_I2S_RX,
  5286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5287. msm_routing_put_audio_mixer),
  5288. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5289. MSM_BACKEND_DAI_PRI_I2S_RX,
  5290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5291. msm_routing_put_audio_mixer),
  5292. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5293. MSM_BACKEND_DAI_PRI_I2S_RX,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5297. MSM_BACKEND_DAI_PRI_I2S_RX,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5301. MSM_BACKEND_DAI_PRI_I2S_RX,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5305. MSM_BACKEND_DAI_PRI_I2S_RX,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_PRI_I2S_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_PRI_I2S_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_PRI_I2S_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_PRI_I2S_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_PRI_I2S_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_PRI_I2S_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_PRI_I2S_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_PRI_I2S_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_PRI_I2S_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_PRI_I2S_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_PRI_I2S_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_PRI_I2S_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_PRI_I2S_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_PRI_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. };
  5365. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5366. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_SEC_I2S_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_SEC_I2S_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_SEC_I2S_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_SEC_I2S_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_SEC_I2S_RX,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_SEC_I2S_RX,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_SEC_I2S_RX,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_SEC_I2S_RX,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_SEC_I2S_RX,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_SEC_I2S_RX,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_SEC_I2S_RX,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_SEC_I2S_RX,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_SEC_I2S_RX,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_SEC_I2S_RX,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_SEC_I2S_RX,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_SEC_I2S_RX,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_SEC_I2S_RX,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_SEC_I2S_RX,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_SEC_I2S_RX,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_SEC_I2S_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_SEC_I2S_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_SEC_I2S_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_SEC_I2S_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. };
  5459. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5460. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. };
  5553. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5554. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5587. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5591. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5592. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5593. msm_routing_put_audio_mixer),
  5594. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5595. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5596. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5597. msm_routing_put_audio_mixer),
  5598. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5599. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. };
  5647. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5648. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5665. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5669. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. };
  5717. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5718. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5731. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5735. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5736. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5737. msm_routing_put_audio_mixer),
  5738. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5739. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5743. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5747. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5751. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5755. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5759. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5763. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5771. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5783. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. };
  5811. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5812. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5829. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5833. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5837. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5841. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5845. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5846. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5847. msm_routing_put_audio_mixer),
  5848. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5849. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5853. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. };
  5905. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5906. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_MI2S_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_MI2S_RX,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_MI2S_RX,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_MI2S_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_MI2S_RX,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_MI2S_RX,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_MI2S_RX,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_MI2S_RX,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_MI2S_RX,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_MI2S_RX,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_MI2S_RX,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_MI2S_RX,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_MI2S_RX,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_MI2S_RX,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_MI2S_RX,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_MI2S_RX,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_MI2S_RX,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_MI2S_RX,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_MI2S_RX,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_MI2S_RX,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_MI2S_RX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_MI2S_RX,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. };
  5999. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6000. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6037. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6041. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6045. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. };
  6093. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6094. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6139. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. };
  6187. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6188. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6209. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6213. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6225. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6229. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. };
  6277. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6278. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6299. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6315. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6323. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6327. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6331. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6332. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6333. msm_routing_put_audio_mixer),
  6334. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6335. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6339. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6340. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6341. msm_routing_put_audio_mixer),
  6342. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6343. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6344. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6345. msm_routing_put_audio_mixer),
  6346. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6347. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6351. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6352. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6353. msm_routing_put_audio_mixer),
  6354. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6355. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. };
  6363. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6364. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. };
  6369. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6370. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. };
  6463. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6464. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6558. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. };
  6561. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6562. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. };
  6627. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6628. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. };
  6693. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6694. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. };
  6783. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6784. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. };
  6873. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6874. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_HDMI_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_HDMI_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_HDMI_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_HDMI_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_HDMI_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_HDMI_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_HDMI_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_HDMI_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_HDMI_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_HDMI_RX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6915. MSM_BACKEND_DAI_HDMI_RX,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6919. MSM_BACKEND_DAI_HDMI_RX,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6923. MSM_BACKEND_DAI_HDMI_RX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_HDMI_RX,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_HDMI_RX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_HDMI_RX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_HDMI_RX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_HDMI_RX,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_HDMI_RX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_HDMI_RX,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_HDMI_RX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_HDMI_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_HDMI_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. };
  6967. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6968. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. };
  7037. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7038. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7087. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7091. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7095. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. };
  7107. /* incall music delivery mixer */
  7108. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7109. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. };
  7130. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7131. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. };
  7148. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7149. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. };
  7166. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7167. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. };
  7236. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7237. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. };
  7306. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7307. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. };
  7376. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7377. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. };
  7446. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7447. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. };
  7516. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7517. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. };
  7586. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7587. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. };
  7656. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. };
  7726. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7727. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. };
  7796. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7797. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. };
  7866. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7867. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. };
  7936. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7937. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. };
  8006. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8007. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. };
  8076. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8077. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_USB_RX,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_USB_RX,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_USB_RX,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_USB_RX,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_USB_RX,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_USB_RX,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_USB_RX,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_USB_RX,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_USB_RX,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_USB_RX,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_USB_RX,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_USB_RX,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_USB_RX,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_USB_RX,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_USB_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_USB_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_USB_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. };
  8146. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8147. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. };
  8240. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8241. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. };
  8310. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8311. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_INT_FM_RX,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_INT_FM_RX,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_INT_FM_RX,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_INT_FM_RX,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_INT_FM_RX,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_INT_FM_RX,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_INT_FM_RX,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_INT_FM_RX,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_INT_FM_RX,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_INT_FM_RX,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_INT_FM_RX,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_INT_FM_RX,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_INT_FM_RX,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_INT_FM_RX,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_INT_FM_RX,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_INT_FM_RX,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_INT_FM_RX,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_INT_FM_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_INT_FM_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_INT_FM_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_INT_FM_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_INT_FM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_INT_FM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. };
  8404. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8405. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_AFE_PCM_RX,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_AFE_PCM_RX,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_AFE_PCM_RX,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_AFE_PCM_RX,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_AFE_PCM_RX,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_AFE_PCM_RX,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_AFE_PCM_RX,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_AFE_PCM_RX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_AFE_PCM_RX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_AFE_PCM_RX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_AFE_PCM_RX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_AFE_PCM_RX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_AFE_PCM_RX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_AFE_PCM_RX,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_AFE_PCM_RX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_AFE_PCM_RX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_AFE_PCM_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_AFE_PCM_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_AFE_PCM_RX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_AFE_PCM_RX,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_AFE_PCM_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_AFE_PCM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_AFE_PCM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. };
  8498. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_AUXPCM_RX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_AUXPCM_RX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_AUXPCM_RX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_AUXPCM_RX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_AUXPCM_RX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_AUXPCM_RX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_AUXPCM_RX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_AUXPCM_RX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_AUXPCM_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_AUXPCM_RX,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_AUXPCM_RX,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_AUXPCM_RX,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_AUXPCM_RX,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_AUXPCM_RX,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_AUXPCM_RX,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_AUXPCM_RX,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_AUXPCM_RX,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_AUXPCM_RX,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_AUXPCM_RX,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_AUXPCM_RX,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_AUXPCM_RX,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_AUXPCM_RX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_AUXPCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_AUXPCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. };
  8596. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8597. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. };
  8694. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8695. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. };
  8764. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8765. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. };
  8834. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8835. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. };
  8904. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8905. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. };
  8974. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8975. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9020. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9021. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9022. msm_routing_put_audio_mixer),
  9023. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. };
  9048. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9049. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. };
  9122. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9123. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. };
  9196. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9197. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. };
  9270. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9271. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. };
  9336. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9337. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. };
  9410. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9411. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. };
  9484. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9485. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9502. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9504. msm_routing_put_audio_mixer),
  9505. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9506. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9508. msm_routing_put_audio_mixer),
  9509. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9510. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9511. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9512. msm_routing_put_audio_mixer),
  9513. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. };
  9558. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9559. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. };
  9632. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9633. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. };
  9698. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9699. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. };
  9772. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9773. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. };
  9838. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9839. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. };
  9912. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9913. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. };
  9986. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9987. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9994. msm_routing_put_audio_mixer),
  9995. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. };
  10060. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10061. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. };
  10134. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10135. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10136. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10138. msm_routing_put_audio_mixer),
  10139. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10142. msm_routing_put_audio_mixer),
  10143. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10149. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. };
  10212. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10213. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. };
  10278. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10279. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10286. msm_routing_put_audio_mixer),
  10287. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. };
  10356. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10357. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10358. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10360. msm_routing_put_audio_mixer),
  10361. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10364. msm_routing_put_audio_mixer),
  10365. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. };
  10434. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10435. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10438. msm_routing_put_audio_mixer),
  10439. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10441. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10442. msm_routing_put_audio_mixer),
  10443. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10446. msm_routing_put_audio_mixer),
  10447. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10449. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10450. msm_routing_put_audio_mixer),
  10451. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10454. msm_routing_put_audio_mixer),
  10455. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10473. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10478. msm_routing_put_audio_mixer),
  10479. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. };
  10512. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10516. msm_routing_put_audio_mixer),
  10517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10520. msm_routing_put_audio_mixer),
  10521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. };
  10590. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10591. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10593. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10594. msm_routing_put_audio_mixer),
  10595. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10597. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10598. msm_routing_put_audio_mixer),
  10599. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10601. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10602. msm_routing_put_audio_mixer),
  10603. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. };
  10656. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10660. msm_routing_put_audio_mixer),
  10661. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10664. msm_routing_put_audio_mixer),
  10665. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10668. msm_routing_put_audio_mixer),
  10669. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10676. msm_routing_put_audio_mixer),
  10677. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10680. msm_routing_put_audio_mixer),
  10681. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10683. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10684. msm_routing_put_audio_mixer),
  10685. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10688. msm_routing_put_audio_mixer),
  10689. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10691. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10692. msm_routing_put_audio_mixer),
  10693. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10694. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10696. msm_routing_put_audio_mixer),
  10697. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10698. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10699. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10700. msm_routing_put_audio_mixer),
  10701. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10703. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10704. msm_routing_put_audio_mixer),
  10705. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10706. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10707. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10708. msm_routing_put_audio_mixer),
  10709. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. };
  10734. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10735. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10753. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10754. msm_routing_put_audio_mixer),
  10755. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10757. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10758. msm_routing_put_audio_mixer),
  10759. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10761. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10766. msm_routing_put_audio_mixer),
  10767. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10769. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10770. msm_routing_put_audio_mixer),
  10771. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10777. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. };
  10812. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10813. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. };
  10890. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  10891. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10926. msm_routing_put_audio_mixer),
  10927. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10929. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10930. msm_routing_put_audio_mixer),
  10931. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10933. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10934. msm_routing_put_audio_mixer),
  10935. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10937. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10938. msm_routing_put_audio_mixer),
  10939. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10941. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10946. msm_routing_put_audio_mixer),
  10947. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10949. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. };
  10964. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  10965. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. };
  11030. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11031. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. };
  11104. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11105. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. };
  11178. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11179. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. };
  11252. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11253. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_PRI_I2S_TX,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_MI2S_TX,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_AUXPCM_TX,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_INT_FM_TX,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_AFE_PCM_TX,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_USB_TX,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11503. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11504. msm_routing_put_audio_mixer),
  11505. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11507. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11508. msm_routing_put_audio_mixer),
  11509. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11511. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11512. msm_routing_put_audio_mixer),
  11513. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. };
  11526. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11527. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_INT_FM_TX,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_MI2S_TX,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11653. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11662. msm_routing_put_audio_mixer),
  11663. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11665. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11666. msm_routing_put_audio_mixer),
  11667. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11669. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11670. msm_routing_put_audio_mixer),
  11671. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_USB_TX,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11697. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11698. msm_routing_put_audio_mixer),
  11699. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11702. msm_routing_put_audio_mixer),
  11703. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11705. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11706. msm_routing_put_audio_mixer),
  11707. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. };
  11752. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11753. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_INT_FM_TX,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_MI2S_TX,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_AFE_PCM_TX,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_AUXPCM_TX,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11851. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11852. msm_routing_put_audio_mixer),
  11853. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11854. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11855. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11856. msm_routing_put_audio_mixer),
  11857. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11859. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11860. msm_routing_put_audio_mixer),
  11861. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11864. msm_routing_put_audio_mixer),
  11865. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11866. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11868. msm_routing_put_audio_mixer),
  11869. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11872. msm_routing_put_audio_mixer),
  11873. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11875. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11876. msm_routing_put_audio_mixer),
  11877. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11879. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11880. msm_routing_put_audio_mixer),
  11881. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11883. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11884. msm_routing_put_audio_mixer),
  11885. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11887. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11888. msm_routing_put_audio_mixer),
  11889. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11892. msm_routing_put_audio_mixer),
  11893. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11895. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. };
  11974. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  11975. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_INT_FM_TX,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_AFE_PCM_TX,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12041. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12046. msm_routing_put_audio_mixer),
  12047. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12050. msm_routing_put_audio_mixer),
  12051. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12054. msm_routing_put_audio_mixer),
  12055. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12057. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12058. msm_routing_put_audio_mixer),
  12059. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12114. msm_routing_put_audio_mixer),
  12115. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_USB_TX,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12130. msm_routing_put_audio_mixer),
  12131. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12133. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12134. msm_routing_put_audio_mixer),
  12135. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12137. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12138. msm_routing_put_audio_mixer),
  12139. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12141. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12146. msm_routing_put_audio_mixer),
  12147. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12149. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12150. msm_routing_put_audio_mixer),
  12151. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12153. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12154. msm_routing_put_audio_mixer),
  12155. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12157. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12158. msm_routing_put_audio_mixer),
  12159. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12161. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12162. msm_routing_put_audio_mixer),
  12163. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. };
  12188. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12189. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_INT_FM_TX,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_MI2S_TX,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_AFE_PCM_TX,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_AUXPCM_TX,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12299. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12300. msm_routing_put_audio_mixer),
  12301. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12363. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12364. msm_routing_put_audio_mixer),
  12365. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_USB_TX,
  12367. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12372. msm_routing_put_audio_mixer),
  12373. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12387. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12388. msm_routing_put_audio_mixer),
  12389. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12391. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12392. msm_routing_put_audio_mixer),
  12393. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12395. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12396. msm_routing_put_audio_mixer),
  12397. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12399. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12400. msm_routing_put_audio_mixer),
  12401. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12403. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12404. msm_routing_put_audio_mixer),
  12405. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12407. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12420. msm_routing_put_audio_mixer),
  12421. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. };
  12434. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12435. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_INT_FM_TX,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_AUXPCM_TX,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12506. msm_routing_put_audio_mixer),
  12507. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12509. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12513. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12514. msm_routing_put_audio_mixer),
  12515. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12518. msm_routing_put_audio_mixer),
  12519. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12522. msm_routing_put_audio_mixer),
  12523. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12561. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12562. msm_routing_put_audio_mixer),
  12563. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12566. msm_routing_put_audio_mixer),
  12567. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12569. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12570. msm_routing_put_audio_mixer),
  12571. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12573. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12574. msm_routing_put_audio_mixer),
  12575. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_USB_TX,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. };
  12656. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12657. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12659. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12660. msm_routing_put_audio_mixer),
  12661. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12664. msm_routing_put_audio_mixer),
  12665. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12667. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12668. msm_routing_put_audio_mixer),
  12669. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12671. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12672. msm_routing_put_audio_mixer),
  12673. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12675. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12676. msm_routing_put_audio_mixer),
  12677. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12679. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12680. msm_routing_put_audio_mixer),
  12681. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12683. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12684. msm_routing_put_audio_mixer),
  12685. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12688. msm_routing_put_audio_mixer),
  12689. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_INT_FM_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_AFE_PCM_TX,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12764. msm_routing_put_audio_mixer),
  12765. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_USB_TX,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. };
  12882. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  12883. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12885. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12886. msm_routing_put_audio_mixer),
  12887. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12889. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12890. msm_routing_put_audio_mixer),
  12891. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12893. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12894. msm_routing_put_audio_mixer),
  12895. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12896. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12897. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12898. msm_routing_put_audio_mixer),
  12899. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12900. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12901. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12902. msm_routing_put_audio_mixer),
  12903. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12904. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12906. msm_routing_put_audio_mixer),
  12907. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12909. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12910. msm_routing_put_audio_mixer),
  12911. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12914. msm_routing_put_audio_mixer),
  12915. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_INT_FM_TX,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12921. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12922. msm_routing_put_audio_mixer),
  12923. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_AFE_PCM_TX,
  12925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12926. msm_routing_put_audio_mixer),
  12927. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12929. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12934. msm_routing_put_audio_mixer),
  12935. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12937. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12938. msm_routing_put_audio_mixer),
  12939. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12981. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12982. msm_routing_put_audio_mixer),
  12983. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_USB_TX,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_MI2S_TX,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_AUXPCM_TX,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13054. msm_routing_get_audio_mixer,
  13055. msm_routing_put_audio_mixer),
  13056. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13057. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13058. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13059. msm_routing_get_audio_mixer,
  13060. msm_routing_put_audio_mixer),
  13061. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13064. msm_routing_get_audio_mixer,
  13065. msm_routing_put_audio_mixer),
  13066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13069. msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13074. msm_routing_get_audio_mixer,
  13075. msm_routing_put_audio_mixer),
  13076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13078. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13079. msm_routing_get_audio_mixer,
  13080. msm_routing_put_audio_mixer),
  13081. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13084. msm_routing_put_audio_mixer),
  13085. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13088. msm_routing_put_audio_mixer),
  13089. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. };
  13098. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13099. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13102. msm_routing_put_audio_mixer),
  13103. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13105. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13106. msm_routing_put_audio_mixer),
  13107. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13110. msm_routing_put_audio_mixer),
  13111. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_INT_FM_TX,
  13113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13114. msm_routing_put_audio_mixer),
  13115. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13117. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13118. msm_routing_put_audio_mixer),
  13119. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_AFE_PCM_TX,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13125. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13126. msm_routing_put_audio_mixer),
  13127. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13129. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13130. msm_routing_put_audio_mixer),
  13131. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13134. msm_routing_put_audio_mixer),
  13135. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13137. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13138. msm_routing_put_audio_mixer),
  13139. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13142. msm_routing_put_audio_mixer),
  13143. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13145. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13146. msm_routing_put_audio_mixer),
  13147. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13150. msm_routing_put_audio_mixer),
  13151. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13154. msm_routing_put_audio_mixer),
  13155. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13158. msm_routing_put_audio_mixer),
  13159. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13161. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13162. msm_routing_put_audio_mixer),
  13163. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13166. msm_routing_put_audio_mixer),
  13167. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13169. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13170. msm_routing_put_audio_mixer),
  13171. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13174. msm_routing_put_audio_mixer),
  13175. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13178. msm_routing_put_audio_mixer),
  13179. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13181. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13182. msm_routing_put_audio_mixer),
  13183. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13186. msm_routing_put_audio_mixer),
  13187. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13189. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13190. msm_routing_put_audio_mixer),
  13191. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13192. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13194. msm_routing_put_audio_mixer),
  13195. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13198. msm_routing_put_audio_mixer),
  13199. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13200. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13202. msm_routing_put_audio_mixer),
  13203. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13206. msm_routing_put_audio_mixer),
  13207. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13209. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13210. msm_routing_put_audio_mixer),
  13211. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13213. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13214. msm_routing_put_audio_mixer),
  13215. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13217. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13218. msm_routing_put_audio_mixer),
  13219. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13222. msm_routing_put_audio_mixer),
  13223. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13226. msm_routing_put_audio_mixer),
  13227. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13230. msm_routing_put_audio_mixer),
  13231. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13234. msm_routing_put_audio_mixer),
  13235. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13237. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13238. msm_routing_put_audio_mixer),
  13239. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13241. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13242. msm_routing_put_audio_mixer),
  13243. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13246. msm_routing_put_audio_mixer),
  13247. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. };
  13260. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13261. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13262. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13272. msm_routing_put_audio_mixer),
  13273. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_INT_FM_TX,
  13275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13276. msm_routing_put_audio_mixer),
  13277. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13280. msm_routing_put_audio_mixer),
  13281. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_AFE_PCM_TX,
  13283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13284. msm_routing_put_audio_mixer),
  13285. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13287. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13288. msm_routing_put_audio_mixer),
  13289. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13292. msm_routing_put_audio_mixer),
  13293. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13296. msm_routing_put_audio_mixer),
  13297. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13300. msm_routing_put_audio_mixer),
  13301. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13304. msm_routing_put_audio_mixer),
  13305. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13316. msm_routing_put_audio_mixer),
  13317. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13320. msm_routing_put_audio_mixer),
  13321. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13324. msm_routing_put_audio_mixer),
  13325. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_USB_TX,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_MI2S_TX,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_AUXPCM_TX,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13348. msm_routing_put_audio_mixer),
  13349. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13352. msm_routing_put_audio_mixer),
  13353. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13356. msm_routing_put_audio_mixer),
  13357. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13360. msm_routing_put_audio_mixer),
  13361. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13364. msm_routing_put_audio_mixer),
  13365. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13367. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13368. msm_routing_put_audio_mixer),
  13369. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13371. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13372. msm_routing_put_audio_mixer),
  13373. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13375. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13376. msm_routing_put_audio_mixer),
  13377. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13379. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13380. msm_routing_put_audio_mixer),
  13381. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13383. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13384. msm_routing_put_audio_mixer),
  13385. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13388. msm_routing_put_audio_mixer),
  13389. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13390. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13391. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13392. msm_routing_put_audio_mixer),
  13393. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13394. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13395. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13396. msm_routing_get_audio_mixer,
  13397. msm_routing_put_audio_mixer),
  13398. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13399. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13400. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13401. msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13406. msm_routing_get_audio_mixer,
  13407. msm_routing_put_audio_mixer),
  13408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13410. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13411. msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13416. msm_routing_get_audio_mixer,
  13417. msm_routing_put_audio_mixer),
  13418. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13419. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13420. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13421. msm_routing_get_audio_mixer,
  13422. msm_routing_put_audio_mixer),
  13423. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. };
  13440. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13441. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13443. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13444. msm_routing_put_audio_mixer),
  13445. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13447. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13448. msm_routing_put_audio_mixer),
  13449. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13451. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13452. msm_routing_put_audio_mixer),
  13453. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13455. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13456. msm_routing_put_audio_mixer),
  13457. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_INT_FM_TX,
  13459. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13460. msm_routing_put_audio_mixer),
  13461. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13463. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13464. msm_routing_put_audio_mixer),
  13465. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13466. MSM_BACKEND_DAI_AFE_PCM_TX,
  13467. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13468. msm_routing_put_audio_mixer),
  13469. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13470. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13471. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13472. msm_routing_put_audio_mixer),
  13473. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13474. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13475. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13476. msm_routing_put_audio_mixer),
  13477. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13479. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13480. msm_routing_put_audio_mixer),
  13481. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13483. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13484. msm_routing_put_audio_mixer),
  13485. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13486. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13487. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13488. msm_routing_put_audio_mixer),
  13489. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13491. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13492. msm_routing_put_audio_mixer),
  13493. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13495. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13496. msm_routing_put_audio_mixer),
  13497. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13499. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13500. msm_routing_put_audio_mixer),
  13501. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13503. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13504. msm_routing_put_audio_mixer),
  13505. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13507. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13508. msm_routing_put_audio_mixer),
  13509. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13511. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13512. msm_routing_get_audio_mixer,
  13513. msm_routing_put_audio_mixer),
  13514. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13516. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13517. msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13522. msm_routing_get_audio_mixer,
  13523. msm_routing_put_audio_mixer),
  13524. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13526. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13527. msm_routing_get_audio_mixer,
  13528. msm_routing_put_audio_mixer),
  13529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13531. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13532. msm_routing_get_audio_mixer,
  13533. msm_routing_put_audio_mixer),
  13534. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13536. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13537. msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. };
  13552. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13553. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13555. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13556. msm_routing_put_audio_mixer),
  13557. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13559. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13560. msm_routing_put_audio_mixer),
  13561. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13563. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13564. msm_routing_put_audio_mixer),
  13565. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13567. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13568. msm_routing_put_audio_mixer),
  13569. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13571. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13572. msm_routing_put_audio_mixer),
  13573. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13575. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13576. msm_routing_put_audio_mixer),
  13577. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13579. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13580. msm_routing_put_audio_mixer),
  13581. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_INT_FM_TX,
  13583. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13584. msm_routing_put_audio_mixer),
  13585. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13587. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13588. msm_routing_put_audio_mixer),
  13589. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_AFE_PCM_TX,
  13591. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13592. msm_routing_put_audio_mixer),
  13593. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13595. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13596. msm_routing_put_audio_mixer),
  13597. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13599. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13600. msm_routing_put_audio_mixer),
  13601. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13603. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13604. msm_routing_put_audio_mixer),
  13605. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13607. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13612. msm_routing_put_audio_mixer),
  13613. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13615. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13616. msm_routing_put_audio_mixer),
  13617. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13619. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13624. msm_routing_put_audio_mixer),
  13625. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13628. msm_routing_get_audio_mixer,
  13629. msm_routing_put_audio_mixer),
  13630. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13631. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13632. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13633. msm_routing_get_audio_mixer,
  13634. msm_routing_put_audio_mixer),
  13635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13637. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13638. msm_routing_get_audio_mixer,
  13639. msm_routing_put_audio_mixer),
  13640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13642. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13643. msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13648. msm_routing_get_audio_mixer,
  13649. msm_routing_put_audio_mixer),
  13650. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13651. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13652. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13653. msm_routing_get_audio_mixer,
  13654. msm_routing_put_audio_mixer),
  13655. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. };
  13668. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13669. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13671. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13672. msm_routing_put_audio_mixer),
  13673. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13675. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13676. msm_routing_put_audio_mixer),
  13677. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13679. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13680. msm_routing_put_audio_mixer),
  13681. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13683. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_INT_FM_TX,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13688. msm_routing_put_audio_mixer),
  13689. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13691. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13692. msm_routing_put_audio_mixer),
  13693. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_AFE_PCM_TX,
  13695. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13696. msm_routing_put_audio_mixer),
  13697. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13699. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13700. msm_routing_put_audio_mixer),
  13701. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13703. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13704. msm_routing_put_audio_mixer),
  13705. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13707. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13708. msm_routing_put_audio_mixer),
  13709. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13711. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13719. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13720. msm_routing_put_audio_mixer),
  13721. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13722. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13723. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13724. msm_routing_put_audio_mixer),
  13725. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13727. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13728. msm_routing_put_audio_mixer),
  13729. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13731. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13732. msm_routing_put_audio_mixer),
  13733. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13735. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13740. msm_routing_put_audio_mixer),
  13741. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13743. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13744. msm_routing_get_audio_mixer,
  13745. msm_routing_put_audio_mixer),
  13746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13748. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13749. msm_routing_get_audio_mixer,
  13750. msm_routing_put_audio_mixer),
  13751. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13754. msm_routing_get_audio_mixer,
  13755. msm_routing_put_audio_mixer),
  13756. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13758. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13759. msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13764. msm_routing_get_audio_mixer,
  13765. msm_routing_put_audio_mixer),
  13766. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13768. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13769. msm_routing_get_audio_mixer,
  13770. msm_routing_put_audio_mixer),
  13771. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. };
  13784. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13785. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13787. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13788. msm_routing_put_audio_mixer),
  13789. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13791. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13792. msm_routing_put_audio_mixer),
  13793. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13795. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13796. msm_routing_put_audio_mixer),
  13797. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13799. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13804. msm_routing_put_audio_mixer),
  13805. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13807. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13808. msm_routing_put_audio_mixer),
  13809. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13811. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13812. msm_routing_put_audio_mixer),
  13813. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13815. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13816. msm_routing_put_audio_mixer),
  13817. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13819. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13820. msm_routing_put_audio_mixer),
  13821. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13823. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13824. msm_routing_put_audio_mixer),
  13825. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13827. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13828. msm_routing_put_audio_mixer),
  13829. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13831. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13832. msm_routing_put_audio_mixer),
  13833. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13835. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13836. msm_routing_put_audio_mixer),
  13837. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13838. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13839. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13840. msm_routing_put_audio_mixer),
  13841. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13843. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13844. msm_routing_put_audio_mixer),
  13845. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13847. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13848. msm_routing_put_audio_mixer),
  13849. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13851. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13852. msm_routing_put_audio_mixer),
  13853. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13855. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13856. msm_routing_put_audio_mixer),
  13857. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13859. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13860. msm_routing_put_audio_mixer),
  13861. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13863. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13864. msm_routing_put_audio_mixer),
  13865. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13867. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13868. msm_routing_put_audio_mixer),
  13869. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13871. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13872. msm_routing_put_audio_mixer),
  13873. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13874. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13875. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13876. msm_routing_put_audio_mixer),
  13877. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13879. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13880. msm_routing_put_audio_mixer),
  13881. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13887. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13888. msm_routing_put_audio_mixer),
  13889. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13891. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13892. msm_routing_put_audio_mixer),
  13893. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13895. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13896. msm_routing_put_audio_mixer),
  13897. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13899. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13900. msm_routing_put_audio_mixer),
  13901. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13903. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13904. msm_routing_put_audio_mixer),
  13905. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13907. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13908. msm_routing_put_audio_mixer),
  13909. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13911. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13912. msm_routing_put_audio_mixer),
  13913. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13915. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13916. msm_routing_put_audio_mixer),
  13917. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13919. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13920. msm_routing_put_audio_mixer),
  13921. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13923. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13924. msm_routing_put_audio_mixer),
  13925. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13926. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13927. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13928. msm_routing_put_audio_mixer),
  13929. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13931. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13932. msm_routing_put_audio_mixer),
  13933. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13935. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13936. msm_routing_put_audio_mixer),
  13937. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13939. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13940. msm_routing_put_audio_mixer),
  13941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13943. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13944. msm_routing_put_audio_mixer),
  13945. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13946. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13947. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13948. msm_routing_put_audio_mixer),
  13949. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13950. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13951. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13952. msm_routing_put_audio_mixer),
  13953. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13955. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13956. msm_routing_put_audio_mixer),
  13957. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13959. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13964. msm_routing_put_audio_mixer),
  13965. };
  13966. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  13967. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_AUXPCM_TX,
  13969. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13970. msm_routing_put_audio_mixer),
  13971. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13973. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13989. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13990. msm_routing_put_audio_mixer),
  13991. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13992. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13993. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13994. msm_routing_put_audio_mixer),
  13995. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13996. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13997. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13998. msm_routing_put_audio_mixer),
  13999. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14000. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14001. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14002. msm_routing_put_audio_mixer),
  14003. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14005. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14006. msm_routing_put_audio_mixer),
  14007. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14008. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14009. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14010. msm_routing_put_audio_mixer),
  14011. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14012. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14013. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14014. msm_routing_put_audio_mixer),
  14015. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14016. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14017. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14018. msm_routing_put_audio_mixer),
  14019. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14021. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14022. msm_routing_put_audio_mixer),
  14023. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14025. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14026. msm_routing_put_audio_mixer),
  14027. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14028. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14029. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14030. msm_routing_put_audio_mixer),
  14031. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14032. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14033. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14034. msm_routing_put_audio_mixer),
  14035. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14037. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14038. msm_routing_put_audio_mixer),
  14039. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14041. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14042. msm_routing_put_audio_mixer),
  14043. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14045. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14046. msm_routing_put_audio_mixer),
  14047. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14049. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14050. msm_routing_put_audio_mixer),
  14051. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14052. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14053. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14054. msm_routing_put_audio_mixer),
  14055. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14056. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14057. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14058. msm_routing_put_audio_mixer),
  14059. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14061. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14062. msm_routing_put_audio_mixer),
  14063. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14065. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14070. msm_routing_put_audio_mixer),
  14071. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14073. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14074. msm_routing_put_audio_mixer),
  14075. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14077. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14078. msm_routing_put_audio_mixer),
  14079. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14081. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14082. msm_routing_put_audio_mixer),
  14083. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14085. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14090. msm_routing_put_audio_mixer),
  14091. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14093. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14101. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14102. msm_routing_put_audio_mixer),
  14103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14105. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14106. msm_routing_put_audio_mixer),
  14107. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14108. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14109. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14110. msm_routing_put_audio_mixer),
  14111. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14113. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14114. msm_routing_put_audio_mixer),
  14115. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14117. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14118. msm_routing_put_audio_mixer),
  14119. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14121. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14122. msm_routing_put_audio_mixer),
  14123. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. };
  14132. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14133. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14151. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14152. msm_routing_put_audio_mixer),
  14153. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14155. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14156. msm_routing_put_audio_mixer),
  14157. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14159. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14160. msm_routing_put_audio_mixer),
  14161. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14163. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14164. msm_routing_put_audio_mixer),
  14165. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14167. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14168. msm_routing_put_audio_mixer),
  14169. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14171. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14172. msm_routing_put_audio_mixer),
  14173. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14175. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14176. msm_routing_put_audio_mixer),
  14177. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14179. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14180. msm_routing_put_audio_mixer),
  14181. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14183. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14184. msm_routing_put_audio_mixer),
  14185. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14187. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14188. msm_routing_put_audio_mixer),
  14189. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14191. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14192. msm_routing_put_audio_mixer),
  14193. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14195. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14196. msm_routing_put_audio_mixer),
  14197. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14199. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14200. msm_routing_put_audio_mixer),
  14201. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. };
  14214. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14215. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14217. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14218. msm_routing_put_audio_mixer),
  14219. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14220. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14221. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14222. msm_routing_put_audio_mixer),
  14223. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14224. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14225. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14226. msm_routing_put_audio_mixer),
  14227. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14228. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14229. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14230. msm_routing_put_audio_mixer),
  14231. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14232. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14233. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14234. msm_routing_put_audio_mixer),
  14235. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14237. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14238. msm_routing_put_audio_mixer),
  14239. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14241. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14242. msm_routing_put_audio_mixer),
  14243. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14245. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14246. msm_routing_put_audio_mixer),
  14247. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14248. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14249. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14250. msm_routing_put_audio_mixer),
  14251. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14252. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14253. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14254. msm_routing_put_audio_mixer),
  14255. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14256. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14257. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14258. msm_routing_put_audio_mixer),
  14259. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14260. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14261. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14262. msm_routing_put_audio_mixer),
  14263. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14265. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14266. msm_routing_put_audio_mixer),
  14267. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14269. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14270. msm_routing_put_audio_mixer),
  14271. };
  14272. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14273. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14276. msm_routing_put_audio_mixer),
  14277. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14279. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14280. msm_routing_put_audio_mixer),
  14281. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14283. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14284. msm_routing_put_audio_mixer),
  14285. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14287. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14288. msm_routing_put_audio_mixer),
  14289. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_INT_FM_TX,
  14291. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14292. msm_routing_put_audio_mixer),
  14293. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14295. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14296. msm_routing_put_audio_mixer),
  14297. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_AFE_PCM_TX,
  14299. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14300. msm_routing_put_audio_mixer),
  14301. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14303. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14304. msm_routing_put_audio_mixer),
  14305. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14307. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14308. msm_routing_put_audio_mixer),
  14309. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14311. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14312. msm_routing_put_audio_mixer),
  14313. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14315. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14316. msm_routing_put_audio_mixer),
  14317. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14319. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14320. msm_routing_put_audio_mixer),
  14321. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14322. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14323. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14324. msm_routing_put_audio_mixer),
  14325. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14327. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14328. msm_routing_put_audio_mixer),
  14329. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14331. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14332. msm_routing_put_audio_mixer),
  14333. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14334. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14335. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14336. msm_routing_put_audio_mixer),
  14337. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14339. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14340. msm_routing_put_audio_mixer),
  14341. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14343. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14344. msm_routing_put_audio_mixer),
  14345. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14347. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14348. msm_routing_get_audio_mixer,
  14349. msm_routing_put_audio_mixer),
  14350. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14352. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14353. msm_routing_get_audio_mixer,
  14354. msm_routing_put_audio_mixer),
  14355. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14357. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14358. msm_routing_get_audio_mixer,
  14359. msm_routing_put_audio_mixer),
  14360. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14362. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14363. msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14368. msm_routing_get_audio_mixer,
  14369. msm_routing_put_audio_mixer),
  14370. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14372. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14373. msm_routing_get_audio_mixer,
  14374. msm_routing_put_audio_mixer),
  14375. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14377. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14378. msm_routing_put_audio_mixer),
  14379. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14381. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14382. msm_routing_put_audio_mixer),
  14383. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14385. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14386. msm_routing_put_audio_mixer),
  14387. };
  14388. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14389. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14391. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14392. msm_routing_put_audio_mixer),
  14393. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14395. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14396. msm_routing_put_audio_mixer),
  14397. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14399. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14400. msm_routing_put_audio_mixer),
  14401. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14403. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14404. msm_routing_put_audio_mixer),
  14405. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_INT_FM_TX,
  14407. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14408. msm_routing_put_audio_mixer),
  14409. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14411. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14412. msm_routing_put_audio_mixer),
  14413. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14414. MSM_BACKEND_DAI_AFE_PCM_TX,
  14415. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14416. msm_routing_put_audio_mixer),
  14417. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14419. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14420. msm_routing_put_audio_mixer),
  14421. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14423. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14424. msm_routing_put_audio_mixer),
  14425. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14427. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14428. msm_routing_put_audio_mixer),
  14429. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14431. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14432. msm_routing_put_audio_mixer),
  14433. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14434. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14435. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14436. msm_routing_put_audio_mixer),
  14437. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14439. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14440. msm_routing_put_audio_mixer),
  14441. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14443. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14448. msm_routing_put_audio_mixer),
  14449. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14451. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14452. msm_routing_put_audio_mixer),
  14453. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14455. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14456. msm_routing_put_audio_mixer),
  14457. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14464. msm_routing_get_audio_mixer,
  14465. msm_routing_put_audio_mixer),
  14466. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14468. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14469. msm_routing_get_audio_mixer,
  14470. msm_routing_put_audio_mixer),
  14471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14473. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14474. msm_routing_get_audio_mixer,
  14475. msm_routing_put_audio_mixer),
  14476. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14478. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14479. msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14484. msm_routing_get_audio_mixer,
  14485. msm_routing_put_audio_mixer),
  14486. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14488. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14489. msm_routing_get_audio_mixer,
  14490. msm_routing_put_audio_mixer),
  14491. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14493. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14494. msm_routing_put_audio_mixer),
  14495. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14497. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14498. msm_routing_put_audio_mixer),
  14499. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14501. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14502. msm_routing_put_audio_mixer),
  14503. };
  14504. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14505. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14516. msm_routing_put_audio_mixer),
  14517. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14519. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14520. msm_routing_put_audio_mixer),
  14521. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_INT_FM_TX,
  14523. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14524. msm_routing_put_audio_mixer),
  14525. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14527. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14528. msm_routing_put_audio_mixer),
  14529. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_AFE_PCM_TX,
  14531. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14532. msm_routing_put_audio_mixer),
  14533. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14534. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14535. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14536. msm_routing_put_audio_mixer),
  14537. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14538. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14539. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14540. msm_routing_put_audio_mixer),
  14541. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14543. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14544. msm_routing_put_audio_mixer),
  14545. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14546. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14547. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14548. msm_routing_put_audio_mixer),
  14549. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14551. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14552. msm_routing_put_audio_mixer),
  14553. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14555. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14556. msm_routing_put_audio_mixer),
  14557. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14559. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14560. msm_routing_put_audio_mixer),
  14561. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14563. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14564. msm_routing_put_audio_mixer),
  14565. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14566. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14567. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14568. msm_routing_put_audio_mixer),
  14569. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14571. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14572. msm_routing_put_audio_mixer),
  14573. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14575. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14576. msm_routing_get_audio_mixer,
  14577. msm_routing_put_audio_mixer),
  14578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14580. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14581. msm_routing_get_audio_mixer,
  14582. msm_routing_put_audio_mixer),
  14583. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14585. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14586. msm_routing_get_audio_mixer,
  14587. msm_routing_put_audio_mixer),
  14588. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14589. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14590. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14591. msm_routing_get_audio_mixer,
  14592. msm_routing_put_audio_mixer),
  14593. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14595. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14596. msm_routing_get_audio_mixer,
  14597. msm_routing_put_audio_mixer),
  14598. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14599. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14600. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14601. msm_routing_get_audio_mixer,
  14602. msm_routing_put_audio_mixer),
  14603. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14605. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14610. msm_routing_put_audio_mixer),
  14611. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14613. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14614. msm_routing_put_audio_mixer),
  14615. };
  14616. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14617. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_PRI_I2S_RX,
  14619. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14620. msm_routing_put_voice_mixer),
  14621. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_PRI_I2S_RX,
  14623. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14624. msm_routing_put_voice_mixer),
  14625. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_PRI_I2S_RX,
  14627. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14628. msm_routing_put_voice_mixer),
  14629. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_PRI_I2S_RX,
  14631. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14632. msm_routing_put_voice_mixer),
  14633. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_PRI_I2S_RX,
  14635. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14636. msm_routing_put_voice_mixer),
  14637. };
  14638. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14639. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_SEC_I2S_RX,
  14641. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14642. msm_routing_put_voice_mixer),
  14643. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_SEC_I2S_RX,
  14645. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14646. msm_routing_put_voice_mixer),
  14647. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_SEC_I2S_RX,
  14649. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14650. msm_routing_put_voice_mixer),
  14651. };
  14652. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14653. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14655. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14656. msm_routing_put_voice_mixer),
  14657. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14659. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14660. msm_routing_put_voice_mixer),
  14661. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14663. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14664. msm_routing_put_voice_mixer),
  14665. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14667. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14668. msm_routing_put_voice_mixer),
  14669. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14671. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14672. msm_routing_put_voice_mixer),
  14673. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14675. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14676. msm_routing_put_voice_mixer),
  14677. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14679. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14680. msm_routing_put_voice_mixer),
  14681. };
  14682. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14683. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14685. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14686. msm_routing_put_voice_mixer),
  14687. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14688. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14689. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14690. msm_routing_put_voice_mixer),
  14691. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14692. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14693. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14694. msm_routing_put_voice_mixer),
  14695. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14697. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14698. msm_routing_put_voice_mixer),
  14699. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14701. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14702. msm_routing_put_voice_mixer),
  14703. };
  14704. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14705. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14707. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14708. msm_routing_put_voice_mixer),
  14709. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14711. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14712. msm_routing_put_voice_mixer),
  14713. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14715. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14716. msm_routing_put_voice_mixer),
  14717. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14719. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14720. msm_routing_put_voice_mixer),
  14721. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14723. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14724. msm_routing_put_voice_mixer),
  14725. };
  14726. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14727. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_USB_RX,
  14729. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14730. msm_routing_put_voice_mixer),
  14731. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_USB_RX,
  14733. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14734. msm_routing_put_voice_mixer),
  14735. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_USB_RX,
  14737. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14738. msm_routing_put_voice_mixer),
  14739. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_USB_RX,
  14741. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14742. msm_routing_put_voice_mixer),
  14743. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_USB_RX,
  14745. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14746. msm_routing_put_voice_mixer),
  14747. };
  14748. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14749. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14751. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14752. msm_routing_put_voice_mixer),
  14753. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14755. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14756. msm_routing_put_voice_mixer),
  14757. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14759. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14760. msm_routing_put_voice_mixer),
  14761. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14763. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14764. msm_routing_put_voice_mixer),
  14765. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14767. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14768. msm_routing_put_voice_mixer),
  14769. };
  14770. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14771. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14773. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14774. msm_routing_put_voice_mixer),
  14775. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14777. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14778. msm_routing_put_voice_mixer),
  14779. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14781. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14782. msm_routing_put_voice_mixer),
  14783. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14785. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14786. msm_routing_put_voice_mixer),
  14787. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14789. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14790. msm_routing_put_voice_mixer),
  14791. };
  14792. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14793. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14794. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14795. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14796. msm_routing_put_voice_mixer),
  14797. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14799. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14800. msm_routing_put_voice_mixer),
  14801. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14803. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14804. msm_routing_put_voice_mixer),
  14805. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14807. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14808. msm_routing_put_voice_mixer),
  14809. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14811. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14812. msm_routing_put_voice_mixer),
  14813. };
  14814. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14815. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_MI2S_RX,
  14817. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14818. msm_routing_put_voice_mixer),
  14819. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_MI2S_RX,
  14821. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14822. msm_routing_put_voice_mixer),
  14823. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_MI2S_RX,
  14825. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14826. msm_routing_put_voice_mixer),
  14827. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_MI2S_RX,
  14829. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14830. msm_routing_put_voice_mixer),
  14831. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_MI2S_RX,
  14833. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14834. msm_routing_put_voice_mixer),
  14835. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_MI2S_RX,
  14837. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14838. msm_routing_put_voice_mixer),
  14839. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_MI2S_RX,
  14841. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14842. msm_routing_put_voice_mixer),
  14843. };
  14844. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  14845. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14847. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14848. msm_routing_put_voice_mixer),
  14849. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14851. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14852. msm_routing_put_voice_mixer),
  14853. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14855. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14856. msm_routing_put_voice_mixer),
  14857. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14859. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14860. msm_routing_put_voice_mixer),
  14861. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14863. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14864. msm_routing_put_voice_mixer),
  14865. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14867. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14868. msm_routing_put_voice_mixer),
  14869. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14871. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14872. msm_routing_put_voice_mixer),
  14873. };
  14874. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  14875. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14877. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14878. msm_routing_put_voice_mixer),
  14879. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14880. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14881. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14882. msm_routing_put_voice_mixer),
  14883. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14885. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14886. msm_routing_put_voice_mixer),
  14887. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14889. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14890. msm_routing_put_voice_mixer),
  14891. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14892. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14893. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14894. msm_routing_put_voice_mixer),
  14895. };
  14896. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  14897. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14899. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14900. msm_routing_put_voice_mixer),
  14901. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14903. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14904. msm_routing_put_voice_mixer),
  14905. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14907. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14908. msm_routing_put_voice_mixer),
  14909. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14911. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14912. msm_routing_put_voice_mixer),
  14913. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14915. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14916. msm_routing_put_voice_mixer),
  14917. };
  14918. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  14919. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14921. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14922. msm_routing_put_voice_mixer),
  14923. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14925. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14926. msm_routing_put_voice_mixer),
  14927. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14929. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14930. msm_routing_put_voice_mixer),
  14931. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14933. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14934. msm_routing_put_voice_mixer),
  14935. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14937. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14938. msm_routing_put_voice_mixer),
  14939. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14941. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14942. msm_routing_put_voice_mixer),
  14943. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14945. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14946. msm_routing_put_voice_mixer),
  14947. };
  14948. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  14949. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14950. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14951. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14952. msm_routing_put_voice_mixer),
  14953. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14954. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14955. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14956. msm_routing_put_voice_mixer),
  14957. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14959. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14960. msm_routing_put_voice_mixer),
  14961. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14963. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14964. msm_routing_put_voice_mixer),
  14965. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14967. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14968. msm_routing_put_voice_mixer),
  14969. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14971. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14972. msm_routing_put_voice_mixer),
  14973. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14975. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14976. msm_routing_put_voice_mixer),
  14977. };
  14978. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  14979. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14981. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14982. msm_routing_put_voice_mixer),
  14983. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14985. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14986. msm_routing_put_voice_stub_mixer),
  14987. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14989. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14990. msm_routing_put_voice_stub_mixer),
  14991. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14993. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14994. msm_routing_put_voice_mixer),
  14995. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14997. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14998. msm_routing_put_voice_mixer),
  14999. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15001. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15002. msm_routing_put_voice_mixer),
  15003. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15005. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15006. msm_routing_put_voice_mixer),
  15007. };
  15008. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15009. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15011. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15012. msm_routing_put_voice_mixer),
  15013. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15015. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15016. msm_routing_put_voice_mixer),
  15017. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15019. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15020. msm_routing_put_voice_mixer),
  15021. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15023. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15024. msm_routing_put_voice_mixer),
  15025. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15027. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15028. msm_routing_put_voice_mixer),
  15029. };
  15030. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15031. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_AFE_PCM_RX,
  15033. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15034. msm_routing_put_voice_mixer),
  15035. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_AFE_PCM_RX,
  15037. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15038. msm_routing_put_voice_mixer),
  15039. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_AFE_PCM_RX,
  15041. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15042. msm_routing_put_voice_mixer),
  15043. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_AFE_PCM_RX,
  15045. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15046. msm_routing_put_voice_mixer),
  15047. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_AFE_PCM_RX,
  15049. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15050. msm_routing_put_voice_mixer),
  15051. };
  15052. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15053. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_AUXPCM_RX,
  15055. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15056. msm_routing_put_voice_mixer),
  15057. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_AUXPCM_RX,
  15059. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15060. msm_routing_put_voice_mixer),
  15061. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_AUXPCM_RX,
  15063. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15064. msm_routing_put_voice_mixer),
  15065. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_AUXPCM_RX,
  15067. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15068. msm_routing_put_voice_mixer),
  15069. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_AUXPCM_RX,
  15071. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15072. msm_routing_put_voice_mixer),
  15073. };
  15074. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15075. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15077. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15078. msm_routing_put_voice_mixer),
  15079. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15081. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15082. msm_routing_put_voice_mixer),
  15083. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15085. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15086. msm_routing_put_voice_mixer),
  15087. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15089. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15090. msm_routing_put_voice_mixer),
  15091. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15093. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15094. msm_routing_put_voice_mixer),
  15095. };
  15096. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15097. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15099. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15100. msm_routing_put_voice_mixer),
  15101. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15103. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15104. msm_routing_put_voice_mixer),
  15105. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15107. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15108. msm_routing_put_voice_mixer),
  15109. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15111. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15112. msm_routing_put_voice_mixer),
  15113. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15115. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15116. msm_routing_put_voice_mixer),
  15117. };
  15118. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15119. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15121. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15122. msm_routing_put_voice_mixer),
  15123. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15125. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15126. msm_routing_put_voice_mixer),
  15127. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15129. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15130. msm_routing_put_voice_mixer),
  15131. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15133. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15134. msm_routing_put_voice_mixer),
  15135. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15137. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15138. msm_routing_put_voice_mixer),
  15139. };
  15140. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15141. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15143. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15144. msm_routing_put_voice_mixer),
  15145. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15147. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15148. msm_routing_put_voice_mixer),
  15149. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15151. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15152. msm_routing_put_voice_mixer),
  15153. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15155. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15156. msm_routing_put_voice_mixer),
  15157. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15158. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15159. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15160. msm_routing_put_voice_mixer),
  15161. };
  15162. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15163. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15164. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15165. msm_routing_put_voice_mixer),
  15166. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15167. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15168. msm_routing_put_voice_mixer),
  15169. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15170. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15171. msm_routing_put_voice_mixer),
  15172. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15174. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15175. msm_routing_put_voice_mixer),
  15176. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15178. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15179. msm_routing_put_voice_mixer),
  15180. };
  15181. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15182. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_HDMI_RX,
  15184. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15185. msm_routing_put_voice_mixer),
  15186. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_HDMI_RX,
  15188. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15189. msm_routing_put_voice_mixer),
  15190. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_HDMI_RX,
  15192. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15193. msm_routing_put_voice_mixer),
  15194. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_HDMI_RX,
  15196. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15197. msm_routing_put_voice_mixer),
  15198. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_HDMI_RX,
  15200. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15201. msm_routing_put_voice_mixer),
  15202. };
  15203. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15204. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15205. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15206. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15207. msm_routing_put_voice_mixer),
  15208. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15210. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15211. msm_routing_put_voice_mixer),
  15212. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15214. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15215. msm_routing_put_voice_mixer),
  15216. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15218. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15219. msm_routing_put_voice_mixer),
  15220. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15222. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15223. msm_routing_put_voice_mixer),
  15224. };
  15225. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15226. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15227. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15228. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15229. msm_routing_put_voice_mixer),
  15230. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15232. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15233. msm_routing_put_voice_mixer),
  15234. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15236. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15237. msm_routing_put_voice_mixer),
  15238. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15239. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15240. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15241. msm_routing_put_voice_mixer),
  15242. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15243. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15244. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15245. msm_routing_put_voice_mixer),
  15246. };
  15247. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15248. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15250. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15251. msm_routing_put_voice_mixer),
  15252. };
  15253. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15254. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15255. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15256. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15257. msm_routing_put_voice_mixer),
  15258. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15259. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15260. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15261. msm_routing_put_voice_mixer),
  15262. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15264. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15265. msm_routing_put_voice_mixer),
  15266. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15268. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15269. msm_routing_put_voice_mixer),
  15270. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15272. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15273. msm_routing_put_voice_mixer),
  15274. };
  15275. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15276. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15277. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15278. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15279. msm_routing_put_voice_mixer),
  15280. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15282. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15283. msm_routing_put_voice_mixer),
  15284. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15287. msm_routing_put_voice_mixer),
  15288. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15290. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15291. msm_routing_put_voice_mixer),
  15292. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15294. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15295. msm_routing_put_voice_mixer),
  15296. };
  15297. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15298. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15299. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15300. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15301. msm_routing_put_voice_mixer),
  15302. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15304. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15305. msm_routing_put_voice_mixer),
  15306. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15308. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15309. msm_routing_put_voice_mixer),
  15310. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15312. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15313. msm_routing_put_voice_mixer),
  15314. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15316. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15317. msm_routing_put_voice_mixer),
  15318. };
  15319. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15320. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15322. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15323. msm_routing_put_voice_mixer),
  15324. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15326. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15327. msm_routing_put_voice_mixer),
  15328. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15330. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15331. msm_routing_put_voice_mixer),
  15332. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15334. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15335. msm_routing_put_voice_mixer),
  15336. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15338. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15339. msm_routing_put_voice_mixer),
  15340. };
  15341. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15342. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15344. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15345. msm_routing_put_voice_mixer),
  15346. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15348. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15349. msm_routing_put_voice_mixer),
  15350. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15352. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15353. msm_routing_put_voice_mixer),
  15354. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15356. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15357. msm_routing_put_voice_mixer),
  15358. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15360. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15361. msm_routing_put_voice_mixer),
  15362. };
  15363. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15364. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15366. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15367. msm_routing_put_voice_mixer),
  15368. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15370. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15371. msm_routing_put_voice_mixer),
  15372. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15374. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15375. msm_routing_put_voice_mixer),
  15376. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15378. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15379. msm_routing_put_voice_mixer),
  15380. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15382. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15383. msm_routing_put_voice_mixer),
  15384. };
  15385. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15386. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15388. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15389. msm_routing_put_voice_mixer),
  15390. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15392. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15393. msm_routing_put_voice_mixer),
  15394. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15396. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15397. msm_routing_put_voice_mixer),
  15398. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15400. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15401. msm_routing_put_voice_mixer),
  15402. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15404. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15405. msm_routing_put_voice_mixer),
  15406. };
  15407. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15408. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15410. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15411. msm_routing_put_voice_mixer),
  15412. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15413. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15414. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15415. msm_routing_put_voice_mixer),
  15416. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15417. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15418. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15419. msm_routing_put_voice_mixer),
  15420. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15422. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15423. msm_routing_put_voice_mixer),
  15424. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15426. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15427. msm_routing_put_voice_mixer),
  15428. };
  15429. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15430. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15431. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15432. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15433. msm_routing_put_voice_mixer),
  15434. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15435. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15436. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15437. msm_routing_put_voice_mixer),
  15438. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15439. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15440. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15441. msm_routing_put_voice_mixer),
  15442. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15443. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15444. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15445. msm_routing_put_voice_mixer),
  15446. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15447. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15448. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15449. msm_routing_put_voice_mixer),
  15450. };
  15451. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15452. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15454. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15455. msm_routing_put_voice_mixer),
  15456. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15458. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15459. msm_routing_put_voice_mixer),
  15460. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15462. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15463. msm_routing_put_voice_mixer),
  15464. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15466. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15467. msm_routing_put_voice_mixer),
  15468. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15470. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15471. msm_routing_put_voice_mixer),
  15472. };
  15473. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15474. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15476. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15477. msm_routing_put_voice_mixer),
  15478. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15479. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15480. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15481. msm_routing_put_voice_stub_mixer),
  15482. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15484. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15485. msm_routing_put_voice_stub_mixer),
  15486. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15487. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15488. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15489. msm_routing_put_voice_mixer),
  15490. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15492. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15493. msm_routing_put_voice_mixer),
  15494. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15496. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15497. msm_routing_put_voice_mixer),
  15498. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15500. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15501. msm_routing_put_voice_mixer),
  15502. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15504. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15505. msm_routing_put_voice_mixer),
  15506. };
  15507. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15508. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15509. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15510. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15511. msm_routing_put_voice_mixer),
  15512. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15513. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15514. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15515. msm_routing_put_voice_stub_mixer),
  15516. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15517. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15518. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15519. msm_routing_put_voice_stub_mixer),
  15520. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15521. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15522. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15523. msm_routing_put_voice_mixer),
  15524. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15526. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15527. msm_routing_put_voice_mixer),
  15528. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15529. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15530. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15531. msm_routing_put_voice_mixer),
  15532. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15534. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15535. msm_routing_put_voice_mixer),
  15536. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15538. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15539. msm_routing_put_voice_mixer),
  15540. };
  15541. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15542. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15543. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15544. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15545. msm_routing_put_voice_mixer),
  15546. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15547. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15548. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15549. msm_routing_put_voice_stub_mixer),
  15550. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15552. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15553. msm_routing_put_voice_stub_mixer),
  15554. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15556. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15557. msm_routing_put_voice_mixer),
  15558. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15560. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15561. msm_routing_put_voice_mixer),
  15562. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15564. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15565. msm_routing_put_voice_mixer),
  15566. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15568. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15569. msm_routing_put_voice_mixer),
  15570. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15572. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15573. msm_routing_put_voice_mixer),
  15574. };
  15575. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15576. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15578. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15579. msm_routing_put_voice_mixer),
  15580. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15582. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15583. msm_routing_put_voice_stub_mixer),
  15584. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15586. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15587. msm_routing_put_voice_stub_mixer),
  15588. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15590. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15591. msm_routing_put_voice_mixer),
  15592. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15594. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15595. msm_routing_put_voice_mixer),
  15596. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15598. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15599. msm_routing_put_voice_mixer),
  15600. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15602. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15603. msm_routing_put_voice_mixer),
  15604. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15606. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15607. msm_routing_put_voice_mixer),
  15608. };
  15609. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15610. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_EXTPROC_RX,
  15612. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15613. msm_routing_put_voice_mixer),
  15614. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_EXTPROC_RX,
  15616. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15617. msm_routing_put_voice_mixer),
  15618. };
  15619. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15620. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15622. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15623. msm_routing_put_voice_mixer),
  15624. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15626. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15627. msm_routing_put_voice_mixer),
  15628. };
  15629. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15630. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15631. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15632. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15633. msm_routing_put_voice_mixer),
  15634. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15636. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15637. msm_routing_put_voice_mixer),
  15638. };
  15639. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15640. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_PRI_I2S_TX,
  15642. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15643. msm_routing_put_voice_mixer),
  15644. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_MI2S_TX,
  15646. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15647. msm_routing_put_voice_mixer),
  15648. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15649. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15650. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15651. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15653. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15654. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15656. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15657. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15658. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15659. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15660. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15661. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15662. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15663. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15665. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15666. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15668. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15669. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15670. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15671. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15672. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15674. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15675. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15677. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15678. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15679. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15680. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15681. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15682. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15683. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15684. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15686. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15687. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15688. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15689. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15690. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15691. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15692. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15693. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_USB_TX,
  15695. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15696. msm_routing_put_voice_mixer),
  15697. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15698. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15699. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15700. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15701. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15702. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15703. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15705. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15706. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15708. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15709. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15710. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15711. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15712. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15713. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15714. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15715. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15717. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15718. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15720. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15721. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15722. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15723. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15724. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15726. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15727. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15729. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15730. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15731. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15732. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15733. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15734. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15735. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15736. };
  15737. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15738. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_PRI_I2S_TX,
  15740. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15741. msm_routing_put_voice_mixer),
  15742. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_MI2S_TX,
  15744. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15745. msm_routing_put_voice_mixer),
  15746. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15748. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15749. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15750. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15751. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15752. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15753. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15754. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15755. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15757. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15758. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15760. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15761. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15762. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15763. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15764. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15765. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15766. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15767. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15769. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15770. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15771. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15772. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15773. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15775. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15776. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15778. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15779. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15780. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15781. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15782. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15783. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15784. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15785. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15786. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15787. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15788. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15790. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15791. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15792. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15793. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15794. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15795. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15796. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15797. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15799. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15800. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15801. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15802. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15803. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15804. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15805. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15806. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15808. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15809. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15810. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15811. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15812. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  15813. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15814. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15815. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  15817. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15818. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  15820. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15821. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15822. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15823. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15824. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15826. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15827. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  15828. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15829. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15830. };
  15831. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  15832. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_PRI_I2S_TX,
  15834. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15835. msm_routing_put_voice_mixer),
  15836. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_MI2S_TX,
  15838. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15839. msm_routing_put_voice_mixer),
  15840. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15842. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15843. msm_routing_put_voice_mixer),
  15844. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15846. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15847. msm_routing_put_voice_mixer),
  15848. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  15849. MSM_BACKEND_DAI_AFE_PCM_TX,
  15850. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15851. msm_routing_put_voice_mixer),
  15852. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_AUXPCM_TX,
  15854. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15855. msm_routing_put_voice_mixer),
  15856. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15857. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15858. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15859. msm_routing_put_voice_mixer),
  15860. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15861. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15862. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15863. msm_routing_put_voice_mixer),
  15864. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15865. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15866. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15867. msm_routing_put_voice_mixer),
  15868. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15869. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15870. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15871. msm_routing_put_voice_mixer),
  15872. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15873. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15874. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15875. msm_routing_put_voice_mixer),
  15876. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  15877. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15878. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15879. msm_routing_put_voice_mixer),
  15880. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  15881. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15882. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15883. msm_routing_put_voice_mixer),
  15884. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15886. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15887. msm_routing_put_voice_mixer),
  15888. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  15889. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15890. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15891. msm_routing_put_voice_mixer),
  15892. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  15893. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15894. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15895. msm_routing_put_voice_mixer),
  15896. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15898. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15899. msm_routing_put_voice_mixer),
  15900. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  15901. MSM_BACKEND_DAI_USB_TX,
  15902. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15903. msm_routing_put_voice_mixer),
  15904. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15905. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15906. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15909. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15910. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15912. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15913. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15914. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15915. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15916. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15917. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15918. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15919. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15921. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15922. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  15924. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15925. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  15927. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15928. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  15930. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15931. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15932. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15933. msm_routing_put_voice_mixer),
  15934. };
  15935. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  15936. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_EXTPROC_TX,
  15938. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15939. msm_routing_put_voice_stub_mixer),
  15940. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15942. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15943. msm_routing_put_voice_stub_mixer),
  15944. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15946. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15947. msm_routing_put_voice_stub_mixer),
  15948. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15950. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15951. msm_routing_put_voice_stub_mixer),
  15952. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15953. MSM_BACKEND_DAI_MI2S_TX,
  15954. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15955. msm_routing_put_voice_stub_mixer),
  15956. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15957. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15958. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15959. msm_routing_put_voice_stub_mixer),
  15960. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15961. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15962. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15963. msm_routing_put_voice_stub_mixer),
  15964. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15965. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15966. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15967. msm_routing_put_voice_stub_mixer),
  15968. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15969. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15970. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15971. msm_routing_put_voice_stub_mixer),
  15972. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15973. MSM_BACKEND_DAI_AUXPCM_TX,
  15974. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15975. msm_routing_put_voice_stub_mixer),
  15976. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15977. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15978. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15979. msm_routing_put_voice_stub_mixer),
  15980. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15982. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15983. msm_routing_put_voice_stub_mixer),
  15984. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15986. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15987. msm_routing_put_voice_stub_mixer),
  15988. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15990. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15991. msm_routing_put_voice_stub_mixer),
  15992. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15994. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15995. msm_routing_put_voice_stub_mixer),
  15996. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15997. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15998. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15999. msm_routing_put_voice_stub_mixer),
  16000. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16001. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16002. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16003. msm_routing_put_voice_stub_mixer),
  16004. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16005. MSM_BACKEND_DAI_AFE_PCM_TX,
  16006. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16007. msm_routing_put_voice_stub_mixer),
  16008. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16009. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16010. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16011. msm_routing_put_voice_stub_mixer),
  16012. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16013. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16014. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16015. msm_routing_put_voice_stub_mixer),
  16016. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16017. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16018. 1, 0, msm_routing_get_voice_stub_mixer,
  16019. msm_routing_put_voice_stub_mixer),
  16020. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16021. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16022. 1, 0, msm_routing_get_voice_stub_mixer,
  16023. msm_routing_put_voice_stub_mixer),
  16024. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16025. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16026. 1, 0, msm_routing_get_voice_stub_mixer,
  16027. msm_routing_put_voice_stub_mixer),
  16028. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16030. 1, 0, msm_routing_get_voice_stub_mixer,
  16031. msm_routing_put_voice_stub_mixer),
  16032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16034. 1, 0, msm_routing_get_voice_stub_mixer,
  16035. msm_routing_put_voice_stub_mixer),
  16036. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16038. 1, 0, msm_routing_get_voice_stub_mixer,
  16039. msm_routing_put_voice_stub_mixer),
  16040. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16042. 1, 0, msm_routing_get_voice_stub_mixer,
  16043. msm_routing_put_voice_stub_mixer),
  16044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16046. 1, 0, msm_routing_get_voice_stub_mixer,
  16047. msm_routing_put_voice_stub_mixer),
  16048. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16050. 1, 0, msm_routing_get_voice_stub_mixer,
  16051. msm_routing_put_voice_stub_mixer),
  16052. };
  16053. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16054. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16055. MSM_BACKEND_DAI_EXTPROC_TX,
  16056. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16057. msm_routing_put_voice_stub_mixer),
  16058. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16060. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16061. msm_routing_put_voice_stub_mixer),
  16062. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16064. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16065. msm_routing_put_voice_stub_mixer),
  16066. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_AUXPCM_TX,
  16068. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16069. msm_routing_put_voice_stub_mixer),
  16070. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16072. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16073. msm_routing_put_voice_stub_mixer),
  16074. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16075. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16076. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16077. msm_routing_put_voice_stub_mixer),
  16078. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16080. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16081. msm_routing_put_voice_stub_mixer),
  16082. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16084. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16085. msm_routing_put_voice_stub_mixer),
  16086. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16087. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16088. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16089. msm_routing_put_voice_stub_mixer),
  16090. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16092. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16093. msm_routing_put_voice_stub_mixer),
  16094. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16096. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16097. msm_routing_put_voice_stub_mixer),
  16098. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16099. MSM_BACKEND_DAI_AFE_PCM_TX,
  16100. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16101. msm_routing_put_voice_stub_mixer),
  16102. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16103. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16104. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16105. msm_routing_put_voice_stub_mixer),
  16106. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16108. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16109. msm_routing_put_voice_stub_mixer),
  16110. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16112. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16113. msm_routing_put_voice_stub_mixer),
  16114. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16116. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16117. msm_routing_put_voice_stub_mixer),
  16118. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16120. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16121. msm_routing_put_voice_stub_mixer),
  16122. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16124. 1, 0, msm_routing_get_voice_stub_mixer,
  16125. msm_routing_put_voice_stub_mixer),
  16126. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16127. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16128. 1, 0, msm_routing_get_voice_stub_mixer,
  16129. msm_routing_put_voice_stub_mixer),
  16130. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16131. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16132. 1, 0, msm_routing_get_voice_stub_mixer,
  16133. msm_routing_put_voice_stub_mixer),
  16134. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16135. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16136. 1, 0, msm_routing_get_voice_stub_mixer,
  16137. msm_routing_put_voice_stub_mixer),
  16138. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16139. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16140. 1, 0, msm_routing_get_voice_stub_mixer,
  16141. msm_routing_put_voice_stub_mixer),
  16142. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16143. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16144. 1, 0, msm_routing_get_voice_stub_mixer,
  16145. msm_routing_put_voice_stub_mixer),
  16146. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16148. 1, 0, msm_routing_get_voice_stub_mixer,
  16149. msm_routing_put_voice_stub_mixer),
  16150. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16152. 1, 0, msm_routing_get_voice_stub_mixer,
  16153. msm_routing_put_voice_stub_mixer),
  16154. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16156. 1, 0, msm_routing_get_voice_stub_mixer,
  16157. msm_routing_put_voice_stub_mixer),
  16158. };
  16159. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16160. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16161. MSM_BACKEND_DAI_EXTPROC_TX,
  16162. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16163. msm_routing_put_voice_stub_mixer),
  16164. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16165. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16166. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16167. msm_routing_put_voice_stub_mixer),
  16168. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16169. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16170. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16171. msm_routing_put_voice_stub_mixer),
  16172. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16173. MSM_BACKEND_DAI_AUXPCM_TX,
  16174. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16175. msm_routing_put_voice_stub_mixer),
  16176. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16177. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16178. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16179. msm_routing_put_voice_stub_mixer),
  16180. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16182. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16183. msm_routing_put_voice_stub_mixer),
  16184. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16185. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16186. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16187. msm_routing_put_voice_stub_mixer),
  16188. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16189. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16190. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16191. msm_routing_put_voice_stub_mixer),
  16192. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16194. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16195. msm_routing_put_voice_stub_mixer),
  16196. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16197. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16198. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16199. msm_routing_put_voice_stub_mixer),
  16200. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16201. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16202. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16203. msm_routing_put_voice_stub_mixer),
  16204. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_AFE_PCM_TX,
  16206. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16207. msm_routing_put_voice_stub_mixer),
  16208. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16209. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16210. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16211. msm_routing_put_voice_stub_mixer),
  16212. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16213. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16214. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16215. msm_routing_put_voice_stub_mixer),
  16216. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16218. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16219. msm_routing_put_voice_stub_mixer),
  16220. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16221. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16222. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16223. msm_routing_put_voice_stub_mixer),
  16224. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16225. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16226. 1, 0, msm_routing_get_voice_stub_mixer,
  16227. msm_routing_put_voice_stub_mixer),
  16228. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16229. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16230. 1, 0, msm_routing_get_voice_stub_mixer,
  16231. msm_routing_put_voice_stub_mixer),
  16232. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16233. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16234. 1, 0, msm_routing_get_voice_stub_mixer,
  16235. msm_routing_put_voice_stub_mixer),
  16236. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16237. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16238. 1, 0, msm_routing_get_voice_stub_mixer,
  16239. msm_routing_put_voice_stub_mixer),
  16240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16242. 1, 0, msm_routing_get_voice_stub_mixer,
  16243. msm_routing_put_voice_stub_mixer),
  16244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16246. 1, 0, msm_routing_get_voice_stub_mixer,
  16247. msm_routing_put_voice_stub_mixer),
  16248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16250. 1, 0, msm_routing_get_voice_stub_mixer,
  16251. msm_routing_put_voice_stub_mixer),
  16252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16254. 1, 0, msm_routing_get_voice_stub_mixer,
  16255. msm_routing_put_voice_stub_mixer),
  16256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16258. 1, 0, msm_routing_get_voice_stub_mixer,
  16259. msm_routing_put_voice_stub_mixer),
  16260. };
  16261. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16262. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16263. MSM_BACKEND_DAI_PRI_I2S_TX,
  16264. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16265. msm_routing_put_voice_mixer),
  16266. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16267. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16268. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16269. msm_routing_put_voice_mixer),
  16270. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16271. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16272. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16273. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16274. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16275. MSM_BACKEND_DAI_AFE_PCM_TX,
  16276. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16277. msm_routing_put_voice_mixer),
  16278. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16279. MSM_BACKEND_DAI_AUXPCM_TX,
  16280. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16281. msm_routing_put_voice_mixer),
  16282. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16283. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16284. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16285. msm_routing_put_voice_mixer),
  16286. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16288. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16289. msm_routing_put_voice_mixer),
  16290. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16291. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16292. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16293. msm_routing_put_voice_mixer),
  16294. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16295. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16296. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16297. msm_routing_put_voice_mixer),
  16298. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16299. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16300. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16301. msm_routing_put_voice_mixer),
  16302. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16303. MSM_BACKEND_DAI_MI2S_TX,
  16304. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16305. msm_routing_put_voice_mixer),
  16306. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16308. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16309. msm_routing_put_voice_mixer),
  16310. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16312. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16313. msm_routing_put_voice_mixer),
  16314. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16316. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16317. msm_routing_put_voice_mixer),
  16318. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16319. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16320. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16321. msm_routing_put_voice_mixer),
  16322. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16324. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16325. msm_routing_put_voice_mixer),
  16326. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_USB_TX,
  16328. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16329. msm_routing_put_voice_mixer),
  16330. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16331. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16332. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16333. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16334. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16335. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16336. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16338. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16339. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16340. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16341. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16342. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16343. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16344. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16345. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16346. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16347. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16348. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16349. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16350. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16351. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16352. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16353. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16356. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16357. };
  16358. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16359. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16360. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16361. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16362. msm_routing_put_port_mixer),
  16363. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16364. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16365. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16366. msm_routing_put_port_mixer),
  16367. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16368. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16369. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16370. msm_routing_put_port_mixer),
  16371. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16372. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16373. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16374. msm_routing_put_port_mixer),
  16375. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16376. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16377. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16378. msm_routing_put_port_mixer),
  16379. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16380. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16381. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16382. msm_routing_put_port_mixer),
  16383. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16384. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16385. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16386. msm_routing_put_port_mixer),
  16387. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16388. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16389. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16390. msm_routing_put_port_mixer),
  16391. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16392. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16393. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16394. msm_routing_put_port_mixer),
  16395. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16396. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16397. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16398. msm_routing_put_port_mixer),
  16399. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16400. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16401. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16402. msm_routing_put_port_mixer),
  16403. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16405. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16406. msm_routing_put_port_mixer),
  16407. };
  16408. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16409. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16410. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16411. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16412. msm_routing_put_port_mixer),
  16413. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16414. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16415. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16416. msm_routing_put_port_mixer),
  16417. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16418. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16419. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16420. msm_routing_put_port_mixer),
  16421. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16422. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16423. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16424. msm_routing_put_port_mixer),
  16425. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16426. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16427. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16428. msm_routing_put_port_mixer),
  16429. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16430. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16431. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16432. msm_routing_put_port_mixer),
  16433. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16434. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16435. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16436. msm_routing_put_port_mixer),
  16437. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16438. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16439. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16440. msm_routing_put_port_mixer),
  16441. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16442. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16443. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16444. msm_routing_put_port_mixer),
  16445. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16446. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16447. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16448. msm_routing_put_port_mixer),
  16449. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16450. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16451. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16452. msm_routing_put_port_mixer),
  16453. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16454. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16455. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16456. msm_routing_put_port_mixer),
  16457. };
  16458. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16459. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16460. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16462. msm_routing_put_port_mixer),
  16463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16464. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16466. msm_routing_put_port_mixer),
  16467. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16468. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16469. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16470. msm_routing_put_port_mixer),
  16471. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16472. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16473. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16474. msm_routing_put_port_mixer),
  16475. };
  16476. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16477. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16479. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16480. msm_routing_put_port_mixer),
  16481. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16483. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16484. msm_routing_put_port_mixer),
  16485. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16487. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16488. msm_routing_put_port_mixer),
  16489. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16491. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16492. msm_routing_put_port_mixer),
  16493. };
  16494. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16495. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16497. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16498. msm_routing_put_port_mixer),
  16499. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16500. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16501. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16502. msm_routing_put_port_mixer),
  16503. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16504. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16505. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16506. msm_routing_put_port_mixer),
  16507. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16508. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16509. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16510. msm_routing_put_port_mixer),
  16511. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16512. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16513. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16514. msm_routing_put_port_mixer),
  16515. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16516. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16517. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16518. msm_routing_put_port_mixer),
  16519. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16520. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16521. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16522. msm_routing_put_port_mixer),
  16523. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16524. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16525. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16526. msm_routing_put_port_mixer),
  16527. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16528. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16529. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16530. msm_routing_put_port_mixer),
  16531. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16532. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16533. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16534. msm_routing_put_port_mixer),
  16535. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16536. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16537. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16538. msm_routing_put_port_mixer),
  16539. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16540. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16541. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16542. msm_routing_put_port_mixer),
  16543. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16544. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16545. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16546. msm_routing_put_port_mixer),
  16547. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16548. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16549. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16550. msm_routing_put_port_mixer),
  16551. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16552. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16553. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16554. msm_routing_put_port_mixer),
  16555. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16556. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16557. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16558. msm_routing_put_port_mixer),
  16559. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16560. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16561. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16562. msm_routing_put_port_mixer),
  16563. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16564. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16565. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16566. msm_routing_put_port_mixer),
  16567. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16568. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16569. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16570. msm_routing_put_port_mixer),
  16571. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16572. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16573. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16574. msm_routing_put_port_mixer),
  16575. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16577. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16578. msm_routing_put_port_mixer),
  16579. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16581. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16582. msm_routing_put_port_mixer),
  16583. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16585. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16586. msm_routing_put_port_mixer),
  16587. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16589. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16590. msm_routing_put_port_mixer),
  16591. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16592. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16593. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16594. msm_routing_put_port_mixer),
  16595. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16597. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16598. msm_routing_put_port_mixer),
  16599. };
  16600. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16601. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_AUXPCM_RX,
  16603. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16604. msm_routing_put_port_mixer),
  16605. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_AUXPCM_RX,
  16607. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16608. msm_routing_put_port_mixer),
  16609. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16610. MSM_BACKEND_DAI_AUXPCM_RX,
  16611. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16612. msm_routing_put_port_mixer),
  16613. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_AUXPCM_RX,
  16615. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16616. msm_routing_put_port_mixer),
  16617. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_AUXPCM_RX,
  16619. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16620. msm_routing_put_port_mixer),
  16621. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16622. MSM_BACKEND_DAI_AUXPCM_RX,
  16623. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16624. msm_routing_put_port_mixer),
  16625. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_AUXPCM_RX,
  16627. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16628. msm_routing_put_port_mixer),
  16629. };
  16630. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16631. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16632. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16633. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16634. msm_routing_put_port_mixer),
  16635. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16637. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16638. msm_routing_put_port_mixer),
  16639. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16641. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16642. msm_routing_put_port_mixer),
  16643. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16645. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16646. msm_routing_put_port_mixer),
  16647. };
  16648. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16649. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16651. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16652. msm_routing_put_port_mixer),
  16653. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16655. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16656. msm_routing_put_port_mixer),
  16657. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16659. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16660. msm_routing_put_port_mixer),
  16661. };
  16662. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16663. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16664. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16665. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16666. msm_routing_put_port_mixer),
  16667. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16669. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16670. msm_routing_put_port_mixer),
  16671. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16673. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16674. msm_routing_put_port_mixer),
  16675. };
  16676. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16677. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16678. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16679. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16680. msm_routing_put_port_mixer),
  16681. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16683. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16684. msm_routing_put_port_mixer),
  16685. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16687. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16688. msm_routing_put_port_mixer),
  16689. };
  16690. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16691. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16692. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16693. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16694. msm_routing_put_port_mixer),
  16695. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16696. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16697. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16698. msm_routing_put_port_mixer),
  16699. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16701. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16702. msm_routing_put_port_mixer),
  16703. };
  16704. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16705. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16706. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16707. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16708. msm_routing_put_port_mixer),
  16709. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16711. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16712. msm_routing_put_port_mixer),
  16713. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16714. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16715. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16716. msm_routing_put_port_mixer),
  16717. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16719. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16720. msm_routing_put_port_mixer),
  16721. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16723. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16724. msm_routing_put_port_mixer),
  16725. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16726. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16727. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. };
  16730. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16731. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16732. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16733. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16734. msm_routing_put_port_mixer),
  16735. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16737. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16738. msm_routing_put_port_mixer),
  16739. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16741. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16742. msm_routing_put_port_mixer),
  16743. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16745. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16746. msm_routing_put_port_mixer),
  16747. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16749. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16750. msm_routing_put_port_mixer),
  16751. };
  16752. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16753. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16754. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16755. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16756. msm_routing_put_port_mixer),
  16757. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16758. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16759. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16760. msm_routing_put_port_mixer),
  16761. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16763. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16764. msm_routing_put_port_mixer),
  16765. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16766. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16767. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16768. msm_routing_put_port_mixer),
  16769. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16771. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16772. msm_routing_put_port_mixer),
  16773. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16774. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16775. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16776. msm_routing_put_port_mixer),
  16777. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16778. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16779. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16780. msm_routing_put_port_mixer),
  16781. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16783. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16784. msm_routing_put_port_mixer),
  16785. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16786. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16787. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16788. msm_routing_put_port_mixer),
  16789. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16791. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16792. msm_routing_put_port_mixer),
  16793. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16794. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16795. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16796. msm_routing_put_port_mixer),
  16797. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16799. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16800. msm_routing_put_port_mixer),
  16801. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16803. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16804. msm_routing_put_port_mixer),
  16805. };
  16806. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16807. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16809. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16813. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16814. msm_routing_put_port_mixer),
  16815. };
  16816. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  16817. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_AFE_PCM_RX,
  16819. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16820. msm_routing_put_port_mixer),
  16821. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_AFE_PCM_RX,
  16823. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16824. msm_routing_put_port_mixer),
  16825. };
  16826. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  16827. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16828. MSM_BACKEND_DAI_HDMI_RX,
  16829. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16830. msm_routing_put_port_mixer),
  16831. };
  16832. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  16833. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16834. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  16835. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16836. msm_routing_put_port_mixer),
  16837. };
  16838. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  16839. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16841. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16842. msm_routing_put_port_mixer),
  16843. };
  16844. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  16845. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16846. MSM_BACKEND_DAI_SEC_I2S_RX,
  16847. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16848. msm_routing_put_port_mixer),
  16849. };
  16850. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  16851. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_MI2S_RX,
  16853. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16854. msm_routing_put_port_mixer),
  16855. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_MI2S_RX,
  16857. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16858. msm_routing_put_port_mixer),
  16859. };
  16860. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  16861. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16863. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16864. msm_routing_put_port_mixer),
  16865. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16866. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16867. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16868. msm_routing_put_port_mixer),
  16869. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16870. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16871. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16872. msm_routing_put_port_mixer),
  16873. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16874. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16875. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16876. msm_routing_put_port_mixer),
  16877. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16878. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16879. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16880. msm_routing_put_port_mixer),
  16881. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16883. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16884. msm_routing_put_port_mixer),
  16885. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16886. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16887. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16888. msm_routing_put_port_mixer),
  16889. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16891. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16892. msm_routing_put_port_mixer),
  16893. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16895. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16896. msm_routing_put_port_mixer),
  16897. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16898. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16899. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16900. msm_routing_put_port_mixer),
  16901. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16903. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16904. msm_routing_put_port_mixer),
  16905. };
  16906. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  16907. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_USB_RX,
  16909. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. };
  16912. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  16913. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16915. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16916. msm_routing_put_port_mixer),
  16917. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16918. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16919. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16920. msm_routing_put_port_mixer),
  16921. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16923. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16924. msm_routing_put_port_mixer),
  16925. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16927. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16928. msm_routing_put_port_mixer),
  16929. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16931. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16935. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16936. msm_routing_put_port_mixer),
  16937. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16938. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16939. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16940. msm_routing_put_port_mixer),
  16941. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16943. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16944. msm_routing_put_port_mixer),
  16945. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16947. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16948. msm_routing_put_port_mixer),
  16949. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16951. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. };
  16954. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  16955. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16956. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16957. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16958. msm_routing_put_port_mixer),
  16959. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16960. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16961. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16962. msm_routing_put_port_mixer),
  16963. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16964. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16965. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16966. msm_routing_put_port_mixer),
  16967. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16968. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16969. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16970. msm_routing_put_port_mixer),
  16971. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16972. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16973. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16974. msm_routing_put_port_mixer),
  16975. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16976. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16977. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16978. msm_routing_put_port_mixer),
  16979. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16981. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16985. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16986. msm_routing_put_port_mixer),
  16987. };
  16988. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  16989. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16990. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16991. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16992. msm_routing_put_port_mixer),
  16993. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16995. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16996. msm_routing_put_port_mixer),
  16997. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16998. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16999. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17000. msm_routing_put_port_mixer),
  17001. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17002. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17003. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17004. msm_routing_put_port_mixer),
  17005. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17006. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17007. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17008. msm_routing_put_port_mixer),
  17009. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17010. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17011. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17012. msm_routing_put_port_mixer),
  17013. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17014. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17015. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17016. msm_routing_put_port_mixer),
  17017. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17018. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17019. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17020. msm_routing_put_port_mixer),
  17021. };
  17022. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17023. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17025. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17026. msm_routing_get_port_mixer,
  17027. msm_routing_put_port_mixer),
  17028. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17029. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17030. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17031. msm_routing_get_port_mixer,
  17032. msm_routing_put_port_mixer),
  17033. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17034. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17035. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17036. msm_routing_get_port_mixer,
  17037. msm_routing_put_port_mixer),
  17038. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17039. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17040. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17041. msm_routing_get_port_mixer,
  17042. msm_routing_put_port_mixer),
  17043. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17045. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17046. msm_routing_get_port_mixer,
  17047. msm_routing_put_port_mixer),
  17048. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17050. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17051. msm_routing_get_port_mixer,
  17052. msm_routing_put_port_mixer),
  17053. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17054. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17055. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17056. msm_routing_get_port_mixer,
  17057. msm_routing_put_port_mixer),
  17058. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17059. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17060. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17061. msm_routing_get_port_mixer,
  17062. msm_routing_put_port_mixer),
  17063. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17064. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17065. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17066. msm_routing_get_port_mixer,
  17067. msm_routing_put_port_mixer),
  17068. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17069. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17070. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17071. msm_routing_get_port_mixer,
  17072. msm_routing_put_port_mixer),
  17073. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17074. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17075. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17076. msm_routing_get_port_mixer,
  17077. msm_routing_put_port_mixer),
  17078. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17079. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17080. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17081. msm_routing_get_port_mixer,
  17082. msm_routing_put_port_mixer),
  17083. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17085. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17086. msm_routing_get_port_mixer,
  17087. msm_routing_put_port_mixer),
  17088. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17089. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17090. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17091. msm_routing_get_port_mixer,
  17092. msm_routing_put_port_mixer),
  17093. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17094. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17095. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17096. msm_routing_get_port_mixer,
  17097. msm_routing_put_port_mixer),
  17098. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17099. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17100. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17101. msm_routing_get_port_mixer,
  17102. msm_routing_put_port_mixer),
  17103. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17104. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17105. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17106. msm_routing_get_port_mixer,
  17107. msm_routing_put_port_mixer),
  17108. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17109. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17110. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17111. msm_routing_get_port_mixer,
  17112. msm_routing_put_port_mixer),
  17113. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17114. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17115. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17116. msm_routing_get_port_mixer,
  17117. msm_routing_put_port_mixer),
  17118. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17119. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17120. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17121. msm_routing_get_port_mixer,
  17122. msm_routing_put_port_mixer),
  17123. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17124. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17125. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17126. msm_routing_get_port_mixer,
  17127. msm_routing_put_port_mixer),
  17128. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17129. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17130. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17131. msm_routing_get_port_mixer,
  17132. msm_routing_put_port_mixer),
  17133. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17134. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17135. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17136. msm_routing_get_port_mixer,
  17137. msm_routing_put_port_mixer),
  17138. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17139. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17140. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17141. msm_routing_get_port_mixer,
  17142. msm_routing_put_port_mixer),
  17143. };
  17144. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17145. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17147. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17148. msm_routing_get_port_mixer,
  17149. msm_routing_put_port_mixer),
  17150. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17151. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17152. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17153. msm_routing_get_port_mixer,
  17154. msm_routing_put_port_mixer),
  17155. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17156. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17157. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17158. msm_routing_get_port_mixer,
  17159. msm_routing_put_port_mixer),
  17160. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17162. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17163. msm_routing_get_port_mixer,
  17164. msm_routing_put_port_mixer),
  17165. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17167. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17168. msm_routing_get_port_mixer,
  17169. msm_routing_put_port_mixer),
  17170. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17171. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17172. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17173. msm_routing_get_port_mixer,
  17174. msm_routing_put_port_mixer),
  17175. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17177. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17178. msm_routing_get_port_mixer,
  17179. msm_routing_put_port_mixer),
  17180. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17181. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17182. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17183. msm_routing_get_port_mixer,
  17184. msm_routing_put_port_mixer),
  17185. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17186. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17187. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17188. msm_routing_get_port_mixer,
  17189. msm_routing_put_port_mixer),
  17190. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17191. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17192. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17193. msm_routing_get_port_mixer,
  17194. msm_routing_put_port_mixer),
  17195. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17197. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17198. msm_routing_get_port_mixer,
  17199. msm_routing_put_port_mixer),
  17200. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17202. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17203. msm_routing_get_port_mixer,
  17204. msm_routing_put_port_mixer),
  17205. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17206. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17207. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17208. msm_routing_get_port_mixer,
  17209. msm_routing_put_port_mixer),
  17210. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17211. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17212. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17213. msm_routing_get_port_mixer,
  17214. msm_routing_put_port_mixer),
  17215. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17216. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17217. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17218. msm_routing_get_port_mixer,
  17219. msm_routing_put_port_mixer),
  17220. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17221. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17222. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17223. msm_routing_get_port_mixer,
  17224. msm_routing_put_port_mixer),
  17225. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17226. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17227. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17228. msm_routing_get_port_mixer,
  17229. msm_routing_put_port_mixer),
  17230. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17231. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17232. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17233. msm_routing_get_port_mixer,
  17234. msm_routing_put_port_mixer),
  17235. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17236. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17237. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17238. msm_routing_get_port_mixer,
  17239. msm_routing_put_port_mixer),
  17240. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17241. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17242. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17243. msm_routing_get_port_mixer,
  17244. msm_routing_put_port_mixer),
  17245. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17246. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17247. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17248. msm_routing_get_port_mixer,
  17249. msm_routing_put_port_mixer),
  17250. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17251. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17252. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17253. msm_routing_get_port_mixer,
  17254. msm_routing_put_port_mixer),
  17255. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17256. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17257. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17258. msm_routing_get_port_mixer,
  17259. msm_routing_put_port_mixer),
  17260. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17261. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17262. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17263. msm_routing_get_port_mixer,
  17264. msm_routing_put_port_mixer),
  17265. };
  17266. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17267. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17269. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17270. msm_routing_get_port_mixer,
  17271. msm_routing_put_port_mixer),
  17272. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17273. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17274. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17275. msm_routing_get_port_mixer,
  17276. msm_routing_put_port_mixer),
  17277. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17278. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17279. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17280. msm_routing_get_port_mixer,
  17281. msm_routing_put_port_mixer),
  17282. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17283. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17284. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17285. msm_routing_get_port_mixer,
  17286. msm_routing_put_port_mixer),
  17287. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17288. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17289. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17290. msm_routing_get_port_mixer,
  17291. msm_routing_put_port_mixer),
  17292. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17293. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17294. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17295. msm_routing_get_port_mixer,
  17296. msm_routing_put_port_mixer),
  17297. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17298. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17299. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17300. msm_routing_get_port_mixer,
  17301. msm_routing_put_port_mixer),
  17302. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17303. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17304. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17305. msm_routing_get_port_mixer,
  17306. msm_routing_put_port_mixer),
  17307. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17308. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17309. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17310. msm_routing_get_port_mixer,
  17311. msm_routing_put_port_mixer),
  17312. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17313. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17314. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17315. msm_routing_get_port_mixer,
  17316. msm_routing_put_port_mixer),
  17317. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17318. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17319. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17320. msm_routing_get_port_mixer,
  17321. msm_routing_put_port_mixer),
  17322. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17323. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17324. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17325. msm_routing_get_port_mixer,
  17326. msm_routing_put_port_mixer),
  17327. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17328. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17329. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17330. msm_routing_get_port_mixer,
  17331. msm_routing_put_port_mixer),
  17332. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17333. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17334. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17335. msm_routing_get_port_mixer,
  17336. msm_routing_put_port_mixer),
  17337. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17339. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17340. msm_routing_get_port_mixer,
  17341. msm_routing_put_port_mixer),
  17342. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17343. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17344. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17345. msm_routing_get_port_mixer,
  17346. msm_routing_put_port_mixer),
  17347. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17348. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17349. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17350. msm_routing_get_port_mixer,
  17351. msm_routing_put_port_mixer),
  17352. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17353. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17354. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17355. msm_routing_get_port_mixer,
  17356. msm_routing_put_port_mixer),
  17357. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17359. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17360. msm_routing_get_port_mixer,
  17361. msm_routing_put_port_mixer),
  17362. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17363. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17364. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17365. msm_routing_get_port_mixer,
  17366. msm_routing_put_port_mixer),
  17367. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17368. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17369. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17370. msm_routing_get_port_mixer,
  17371. msm_routing_put_port_mixer),
  17372. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17373. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17374. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17375. msm_routing_get_port_mixer,
  17376. msm_routing_put_port_mixer),
  17377. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17378. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17379. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17380. msm_routing_get_port_mixer,
  17381. msm_routing_put_port_mixer),
  17382. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17383. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17384. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17385. msm_routing_get_port_mixer,
  17386. msm_routing_put_port_mixer),
  17387. };
  17388. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17389. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17391. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17392. msm_routing_get_port_mixer,
  17393. msm_routing_put_port_mixer),
  17394. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17395. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17396. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17397. msm_routing_get_port_mixer,
  17398. msm_routing_put_port_mixer),
  17399. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17400. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17401. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17402. msm_routing_get_port_mixer,
  17403. msm_routing_put_port_mixer),
  17404. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17405. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17406. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17407. msm_routing_get_port_mixer,
  17408. msm_routing_put_port_mixer),
  17409. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17410. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17411. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17412. msm_routing_get_port_mixer,
  17413. msm_routing_put_port_mixer),
  17414. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17415. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17416. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17417. msm_routing_get_port_mixer,
  17418. msm_routing_put_port_mixer),
  17419. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17420. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17421. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17422. msm_routing_get_port_mixer,
  17423. msm_routing_put_port_mixer),
  17424. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17425. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17426. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17427. msm_routing_get_port_mixer,
  17428. msm_routing_put_port_mixer),
  17429. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17430. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17431. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17432. msm_routing_get_port_mixer,
  17433. msm_routing_put_port_mixer),
  17434. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17435. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17436. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17437. msm_routing_get_port_mixer,
  17438. msm_routing_put_port_mixer),
  17439. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17441. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17442. msm_routing_get_port_mixer,
  17443. msm_routing_put_port_mixer),
  17444. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17445. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17446. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17447. msm_routing_get_port_mixer,
  17448. msm_routing_put_port_mixer),
  17449. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17450. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17451. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17452. msm_routing_get_port_mixer,
  17453. msm_routing_put_port_mixer),
  17454. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17455. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17456. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17457. msm_routing_get_port_mixer,
  17458. msm_routing_put_port_mixer),
  17459. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17460. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17461. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17462. msm_routing_get_port_mixer,
  17463. msm_routing_put_port_mixer),
  17464. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17465. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17466. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17467. msm_routing_get_port_mixer,
  17468. msm_routing_put_port_mixer),
  17469. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17470. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17471. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17472. msm_routing_get_port_mixer,
  17473. msm_routing_put_port_mixer),
  17474. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17475. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17476. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17477. msm_routing_get_port_mixer,
  17478. msm_routing_put_port_mixer),
  17479. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17480. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17481. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17482. msm_routing_get_port_mixer,
  17483. msm_routing_put_port_mixer),
  17484. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17485. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17486. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17487. msm_routing_get_port_mixer,
  17488. msm_routing_put_port_mixer),
  17489. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17490. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17491. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17492. msm_routing_get_port_mixer,
  17493. msm_routing_put_port_mixer),
  17494. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17495. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17496. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17497. msm_routing_get_port_mixer,
  17498. msm_routing_put_port_mixer),
  17499. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17500. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17501. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17502. msm_routing_get_port_mixer,
  17503. msm_routing_put_port_mixer),
  17504. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17505. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17506. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17507. msm_routing_get_port_mixer,
  17508. msm_routing_put_port_mixer),
  17509. };
  17510. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17511. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17512. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17513. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17514. msm_routing_get_port_mixer,
  17515. msm_routing_put_port_mixer),
  17516. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17517. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17518. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17519. msm_routing_get_port_mixer,
  17520. msm_routing_put_port_mixer),
  17521. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17523. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17524. msm_routing_get_port_mixer,
  17525. msm_routing_put_port_mixer),
  17526. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17527. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17528. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17529. msm_routing_get_port_mixer,
  17530. msm_routing_put_port_mixer),
  17531. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17532. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17533. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17534. msm_routing_get_port_mixer,
  17535. msm_routing_put_port_mixer),
  17536. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17537. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17538. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17539. msm_routing_get_port_mixer,
  17540. msm_routing_put_port_mixer),
  17541. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17542. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17543. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17544. msm_routing_get_port_mixer,
  17545. msm_routing_put_port_mixer),
  17546. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17547. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17548. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17549. msm_routing_get_port_mixer,
  17550. msm_routing_put_port_mixer),
  17551. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17552. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17553. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17554. msm_routing_get_port_mixer,
  17555. msm_routing_put_port_mixer),
  17556. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17557. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17558. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17559. msm_routing_get_port_mixer,
  17560. msm_routing_put_port_mixer),
  17561. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17562. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17563. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17564. msm_routing_get_port_mixer,
  17565. msm_routing_put_port_mixer),
  17566. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17567. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17568. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17569. msm_routing_get_port_mixer,
  17570. msm_routing_put_port_mixer),
  17571. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17572. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17573. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17574. msm_routing_get_port_mixer,
  17575. msm_routing_put_port_mixer),
  17576. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17577. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17578. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17579. msm_routing_get_port_mixer,
  17580. msm_routing_put_port_mixer),
  17581. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17582. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17583. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17584. msm_routing_get_port_mixer,
  17585. msm_routing_put_port_mixer),
  17586. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17587. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17588. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17589. msm_routing_get_port_mixer,
  17590. msm_routing_put_port_mixer),
  17591. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17592. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17593. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17594. msm_routing_get_port_mixer,
  17595. msm_routing_put_port_mixer),
  17596. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17597. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17598. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17599. msm_routing_get_port_mixer,
  17600. msm_routing_put_port_mixer),
  17601. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17602. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17603. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17604. msm_routing_get_port_mixer,
  17605. msm_routing_put_port_mixer),
  17606. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17607. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17608. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17609. msm_routing_get_port_mixer,
  17610. msm_routing_put_port_mixer),
  17611. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17612. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17613. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17614. msm_routing_get_port_mixer,
  17615. msm_routing_put_port_mixer),
  17616. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17617. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17618. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17619. msm_routing_get_port_mixer,
  17620. msm_routing_put_port_mixer),
  17621. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17622. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17623. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17624. msm_routing_get_port_mixer,
  17625. msm_routing_put_port_mixer),
  17626. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17627. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17628. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17629. msm_routing_get_port_mixer,
  17630. msm_routing_put_port_mixer),
  17631. };
  17632. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17633. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17635. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17636. msm_routing_get_port_mixer,
  17637. msm_routing_put_port_mixer),
  17638. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17639. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17640. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17641. msm_routing_get_port_mixer,
  17642. msm_routing_put_port_mixer),
  17643. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17644. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17645. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17646. msm_routing_get_port_mixer,
  17647. msm_routing_put_port_mixer),
  17648. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17649. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17650. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17651. msm_routing_get_port_mixer,
  17652. msm_routing_put_port_mixer),
  17653. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17655. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17656. msm_routing_get_port_mixer,
  17657. msm_routing_put_port_mixer),
  17658. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17659. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17660. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17661. msm_routing_get_port_mixer,
  17662. msm_routing_put_port_mixer),
  17663. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17664. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17665. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17666. msm_routing_get_port_mixer,
  17667. msm_routing_put_port_mixer),
  17668. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17669. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17670. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17671. msm_routing_get_port_mixer,
  17672. msm_routing_put_port_mixer),
  17673. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17674. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17675. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17676. msm_routing_get_port_mixer,
  17677. msm_routing_put_port_mixer),
  17678. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17679. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17680. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17681. msm_routing_get_port_mixer,
  17682. msm_routing_put_port_mixer),
  17683. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17685. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17686. msm_routing_get_port_mixer,
  17687. msm_routing_put_port_mixer),
  17688. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17689. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17690. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17691. msm_routing_get_port_mixer,
  17692. msm_routing_put_port_mixer),
  17693. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17694. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17695. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17696. msm_routing_get_port_mixer,
  17697. msm_routing_put_port_mixer),
  17698. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17699. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17700. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17701. msm_routing_get_port_mixer,
  17702. msm_routing_put_port_mixer),
  17703. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17704. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17705. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17706. msm_routing_get_port_mixer,
  17707. msm_routing_put_port_mixer),
  17708. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17709. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17710. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17711. msm_routing_get_port_mixer,
  17712. msm_routing_put_port_mixer),
  17713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17714. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17715. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17716. msm_routing_get_port_mixer,
  17717. msm_routing_put_port_mixer),
  17718. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17719. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17720. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17721. msm_routing_get_port_mixer,
  17722. msm_routing_put_port_mixer),
  17723. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17724. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17725. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17726. msm_routing_get_port_mixer,
  17727. msm_routing_put_port_mixer),
  17728. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17729. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17730. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17731. msm_routing_get_port_mixer,
  17732. msm_routing_put_port_mixer),
  17733. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17734. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17735. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17736. msm_routing_get_port_mixer,
  17737. msm_routing_put_port_mixer),
  17738. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17739. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17740. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17741. msm_routing_get_port_mixer,
  17742. msm_routing_put_port_mixer),
  17743. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17744. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17745. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17746. msm_routing_get_port_mixer,
  17747. msm_routing_put_port_mixer),
  17748. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17749. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17750. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17751. msm_routing_get_port_mixer,
  17752. msm_routing_put_port_mixer),
  17753. };
  17754. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17755. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17756. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17757. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17758. msm_routing_get_port_mixer,
  17759. msm_routing_put_port_mixer),
  17760. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17761. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17762. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17763. msm_routing_get_port_mixer,
  17764. msm_routing_put_port_mixer),
  17765. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17766. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17767. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17768. msm_routing_get_port_mixer,
  17769. msm_routing_put_port_mixer),
  17770. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17771. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17772. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17773. msm_routing_get_port_mixer,
  17774. msm_routing_put_port_mixer),
  17775. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17776. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17777. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17778. msm_routing_get_port_mixer,
  17779. msm_routing_put_port_mixer),
  17780. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17781. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17782. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17783. msm_routing_get_port_mixer,
  17784. msm_routing_put_port_mixer),
  17785. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17786. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17787. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17788. msm_routing_get_port_mixer,
  17789. msm_routing_put_port_mixer),
  17790. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17791. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17792. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17793. msm_routing_get_port_mixer,
  17794. msm_routing_put_port_mixer),
  17795. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17796. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17797. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17798. msm_routing_get_port_mixer,
  17799. msm_routing_put_port_mixer),
  17800. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17801. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17802. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17803. msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17807. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17808. msm_routing_get_port_mixer,
  17809. msm_routing_put_port_mixer),
  17810. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17811. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17812. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17813. msm_routing_get_port_mixer,
  17814. msm_routing_put_port_mixer),
  17815. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17816. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17817. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17818. msm_routing_get_port_mixer,
  17819. msm_routing_put_port_mixer),
  17820. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17821. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17822. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17823. msm_routing_get_port_mixer,
  17824. msm_routing_put_port_mixer),
  17825. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17826. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17827. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17828. msm_routing_get_port_mixer,
  17829. msm_routing_put_port_mixer),
  17830. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17831. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17832. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17833. msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17836. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17837. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17838. msm_routing_get_port_mixer,
  17839. msm_routing_put_port_mixer),
  17840. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17841. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17842. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17843. msm_routing_get_port_mixer,
  17844. msm_routing_put_port_mixer),
  17845. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17846. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17847. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17848. msm_routing_get_port_mixer,
  17849. msm_routing_put_port_mixer),
  17850. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17851. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17852. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17853. msm_routing_get_port_mixer,
  17854. msm_routing_put_port_mixer),
  17855. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17856. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17857. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17858. msm_routing_get_port_mixer,
  17859. msm_routing_put_port_mixer),
  17860. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17861. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17862. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17863. msm_routing_get_port_mixer,
  17864. msm_routing_put_port_mixer),
  17865. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17866. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17867. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17868. msm_routing_get_port_mixer,
  17869. msm_routing_put_port_mixer),
  17870. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17871. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17872. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17873. msm_routing_get_port_mixer,
  17874. msm_routing_put_port_mixer),
  17875. };
  17876. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  17877. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17878. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17879. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17880. msm_routing_get_port_mixer,
  17881. msm_routing_put_port_mixer),
  17882. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17883. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17884. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17885. msm_routing_get_port_mixer,
  17886. msm_routing_put_port_mixer),
  17887. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17888. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17889. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17890. msm_routing_get_port_mixer,
  17891. msm_routing_put_port_mixer),
  17892. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17893. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17894. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17895. msm_routing_get_port_mixer,
  17896. msm_routing_put_port_mixer),
  17897. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17898. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17899. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17900. msm_routing_get_port_mixer,
  17901. msm_routing_put_port_mixer),
  17902. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17903. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17904. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17905. msm_routing_get_port_mixer,
  17906. msm_routing_put_port_mixer),
  17907. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17908. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17909. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17910. msm_routing_get_port_mixer,
  17911. msm_routing_put_port_mixer),
  17912. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17913. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17914. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17915. msm_routing_get_port_mixer,
  17916. msm_routing_put_port_mixer),
  17917. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17918. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17919. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17920. msm_routing_get_port_mixer,
  17921. msm_routing_put_port_mixer),
  17922. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17923. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17924. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17925. msm_routing_get_port_mixer,
  17926. msm_routing_put_port_mixer),
  17927. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17928. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17929. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17930. msm_routing_get_port_mixer,
  17931. msm_routing_put_port_mixer),
  17932. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17933. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17934. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17935. msm_routing_get_port_mixer,
  17936. msm_routing_put_port_mixer),
  17937. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17938. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17939. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17940. msm_routing_get_port_mixer,
  17941. msm_routing_put_port_mixer),
  17942. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17943. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17944. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17945. msm_routing_get_port_mixer,
  17946. msm_routing_put_port_mixer),
  17947. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17948. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17949. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17950. msm_routing_get_port_mixer,
  17951. msm_routing_put_port_mixer),
  17952. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17953. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17954. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17955. msm_routing_get_port_mixer,
  17956. msm_routing_put_port_mixer),
  17957. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17958. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17959. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17960. msm_routing_get_port_mixer,
  17961. msm_routing_put_port_mixer),
  17962. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17963. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17964. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17965. msm_routing_get_port_mixer,
  17966. msm_routing_put_port_mixer),
  17967. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17968. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17969. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17970. msm_routing_get_port_mixer,
  17971. msm_routing_put_port_mixer),
  17972. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17973. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17974. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17975. msm_routing_get_port_mixer,
  17976. msm_routing_put_port_mixer),
  17977. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17978. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17979. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17980. msm_routing_get_port_mixer,
  17981. msm_routing_put_port_mixer),
  17982. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17983. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17984. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17985. msm_routing_get_port_mixer,
  17986. msm_routing_put_port_mixer),
  17987. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17988. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17989. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17990. msm_routing_get_port_mixer,
  17991. msm_routing_put_port_mixer),
  17992. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17993. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17994. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17995. msm_routing_get_port_mixer,
  17996. msm_routing_put_port_mixer),
  17997. };
  17998. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  17999. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18000. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18001. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18002. msm_routing_get_port_mixer,
  18003. msm_routing_put_port_mixer),
  18004. };
  18005. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18006. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18008. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18013. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18018. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18023. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18028. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18033. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18038. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18043. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18048. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18049. msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18053. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18054. msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18057. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18058. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18059. msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18062. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18063. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18064. msm_routing_get_port_mixer,
  18065. msm_routing_put_port_mixer),
  18066. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18067. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18068. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18069. msm_routing_get_port_mixer,
  18070. msm_routing_put_port_mixer),
  18071. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18072. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18073. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18074. msm_routing_get_port_mixer,
  18075. msm_routing_put_port_mixer),
  18076. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18077. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18078. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18079. msm_routing_get_port_mixer,
  18080. msm_routing_put_port_mixer),
  18081. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18083. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18084. msm_routing_get_port_mixer,
  18085. msm_routing_put_port_mixer),
  18086. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18087. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18088. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18089. msm_routing_get_port_mixer,
  18090. msm_routing_put_port_mixer),
  18091. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18092. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18093. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18094. msm_routing_get_port_mixer,
  18095. msm_routing_put_port_mixer),
  18096. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18097. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18098. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18099. msm_routing_get_port_mixer,
  18100. msm_routing_put_port_mixer),
  18101. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18102. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18103. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18104. msm_routing_get_port_mixer,
  18105. msm_routing_put_port_mixer),
  18106. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18107. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18108. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18109. msm_routing_get_port_mixer,
  18110. msm_routing_put_port_mixer),
  18111. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18112. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18113. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18114. msm_routing_get_port_mixer,
  18115. msm_routing_put_port_mixer),
  18116. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18117. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18118. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18119. msm_routing_get_port_mixer,
  18120. msm_routing_put_port_mixer),
  18121. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18122. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18123. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18124. msm_routing_get_port_mixer,
  18125. msm_routing_put_port_mixer),
  18126. };
  18127. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18128. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18130. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18135. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18140. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18145. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18150. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18155. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18160. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18165. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18170. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18171. msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18175. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18176. msm_routing_get_port_mixer,
  18177. msm_routing_put_port_mixer),
  18178. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18179. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18180. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18181. msm_routing_get_port_mixer,
  18182. msm_routing_put_port_mixer),
  18183. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18184. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18185. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18186. msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18189. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18190. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18191. msm_routing_get_port_mixer,
  18192. msm_routing_put_port_mixer),
  18193. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18194. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18195. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18196. msm_routing_get_port_mixer,
  18197. msm_routing_put_port_mixer),
  18198. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18199. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18200. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18201. msm_routing_get_port_mixer,
  18202. msm_routing_put_port_mixer),
  18203. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18205. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18206. msm_routing_get_port_mixer,
  18207. msm_routing_put_port_mixer),
  18208. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18209. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18210. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18211. msm_routing_get_port_mixer,
  18212. msm_routing_put_port_mixer),
  18213. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18214. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18215. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18216. msm_routing_get_port_mixer,
  18217. msm_routing_put_port_mixer),
  18218. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18219. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18220. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18221. msm_routing_get_port_mixer,
  18222. msm_routing_put_port_mixer),
  18223. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18224. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18225. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18226. msm_routing_get_port_mixer,
  18227. msm_routing_put_port_mixer),
  18228. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18229. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18230. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18231. msm_routing_get_port_mixer,
  18232. msm_routing_put_port_mixer),
  18233. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18234. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18235. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18236. msm_routing_get_port_mixer,
  18237. msm_routing_put_port_mixer),
  18238. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18239. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18240. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18241. msm_routing_get_port_mixer,
  18242. msm_routing_put_port_mixer),
  18243. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18244. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18245. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18246. msm_routing_get_port_mixer,
  18247. msm_routing_put_port_mixer),
  18248. };
  18249. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18250. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18252. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18253. msm_routing_get_port_mixer,
  18254. msm_routing_put_port_mixer),
  18255. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18257. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18258. msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18262. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18263. msm_routing_get_port_mixer,
  18264. msm_routing_put_port_mixer),
  18265. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18266. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18267. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18268. msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18272. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18277. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18282. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18287. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18291. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18292. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18293. msm_routing_get_port_mixer,
  18294. msm_routing_put_port_mixer),
  18295. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18296. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18297. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18298. msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18302. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18303. msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18306. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18307. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18308. msm_routing_get_port_mixer,
  18309. msm_routing_put_port_mixer),
  18310. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18311. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18312. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18313. msm_routing_get_port_mixer,
  18314. msm_routing_put_port_mixer),
  18315. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18316. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18317. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18318. msm_routing_get_port_mixer,
  18319. msm_routing_put_port_mixer),
  18320. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18321. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18322. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18323. msm_routing_get_port_mixer,
  18324. msm_routing_put_port_mixer),
  18325. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18326. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18327. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18328. msm_routing_get_port_mixer,
  18329. msm_routing_put_port_mixer),
  18330. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18331. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18332. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18333. msm_routing_get_port_mixer,
  18334. msm_routing_put_port_mixer),
  18335. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18336. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18337. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18338. msm_routing_get_port_mixer,
  18339. msm_routing_put_port_mixer),
  18340. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18341. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18342. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18343. msm_routing_get_port_mixer,
  18344. msm_routing_put_port_mixer),
  18345. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18346. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18347. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18348. msm_routing_get_port_mixer,
  18349. msm_routing_put_port_mixer),
  18350. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18351. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18352. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18353. msm_routing_get_port_mixer,
  18354. msm_routing_put_port_mixer),
  18355. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18356. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18357. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18358. msm_routing_get_port_mixer,
  18359. msm_routing_put_port_mixer),
  18360. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18361. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18362. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18363. msm_routing_get_port_mixer,
  18364. msm_routing_put_port_mixer),
  18365. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18366. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18367. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18368. msm_routing_get_port_mixer,
  18369. msm_routing_put_port_mixer),
  18370. };
  18371. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18372. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18374. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18379. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18384. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18389. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18394. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18399. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18404. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18409. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18413. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18414. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18415. msm_routing_get_port_mixer,
  18416. msm_routing_put_port_mixer),
  18417. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18419. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18420. msm_routing_get_port_mixer,
  18421. msm_routing_put_port_mixer),
  18422. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18424. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18425. msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18428. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18429. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18430. msm_routing_get_port_mixer,
  18431. msm_routing_put_port_mixer),
  18432. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18433. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18434. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18435. msm_routing_get_port_mixer,
  18436. msm_routing_put_port_mixer),
  18437. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18438. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18439. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18440. msm_routing_get_port_mixer,
  18441. msm_routing_put_port_mixer),
  18442. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18443. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18444. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18445. msm_routing_get_port_mixer,
  18446. msm_routing_put_port_mixer),
  18447. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18448. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18449. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18450. msm_routing_get_port_mixer,
  18451. msm_routing_put_port_mixer),
  18452. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18453. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18454. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18455. msm_routing_get_port_mixer,
  18456. msm_routing_put_port_mixer),
  18457. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18458. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18459. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18460. msm_routing_get_port_mixer,
  18461. msm_routing_put_port_mixer),
  18462. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18463. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18464. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18465. msm_routing_get_port_mixer,
  18466. msm_routing_put_port_mixer),
  18467. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18468. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18469. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18470. msm_routing_get_port_mixer,
  18471. msm_routing_put_port_mixer),
  18472. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18473. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18474. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18475. msm_routing_get_port_mixer,
  18476. msm_routing_put_port_mixer),
  18477. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18478. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18479. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18480. msm_routing_get_port_mixer,
  18481. msm_routing_put_port_mixer),
  18482. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18483. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18484. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18485. msm_routing_get_port_mixer,
  18486. msm_routing_put_port_mixer),
  18487. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18488. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18489. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18490. msm_routing_get_port_mixer,
  18491. msm_routing_put_port_mixer),
  18492. };
  18493. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18494. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18495. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18496. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18497. msm_routing_get_port_mixer,
  18498. msm_routing_put_port_mixer),
  18499. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18500. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18501. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18502. msm_routing_get_port_mixer,
  18503. msm_routing_put_port_mixer),
  18504. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18505. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18506. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18507. msm_routing_get_port_mixer,
  18508. msm_routing_put_port_mixer),
  18509. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18510. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18511. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18512. msm_routing_get_port_mixer,
  18513. msm_routing_put_port_mixer),
  18514. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18516. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18517. msm_routing_get_port_mixer,
  18518. msm_routing_put_port_mixer),
  18519. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18520. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18521. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18522. msm_routing_get_port_mixer,
  18523. msm_routing_put_port_mixer),
  18524. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18525. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18526. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18527. msm_routing_get_port_mixer,
  18528. msm_routing_put_port_mixer),
  18529. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18530. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18531. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18532. msm_routing_get_port_mixer,
  18533. msm_routing_put_port_mixer),
  18534. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18535. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18536. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18537. msm_routing_get_port_mixer,
  18538. msm_routing_put_port_mixer),
  18539. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18540. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18541. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18542. msm_routing_get_port_mixer,
  18543. msm_routing_put_port_mixer),
  18544. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18545. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18546. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18547. msm_routing_get_port_mixer,
  18548. msm_routing_put_port_mixer),
  18549. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18550. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18551. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18552. msm_routing_get_port_mixer,
  18553. msm_routing_put_port_mixer),
  18554. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18555. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18556. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18557. msm_routing_get_port_mixer,
  18558. msm_routing_put_port_mixer),
  18559. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18560. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18561. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18562. msm_routing_get_port_mixer,
  18563. msm_routing_put_port_mixer),
  18564. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18565. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18566. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18567. msm_routing_get_port_mixer,
  18568. msm_routing_put_port_mixer),
  18569. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18570. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18571. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18572. msm_routing_get_port_mixer,
  18573. msm_routing_put_port_mixer),
  18574. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18575. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18576. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18577. msm_routing_get_port_mixer,
  18578. msm_routing_put_port_mixer),
  18579. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18580. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18581. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18582. msm_routing_get_port_mixer,
  18583. msm_routing_put_port_mixer),
  18584. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18585. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18586. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18587. msm_routing_get_port_mixer,
  18588. msm_routing_put_port_mixer),
  18589. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18590. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18591. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18592. msm_routing_get_port_mixer,
  18593. msm_routing_put_port_mixer),
  18594. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18595. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18596. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18597. msm_routing_get_port_mixer,
  18598. msm_routing_put_port_mixer),
  18599. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18600. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18601. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18602. msm_routing_get_port_mixer,
  18603. msm_routing_put_port_mixer),
  18604. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18605. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18606. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18607. msm_routing_get_port_mixer,
  18608. msm_routing_put_port_mixer),
  18609. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18610. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18611. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18612. msm_routing_get_port_mixer,
  18613. msm_routing_put_port_mixer),
  18614. };
  18615. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18616. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18618. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18619. msm_routing_get_port_mixer,
  18620. msm_routing_put_port_mixer),
  18621. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18623. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18624. msm_routing_get_port_mixer,
  18625. msm_routing_put_port_mixer),
  18626. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18627. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18628. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18629. msm_routing_get_port_mixer,
  18630. msm_routing_put_port_mixer),
  18631. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18632. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18633. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18634. msm_routing_get_port_mixer,
  18635. msm_routing_put_port_mixer),
  18636. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18638. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18639. msm_routing_get_port_mixer,
  18640. msm_routing_put_port_mixer),
  18641. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18643. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18644. msm_routing_get_port_mixer,
  18645. msm_routing_put_port_mixer),
  18646. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18647. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18648. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18649. msm_routing_get_port_mixer,
  18650. msm_routing_put_port_mixer),
  18651. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18652. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18653. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18654. msm_routing_get_port_mixer,
  18655. msm_routing_put_port_mixer),
  18656. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18658. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18659. msm_routing_get_port_mixer,
  18660. msm_routing_put_port_mixer),
  18661. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18662. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18663. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18664. msm_routing_get_port_mixer,
  18665. msm_routing_put_port_mixer),
  18666. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18667. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18668. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18669. msm_routing_get_port_mixer,
  18670. msm_routing_put_port_mixer),
  18671. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18672. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18673. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18674. msm_routing_get_port_mixer,
  18675. msm_routing_put_port_mixer),
  18676. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18677. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18678. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18679. msm_routing_get_port_mixer,
  18680. msm_routing_put_port_mixer),
  18681. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18682. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18683. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18684. msm_routing_get_port_mixer,
  18685. msm_routing_put_port_mixer),
  18686. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18688. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18689. msm_routing_get_port_mixer,
  18690. msm_routing_put_port_mixer),
  18691. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18692. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18693. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18694. msm_routing_get_port_mixer,
  18695. msm_routing_put_port_mixer),
  18696. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18697. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18698. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18699. msm_routing_get_port_mixer,
  18700. msm_routing_put_port_mixer),
  18701. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18702. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18703. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18704. msm_routing_get_port_mixer,
  18705. msm_routing_put_port_mixer),
  18706. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18707. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18708. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18709. msm_routing_get_port_mixer,
  18710. msm_routing_put_port_mixer),
  18711. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18712. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18713. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18714. msm_routing_get_port_mixer,
  18715. msm_routing_put_port_mixer),
  18716. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18717. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18718. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18719. msm_routing_get_port_mixer,
  18720. msm_routing_put_port_mixer),
  18721. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18722. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18723. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18724. msm_routing_get_port_mixer,
  18725. msm_routing_put_port_mixer),
  18726. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18727. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18728. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18729. msm_routing_get_port_mixer,
  18730. msm_routing_put_port_mixer),
  18731. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18732. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18733. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18734. msm_routing_get_port_mixer,
  18735. msm_routing_put_port_mixer),
  18736. };
  18737. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18738. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18739. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18740. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18741. msm_routing_get_port_mixer,
  18742. msm_routing_put_port_mixer),
  18743. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18744. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18745. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18746. msm_routing_get_port_mixer,
  18747. msm_routing_put_port_mixer),
  18748. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18750. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18751. msm_routing_get_port_mixer,
  18752. msm_routing_put_port_mixer),
  18753. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18755. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18756. msm_routing_get_port_mixer,
  18757. msm_routing_put_port_mixer),
  18758. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18760. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18761. msm_routing_get_port_mixer,
  18762. msm_routing_put_port_mixer),
  18763. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18764. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18765. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18766. msm_routing_get_port_mixer,
  18767. msm_routing_put_port_mixer),
  18768. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18769. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18770. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18771. msm_routing_get_port_mixer,
  18772. msm_routing_put_port_mixer),
  18773. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18774. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18775. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18776. msm_routing_get_port_mixer,
  18777. msm_routing_put_port_mixer),
  18778. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18780. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18781. msm_routing_get_port_mixer,
  18782. msm_routing_put_port_mixer),
  18783. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18784. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18785. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18786. msm_routing_get_port_mixer,
  18787. msm_routing_put_port_mixer),
  18788. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18789. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18790. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18791. msm_routing_get_port_mixer,
  18792. msm_routing_put_port_mixer),
  18793. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18794. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18795. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18796. msm_routing_get_port_mixer,
  18797. msm_routing_put_port_mixer),
  18798. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18800. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18801. msm_routing_get_port_mixer,
  18802. msm_routing_put_port_mixer),
  18803. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18804. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18805. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18806. msm_routing_get_port_mixer,
  18807. msm_routing_put_port_mixer),
  18808. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18809. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18810. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18811. msm_routing_get_port_mixer,
  18812. msm_routing_put_port_mixer),
  18813. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18814. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18815. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18816. msm_routing_get_port_mixer,
  18817. msm_routing_put_port_mixer),
  18818. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18819. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18820. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18821. msm_routing_get_port_mixer,
  18822. msm_routing_put_port_mixer),
  18823. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18824. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18825. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18826. msm_routing_get_port_mixer,
  18827. msm_routing_put_port_mixer),
  18828. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18829. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18830. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18831. msm_routing_get_port_mixer,
  18832. msm_routing_put_port_mixer),
  18833. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18834. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18835. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18836. msm_routing_get_port_mixer,
  18837. msm_routing_put_port_mixer),
  18838. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18839. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18840. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18841. msm_routing_get_port_mixer,
  18842. msm_routing_put_port_mixer),
  18843. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18844. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18845. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18846. msm_routing_get_port_mixer,
  18847. msm_routing_put_port_mixer),
  18848. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18849. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18850. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18851. msm_routing_get_port_mixer,
  18852. msm_routing_put_port_mixer),
  18853. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18854. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18855. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18856. msm_routing_get_port_mixer,
  18857. msm_routing_put_port_mixer),
  18858. };
  18859. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  18860. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18861. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18862. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18863. msm_routing_get_port_mixer,
  18864. msm_routing_put_port_mixer),
  18865. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18866. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18867. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18868. msm_routing_get_port_mixer,
  18869. msm_routing_put_port_mixer),
  18870. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18871. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18872. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18873. msm_routing_get_port_mixer,
  18874. msm_routing_put_port_mixer),
  18875. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18876. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18877. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18878. msm_routing_get_port_mixer,
  18879. msm_routing_put_port_mixer),
  18880. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18882. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18883. msm_routing_get_port_mixer,
  18884. msm_routing_put_port_mixer),
  18885. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18886. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18887. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18888. msm_routing_get_port_mixer,
  18889. msm_routing_put_port_mixer),
  18890. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18891. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18892. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18893. msm_routing_get_port_mixer,
  18894. msm_routing_put_port_mixer),
  18895. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18896. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18897. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18898. msm_routing_get_port_mixer,
  18899. msm_routing_put_port_mixer),
  18900. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18901. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18902. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18903. msm_routing_get_port_mixer,
  18904. msm_routing_put_port_mixer),
  18905. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18906. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18907. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18908. msm_routing_get_port_mixer,
  18909. msm_routing_put_port_mixer),
  18910. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18911. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18912. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18913. msm_routing_get_port_mixer,
  18914. msm_routing_put_port_mixer),
  18915. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18916. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18917. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18918. msm_routing_get_port_mixer,
  18919. msm_routing_put_port_mixer),
  18920. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18921. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18922. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18923. msm_routing_get_port_mixer,
  18924. msm_routing_put_port_mixer),
  18925. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18926. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18927. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18928. msm_routing_get_port_mixer,
  18929. msm_routing_put_port_mixer),
  18930. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18931. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18932. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18933. msm_routing_get_port_mixer,
  18934. msm_routing_put_port_mixer),
  18935. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18936. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18937. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18938. msm_routing_get_port_mixer,
  18939. msm_routing_put_port_mixer),
  18940. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18941. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18942. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18943. msm_routing_get_port_mixer,
  18944. msm_routing_put_port_mixer),
  18945. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18946. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18947. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18948. msm_routing_get_port_mixer,
  18949. msm_routing_put_port_mixer),
  18950. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18951. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18952. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18953. msm_routing_get_port_mixer,
  18954. msm_routing_put_port_mixer),
  18955. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18956. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18957. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18958. msm_routing_get_port_mixer,
  18959. msm_routing_put_port_mixer),
  18960. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18961. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18962. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18963. msm_routing_get_port_mixer,
  18964. msm_routing_put_port_mixer),
  18965. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18966. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18967. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18968. msm_routing_get_port_mixer,
  18969. msm_routing_put_port_mixer),
  18970. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18971. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18972. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18973. msm_routing_get_port_mixer,
  18974. msm_routing_put_port_mixer),
  18975. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18976. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18977. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18978. msm_routing_get_port_mixer,
  18979. msm_routing_put_port_mixer),
  18980. };
  18981. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  18982. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18983. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18984. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18985. msm_routing_get_port_mixer,
  18986. msm_routing_put_port_mixer),
  18987. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  18988. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18989. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  18990. msm_routing_get_port_mixer,
  18991. msm_routing_put_port_mixer),
  18992. };
  18993. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  18994. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18995. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18996. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18997. msm_routing_get_port_mixer,
  18998. msm_routing_put_port_mixer),
  18999. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19000. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19001. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19002. msm_routing_get_port_mixer,
  19003. msm_routing_put_port_mixer),
  19004. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19005. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19006. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19007. msm_routing_get_port_mixer,
  19008. msm_routing_put_port_mixer),
  19009. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19010. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19011. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19012. msm_routing_get_port_mixer,
  19013. msm_routing_put_port_mixer),
  19014. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19015. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19016. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19017. msm_routing_get_port_mixer,
  19018. msm_routing_put_port_mixer),
  19019. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19020. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19021. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19022. msm_routing_get_port_mixer,
  19023. msm_routing_put_port_mixer),
  19024. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19025. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19026. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19027. msm_routing_get_port_mixer,
  19028. msm_routing_put_port_mixer),
  19029. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19030. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19031. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19032. msm_routing_get_port_mixer,
  19033. msm_routing_put_port_mixer),
  19034. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19035. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19036. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19037. msm_routing_get_port_mixer,
  19038. msm_routing_put_port_mixer),
  19039. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19040. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19041. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19042. msm_routing_get_port_mixer,
  19043. msm_routing_put_port_mixer),
  19044. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19045. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19046. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19047. msm_routing_get_port_mixer,
  19048. msm_routing_put_port_mixer),
  19049. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19050. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19051. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19052. msm_routing_get_port_mixer,
  19053. msm_routing_put_port_mixer),
  19054. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19055. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19056. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19057. msm_routing_get_port_mixer,
  19058. msm_routing_put_port_mixer),
  19059. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19060. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19061. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19062. msm_routing_get_port_mixer,
  19063. msm_routing_put_port_mixer),
  19064. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19065. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19066. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19067. msm_routing_get_port_mixer,
  19068. msm_routing_put_port_mixer),
  19069. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19070. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19071. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19072. msm_routing_get_port_mixer,
  19073. msm_routing_put_port_mixer),
  19074. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19075. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19076. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19077. msm_routing_get_port_mixer,
  19078. msm_routing_put_port_mixer),
  19079. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19080. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19081. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19082. msm_routing_get_port_mixer,
  19083. msm_routing_put_port_mixer),
  19084. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19085. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19086. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19087. msm_routing_get_port_mixer,
  19088. msm_routing_put_port_mixer),
  19089. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19090. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19091. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19092. msm_routing_get_port_mixer,
  19093. msm_routing_put_port_mixer),
  19094. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19095. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19096. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19097. msm_routing_get_port_mixer,
  19098. msm_routing_put_port_mixer),
  19099. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19100. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19101. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19102. msm_routing_get_port_mixer,
  19103. msm_routing_put_port_mixer),
  19104. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19105. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19106. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19107. msm_routing_get_port_mixer,
  19108. msm_routing_put_port_mixer),
  19109. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19110. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19111. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19112. msm_routing_get_port_mixer,
  19113. msm_routing_put_port_mixer),
  19114. };
  19115. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19116. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19117. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19118. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19119. msm_routing_get_port_mixer,
  19120. msm_routing_put_port_mixer),
  19121. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19122. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19123. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19124. msm_routing_get_port_mixer,
  19125. msm_routing_put_port_mixer),
  19126. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19127. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19128. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19129. msm_routing_get_port_mixer,
  19130. msm_routing_put_port_mixer),
  19131. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19132. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19133. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19134. msm_routing_get_port_mixer,
  19135. msm_routing_put_port_mixer),
  19136. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19137. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19138. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19139. msm_routing_get_port_mixer,
  19140. msm_routing_put_port_mixer),
  19141. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19142. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19143. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19144. msm_routing_get_port_mixer,
  19145. msm_routing_put_port_mixer),
  19146. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19147. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19148. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19149. msm_routing_get_port_mixer,
  19150. msm_routing_put_port_mixer),
  19151. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19152. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19153. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19154. msm_routing_get_port_mixer,
  19155. msm_routing_put_port_mixer),
  19156. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19157. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19158. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19159. msm_routing_get_port_mixer,
  19160. msm_routing_put_port_mixer),
  19161. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19162. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19163. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19164. msm_routing_get_port_mixer,
  19165. msm_routing_put_port_mixer),
  19166. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19167. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19168. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19169. msm_routing_get_port_mixer,
  19170. msm_routing_put_port_mixer),
  19171. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19172. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19173. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19174. msm_routing_get_port_mixer,
  19175. msm_routing_put_port_mixer),
  19176. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19177. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19178. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19179. msm_routing_get_port_mixer,
  19180. msm_routing_put_port_mixer),
  19181. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19182. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19183. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19184. msm_routing_get_port_mixer,
  19185. msm_routing_put_port_mixer),
  19186. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19187. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19188. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19189. msm_routing_get_port_mixer,
  19190. msm_routing_put_port_mixer),
  19191. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19192. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19193. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19194. msm_routing_get_port_mixer,
  19195. msm_routing_put_port_mixer),
  19196. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19197. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19198. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19199. msm_routing_get_port_mixer,
  19200. msm_routing_put_port_mixer),
  19201. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19202. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19203. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19204. msm_routing_get_port_mixer,
  19205. msm_routing_put_port_mixer),
  19206. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19207. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19208. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19209. msm_routing_get_port_mixer,
  19210. msm_routing_put_port_mixer),
  19211. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19212. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19213. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19214. msm_routing_get_port_mixer,
  19215. msm_routing_put_port_mixer),
  19216. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19217. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19218. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19219. msm_routing_get_port_mixer,
  19220. msm_routing_put_port_mixer),
  19221. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19222. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19223. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19224. msm_routing_get_port_mixer,
  19225. msm_routing_put_port_mixer),
  19226. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19227. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19228. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19229. msm_routing_get_port_mixer,
  19230. msm_routing_put_port_mixer),
  19231. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19232. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19233. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19234. msm_routing_get_port_mixer,
  19235. msm_routing_put_port_mixer),
  19236. };
  19237. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19238. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19239. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19240. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19241. msm_routing_get_port_mixer,
  19242. msm_routing_put_port_mixer),
  19243. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19244. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19245. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19246. msm_routing_get_port_mixer,
  19247. msm_routing_put_port_mixer),
  19248. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19249. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19250. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19251. msm_routing_get_port_mixer,
  19252. msm_routing_put_port_mixer),
  19253. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19255. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19256. msm_routing_get_port_mixer,
  19257. msm_routing_put_port_mixer),
  19258. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19260. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19264. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19265. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19266. msm_routing_get_port_mixer,
  19267. msm_routing_put_port_mixer),
  19268. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19269. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19270. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19271. msm_routing_get_port_mixer,
  19272. msm_routing_put_port_mixer),
  19273. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19275. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19276. msm_routing_get_port_mixer,
  19277. msm_routing_put_port_mixer),
  19278. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19279. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19280. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19281. msm_routing_get_port_mixer,
  19282. msm_routing_put_port_mixer),
  19283. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19284. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19285. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19286. msm_routing_get_port_mixer,
  19287. msm_routing_put_port_mixer),
  19288. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19289. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19290. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19291. msm_routing_get_port_mixer,
  19292. msm_routing_put_port_mixer),
  19293. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19294. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19295. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19296. msm_routing_get_port_mixer,
  19297. msm_routing_put_port_mixer),
  19298. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19299. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19300. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19301. msm_routing_get_port_mixer,
  19302. msm_routing_put_port_mixer),
  19303. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19304. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19305. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19306. msm_routing_get_port_mixer,
  19307. msm_routing_put_port_mixer),
  19308. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19309. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19310. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19311. msm_routing_get_port_mixer,
  19312. msm_routing_put_port_mixer),
  19313. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19314. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19315. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19316. msm_routing_get_port_mixer,
  19317. msm_routing_put_port_mixer),
  19318. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19319. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19320. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19321. msm_routing_get_port_mixer,
  19322. msm_routing_put_port_mixer),
  19323. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19324. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19325. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19326. msm_routing_get_port_mixer,
  19327. msm_routing_put_port_mixer),
  19328. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19329. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19330. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19331. msm_routing_get_port_mixer,
  19332. msm_routing_put_port_mixer),
  19333. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19334. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19335. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19336. msm_routing_get_port_mixer,
  19337. msm_routing_put_port_mixer),
  19338. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19339. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19340. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19341. msm_routing_get_port_mixer,
  19342. msm_routing_put_port_mixer),
  19343. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19344. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19345. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19346. msm_routing_get_port_mixer,
  19347. msm_routing_put_port_mixer),
  19348. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19349. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19350. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19351. msm_routing_get_port_mixer,
  19352. msm_routing_put_port_mixer),
  19353. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19354. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19355. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19356. msm_routing_get_port_mixer,
  19357. msm_routing_put_port_mixer),
  19358. };
  19359. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19360. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19361. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19362. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19363. msm_routing_get_port_mixer,
  19364. msm_routing_put_port_mixer),
  19365. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19366. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19367. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19368. msm_routing_get_port_mixer,
  19369. msm_routing_put_port_mixer),
  19370. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19372. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19373. msm_routing_get_port_mixer,
  19374. msm_routing_put_port_mixer),
  19375. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19377. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19382. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19386. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19387. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19388. msm_routing_get_port_mixer,
  19389. msm_routing_put_port_mixer),
  19390. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19392. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19393. msm_routing_get_port_mixer,
  19394. msm_routing_put_port_mixer),
  19395. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19397. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19398. msm_routing_get_port_mixer,
  19399. msm_routing_put_port_mixer),
  19400. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19401. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19402. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19403. msm_routing_get_port_mixer,
  19404. msm_routing_put_port_mixer),
  19405. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19406. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19407. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19408. msm_routing_get_port_mixer,
  19409. msm_routing_put_port_mixer),
  19410. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19411. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19412. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19413. msm_routing_get_port_mixer,
  19414. msm_routing_put_port_mixer),
  19415. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19416. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19417. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19418. msm_routing_get_port_mixer,
  19419. msm_routing_put_port_mixer),
  19420. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19421. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19422. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19423. msm_routing_get_port_mixer,
  19424. msm_routing_put_port_mixer),
  19425. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19426. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19427. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19428. msm_routing_get_port_mixer,
  19429. msm_routing_put_port_mixer),
  19430. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19431. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19432. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19433. msm_routing_get_port_mixer,
  19434. msm_routing_put_port_mixer),
  19435. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19436. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19437. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19438. msm_routing_get_port_mixer,
  19439. msm_routing_put_port_mixer),
  19440. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19441. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19442. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19443. msm_routing_get_port_mixer,
  19444. msm_routing_put_port_mixer),
  19445. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19446. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19447. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19448. msm_routing_get_port_mixer,
  19449. msm_routing_put_port_mixer),
  19450. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19451. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19452. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19453. msm_routing_get_port_mixer,
  19454. msm_routing_put_port_mixer),
  19455. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19456. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19457. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19458. msm_routing_get_port_mixer,
  19459. msm_routing_put_port_mixer),
  19460. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19461. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19462. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19463. msm_routing_get_port_mixer,
  19464. msm_routing_put_port_mixer),
  19465. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19466. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19467. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19468. msm_routing_get_port_mixer,
  19469. msm_routing_put_port_mixer),
  19470. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19471. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19472. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19473. msm_routing_get_port_mixer,
  19474. msm_routing_put_port_mixer),
  19475. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19476. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19477. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19478. msm_routing_get_port_mixer,
  19479. msm_routing_put_port_mixer),
  19480. };
  19481. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19482. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19483. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19484. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19485. msm_routing_get_port_mixer,
  19486. msm_routing_put_port_mixer),
  19487. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19488. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19489. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19490. msm_routing_get_port_mixer,
  19491. msm_routing_put_port_mixer),
  19492. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19493. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19494. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19495. msm_routing_get_port_mixer,
  19496. msm_routing_put_port_mixer),
  19497. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19498. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19499. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19500. msm_routing_get_port_mixer,
  19501. msm_routing_put_port_mixer),
  19502. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19503. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19504. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19505. msm_routing_get_port_mixer,
  19506. msm_routing_put_port_mixer),
  19507. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19508. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19509. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19510. msm_routing_get_port_mixer,
  19511. msm_routing_put_port_mixer),
  19512. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19513. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19514. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19515. msm_routing_get_port_mixer,
  19516. msm_routing_put_port_mixer),
  19517. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19518. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19519. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19520. msm_routing_get_port_mixer,
  19521. msm_routing_put_port_mixer),
  19522. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19523. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19524. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19525. msm_routing_get_port_mixer,
  19526. msm_routing_put_port_mixer),
  19527. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19528. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19529. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19530. msm_routing_get_port_mixer,
  19531. msm_routing_put_port_mixer),
  19532. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19533. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19534. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19535. msm_routing_get_port_mixer,
  19536. msm_routing_put_port_mixer),
  19537. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19538. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19539. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19540. msm_routing_get_port_mixer,
  19541. msm_routing_put_port_mixer),
  19542. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19543. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19544. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19545. msm_routing_get_port_mixer,
  19546. msm_routing_put_port_mixer),
  19547. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19548. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19549. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19550. msm_routing_get_port_mixer,
  19551. msm_routing_put_port_mixer),
  19552. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19553. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19554. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19555. msm_routing_get_port_mixer,
  19556. msm_routing_put_port_mixer),
  19557. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19558. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19559. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19560. msm_routing_get_port_mixer,
  19561. msm_routing_put_port_mixer),
  19562. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19563. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19564. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19565. msm_routing_get_port_mixer,
  19566. msm_routing_put_port_mixer),
  19567. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19568. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19569. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19570. msm_routing_get_port_mixer,
  19571. msm_routing_put_port_mixer),
  19572. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19573. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19574. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19575. msm_routing_get_port_mixer,
  19576. msm_routing_put_port_mixer),
  19577. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19578. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19579. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19580. msm_routing_get_port_mixer,
  19581. msm_routing_put_port_mixer),
  19582. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19583. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19584. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19585. msm_routing_get_port_mixer,
  19586. msm_routing_put_port_mixer),
  19587. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19588. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19589. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19590. msm_routing_get_port_mixer,
  19591. msm_routing_put_port_mixer),
  19592. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19593. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19594. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19595. msm_routing_get_port_mixer,
  19596. msm_routing_put_port_mixer),
  19597. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19598. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19599. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19600. msm_routing_get_port_mixer,
  19601. msm_routing_put_port_mixer),
  19602. };
  19603. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19604. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19605. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19606. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19607. msm_routing_get_port_mixer,
  19608. msm_routing_put_port_mixer),
  19609. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19610. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19611. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19612. msm_routing_get_port_mixer,
  19613. msm_routing_put_port_mixer),
  19614. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19615. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19616. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19617. msm_routing_get_port_mixer,
  19618. msm_routing_put_port_mixer),
  19619. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19620. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19621. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19622. msm_routing_get_port_mixer,
  19623. msm_routing_put_port_mixer),
  19624. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19625. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19626. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19627. msm_routing_get_port_mixer,
  19628. msm_routing_put_port_mixer),
  19629. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19630. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19631. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19632. msm_routing_get_port_mixer,
  19633. msm_routing_put_port_mixer),
  19634. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19636. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19637. msm_routing_get_port_mixer,
  19638. msm_routing_put_port_mixer),
  19639. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19640. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19641. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19642. msm_routing_get_port_mixer,
  19643. msm_routing_put_port_mixer),
  19644. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19646. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19647. msm_routing_get_port_mixer,
  19648. msm_routing_put_port_mixer),
  19649. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19650. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19651. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19652. msm_routing_get_port_mixer,
  19653. msm_routing_put_port_mixer),
  19654. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19655. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19656. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19657. msm_routing_get_port_mixer,
  19658. msm_routing_put_port_mixer),
  19659. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19660. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19661. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19662. msm_routing_get_port_mixer,
  19663. msm_routing_put_port_mixer),
  19664. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19666. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19667. msm_routing_get_port_mixer,
  19668. msm_routing_put_port_mixer),
  19669. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19670. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19671. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19672. msm_routing_get_port_mixer,
  19673. msm_routing_put_port_mixer),
  19674. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19675. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19676. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19677. msm_routing_get_port_mixer,
  19678. msm_routing_put_port_mixer),
  19679. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19680. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19681. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19682. msm_routing_get_port_mixer,
  19683. msm_routing_put_port_mixer),
  19684. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19685. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19686. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19687. msm_routing_get_port_mixer,
  19688. msm_routing_put_port_mixer),
  19689. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19690. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19691. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19692. msm_routing_get_port_mixer,
  19693. msm_routing_put_port_mixer),
  19694. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19695. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19696. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19697. msm_routing_get_port_mixer,
  19698. msm_routing_put_port_mixer),
  19699. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19700. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19701. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19702. msm_routing_get_port_mixer,
  19703. msm_routing_put_port_mixer),
  19704. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19705. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19706. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19707. msm_routing_get_port_mixer,
  19708. msm_routing_put_port_mixer),
  19709. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19710. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19711. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19712. msm_routing_get_port_mixer,
  19713. msm_routing_put_port_mixer),
  19714. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19715. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19716. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19717. msm_routing_get_port_mixer,
  19718. msm_routing_put_port_mixer),
  19719. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19720. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19721. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19722. msm_routing_get_port_mixer,
  19723. msm_routing_put_port_mixer),
  19724. };
  19725. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19726. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19727. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19728. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19729. msm_routing_get_port_mixer,
  19730. msm_routing_put_port_mixer),
  19731. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19732. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19733. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19734. msm_routing_get_port_mixer,
  19735. msm_routing_put_port_mixer),
  19736. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19737. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19738. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19739. msm_routing_get_port_mixer,
  19740. msm_routing_put_port_mixer),
  19741. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19742. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19743. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19744. msm_routing_get_port_mixer,
  19745. msm_routing_put_port_mixer),
  19746. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19747. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19748. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19749. msm_routing_get_port_mixer,
  19750. msm_routing_put_port_mixer),
  19751. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19752. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19753. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19754. msm_routing_get_port_mixer,
  19755. msm_routing_put_port_mixer),
  19756. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19757. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19758. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19759. msm_routing_get_port_mixer,
  19760. msm_routing_put_port_mixer),
  19761. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19762. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19763. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19764. msm_routing_get_port_mixer,
  19765. msm_routing_put_port_mixer),
  19766. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19767. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19768. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19769. msm_routing_get_port_mixer,
  19770. msm_routing_put_port_mixer),
  19771. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19772. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19773. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19774. msm_routing_get_port_mixer,
  19775. msm_routing_put_port_mixer),
  19776. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19777. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19778. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19779. msm_routing_get_port_mixer,
  19780. msm_routing_put_port_mixer),
  19781. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19782. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19783. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19784. msm_routing_get_port_mixer,
  19785. msm_routing_put_port_mixer),
  19786. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19787. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19788. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19789. msm_routing_get_port_mixer,
  19790. msm_routing_put_port_mixer),
  19791. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19792. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19793. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19794. msm_routing_get_port_mixer,
  19795. msm_routing_put_port_mixer),
  19796. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19797. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19798. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19799. msm_routing_get_port_mixer,
  19800. msm_routing_put_port_mixer),
  19801. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19803. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19804. msm_routing_get_port_mixer,
  19805. msm_routing_put_port_mixer),
  19806. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19807. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19808. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19809. msm_routing_get_port_mixer,
  19810. msm_routing_put_port_mixer),
  19811. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19812. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19813. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19814. msm_routing_get_port_mixer,
  19815. msm_routing_put_port_mixer),
  19816. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19817. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19818. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19819. msm_routing_get_port_mixer,
  19820. msm_routing_put_port_mixer),
  19821. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19822. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19823. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19824. msm_routing_get_port_mixer,
  19825. msm_routing_put_port_mixer),
  19826. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19827. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19828. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19829. msm_routing_get_port_mixer,
  19830. msm_routing_put_port_mixer),
  19831. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19832. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19833. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19834. msm_routing_get_port_mixer,
  19835. msm_routing_put_port_mixer),
  19836. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19837. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19838. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19839. msm_routing_get_port_mixer,
  19840. msm_routing_put_port_mixer),
  19841. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19842. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19843. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19844. msm_routing_get_port_mixer,
  19845. msm_routing_put_port_mixer),
  19846. };
  19847. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  19848. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19849. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19850. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19851. msm_routing_get_port_mixer,
  19852. msm_routing_put_port_mixer),
  19853. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19854. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19855. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19856. msm_routing_get_port_mixer,
  19857. msm_routing_put_port_mixer),
  19858. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19859. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19860. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19861. msm_routing_get_port_mixer,
  19862. msm_routing_put_port_mixer),
  19863. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19864. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19865. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19866. msm_routing_get_port_mixer,
  19867. msm_routing_put_port_mixer),
  19868. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19869. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19870. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19871. msm_routing_get_port_mixer,
  19872. msm_routing_put_port_mixer),
  19873. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19874. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19875. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19876. msm_routing_get_port_mixer,
  19877. msm_routing_put_port_mixer),
  19878. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19879. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19880. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19881. msm_routing_get_port_mixer,
  19882. msm_routing_put_port_mixer),
  19883. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19884. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19885. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19886. msm_routing_get_port_mixer,
  19887. msm_routing_put_port_mixer),
  19888. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19889. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19890. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19891. msm_routing_get_port_mixer,
  19892. msm_routing_put_port_mixer),
  19893. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19894. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19895. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19896. msm_routing_get_port_mixer,
  19897. msm_routing_put_port_mixer),
  19898. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19899. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19900. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19901. msm_routing_get_port_mixer,
  19902. msm_routing_put_port_mixer),
  19903. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19904. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19905. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19906. msm_routing_get_port_mixer,
  19907. msm_routing_put_port_mixer),
  19908. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19909. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19910. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19911. msm_routing_get_port_mixer,
  19912. msm_routing_put_port_mixer),
  19913. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19914. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19915. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19916. msm_routing_get_port_mixer,
  19917. msm_routing_put_port_mixer),
  19918. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19919. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19920. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19921. msm_routing_get_port_mixer,
  19922. msm_routing_put_port_mixer),
  19923. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19924. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19925. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19926. msm_routing_get_port_mixer,
  19927. msm_routing_put_port_mixer),
  19928. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19929. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19930. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19931. msm_routing_get_port_mixer,
  19932. msm_routing_put_port_mixer),
  19933. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19934. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19935. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19936. msm_routing_get_port_mixer,
  19937. msm_routing_put_port_mixer),
  19938. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19939. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19940. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19941. msm_routing_get_port_mixer,
  19942. msm_routing_put_port_mixer),
  19943. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19944. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19945. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19946. msm_routing_get_port_mixer,
  19947. msm_routing_put_port_mixer),
  19948. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19949. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19950. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19951. msm_routing_get_port_mixer,
  19952. msm_routing_put_port_mixer),
  19953. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19954. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19955. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19956. msm_routing_get_port_mixer,
  19957. msm_routing_put_port_mixer),
  19958. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19959. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19960. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19961. msm_routing_get_port_mixer,
  19962. msm_routing_put_port_mixer),
  19963. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19964. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19965. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19966. msm_routing_get_port_mixer,
  19967. msm_routing_put_port_mixer),
  19968. };
  19969. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  19970. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19971. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19972. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19973. msm_routing_get_port_mixer,
  19974. msm_routing_put_port_mixer),
  19975. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19976. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19977. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19978. msm_routing_get_port_mixer,
  19979. msm_routing_put_port_mixer),
  19980. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19981. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19982. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19983. msm_routing_get_port_mixer,
  19984. msm_routing_put_port_mixer),
  19985. };
  19986. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  19987. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19988. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19989. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19990. msm_routing_put_port_mixer),
  19991. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19992. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19993. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19994. msm_routing_put_port_mixer),
  19995. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19996. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19997. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19998. msm_routing_put_port_mixer),
  19999. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20000. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20001. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20002. msm_routing_put_port_mixer),
  20003. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20004. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20005. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20006. msm_routing_put_port_mixer),
  20007. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20009. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20010. msm_routing_put_port_mixer),
  20011. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20013. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20014. msm_routing_put_port_mixer),
  20015. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20016. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20017. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20018. msm_routing_put_port_mixer),
  20019. };
  20020. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20021. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20022. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20023. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20024. msm_routing_put_port_mixer),
  20025. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20026. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20027. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20028. msm_routing_put_port_mixer),
  20029. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20030. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20031. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20032. msm_routing_put_port_mixer),
  20033. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20034. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20035. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20036. msm_routing_put_port_mixer),
  20037. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20038. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20039. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20040. msm_routing_put_port_mixer),
  20041. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20042. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20043. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20044. msm_routing_put_port_mixer),
  20045. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20046. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20047. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20048. msm_routing_put_port_mixer),
  20049. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20050. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20051. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20052. msm_routing_put_port_mixer),
  20053. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20054. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20055. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20056. msm_routing_put_port_mixer),
  20057. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20059. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20060. msm_routing_put_port_mixer),
  20061. };
  20062. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20063. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20064. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20065. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20066. msm_routing_put_listen_mixer),
  20067. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20068. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20069. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20070. msm_routing_put_listen_mixer),
  20071. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20072. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20073. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20074. msm_routing_put_listen_mixer),
  20075. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20076. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20077. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20078. msm_routing_put_listen_mixer),
  20079. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20080. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20081. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20082. msm_routing_put_listen_mixer),
  20083. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20084. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20085. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20086. msm_routing_put_listen_mixer),
  20087. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20088. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20089. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20090. msm_routing_put_listen_mixer),
  20091. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20092. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20093. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20094. msm_routing_put_listen_mixer),
  20095. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20096. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20097. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20098. msm_routing_put_listen_mixer),
  20099. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20100. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20101. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20102. msm_routing_put_listen_mixer),
  20103. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20104. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20105. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20106. msm_routing_put_listen_mixer),
  20107. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20108. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20109. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20110. msm_routing_put_listen_mixer),
  20111. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20112. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20113. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20114. msm_routing_put_listen_mixer),
  20115. };
  20116. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20117. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20118. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20119. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20120. msm_routing_put_listen_mixer),
  20121. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20122. SND_SOC_NOPM,
  20123. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20124. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20125. msm_routing_put_listen_mixer),
  20126. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20127. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20128. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20129. msm_routing_put_listen_mixer),
  20130. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20131. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20132. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20133. msm_routing_put_listen_mixer),
  20134. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20135. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20136. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20137. msm_routing_put_listen_mixer),
  20138. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20139. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20140. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20141. msm_routing_put_listen_mixer),
  20142. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20143. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20144. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20145. msm_routing_put_listen_mixer),
  20146. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20147. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20148. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20149. msm_routing_put_listen_mixer),
  20150. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20151. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20152. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20153. msm_routing_put_listen_mixer),
  20154. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20155. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20156. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20157. msm_routing_put_listen_mixer),
  20158. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20159. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20160. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20161. msm_routing_put_listen_mixer),
  20162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20164. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20165. msm_routing_put_listen_mixer),
  20166. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20167. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20168. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20169. msm_routing_put_listen_mixer),
  20170. };
  20171. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20172. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20173. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20174. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20175. msm_routing_put_listen_mixer),
  20176. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20177. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20178. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20179. msm_routing_put_listen_mixer),
  20180. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20181. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20182. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20183. msm_routing_put_listen_mixer),
  20184. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20185. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20186. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20187. msm_routing_put_listen_mixer),
  20188. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20189. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20190. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20191. msm_routing_put_listen_mixer),
  20192. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20193. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20194. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20195. msm_routing_put_listen_mixer),
  20196. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20197. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20198. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20199. msm_routing_put_listen_mixer),
  20200. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20201. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20202. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20203. msm_routing_put_listen_mixer),
  20204. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20205. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20206. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20207. msm_routing_put_listen_mixer),
  20208. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20209. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20210. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20211. msm_routing_put_listen_mixer),
  20212. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20213. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20214. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20215. msm_routing_put_listen_mixer),
  20216. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20218. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20219. msm_routing_put_listen_mixer),
  20220. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20221. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20222. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20223. msm_routing_put_listen_mixer),
  20224. };
  20225. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20226. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20227. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20228. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20229. msm_routing_put_listen_mixer),
  20230. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20231. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20232. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20233. msm_routing_put_listen_mixer),
  20234. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20235. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20236. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20237. msm_routing_put_listen_mixer),
  20238. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20239. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20240. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20241. msm_routing_put_listen_mixer),
  20242. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20243. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20244. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20245. msm_routing_put_listen_mixer),
  20246. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20247. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20248. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20249. msm_routing_put_listen_mixer),
  20250. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20251. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20252. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20253. msm_routing_put_listen_mixer),
  20254. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20255. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20256. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20257. msm_routing_put_listen_mixer),
  20258. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20259. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20260. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20261. msm_routing_put_listen_mixer),
  20262. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20263. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20264. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20265. msm_routing_put_listen_mixer),
  20266. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20268. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20269. msm_routing_put_listen_mixer),
  20270. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20272. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20273. msm_routing_put_listen_mixer),
  20274. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20275. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20276. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20277. msm_routing_put_listen_mixer),
  20278. };
  20279. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20280. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20281. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20282. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20283. msm_routing_put_listen_mixer),
  20284. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20285. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20286. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20287. msm_routing_put_listen_mixer),
  20288. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20289. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20290. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20291. msm_routing_put_listen_mixer),
  20292. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20293. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20294. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20295. msm_routing_put_listen_mixer),
  20296. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20297. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20298. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20299. msm_routing_put_listen_mixer),
  20300. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20301. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20302. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20303. msm_routing_put_listen_mixer),
  20304. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20305. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20306. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20307. msm_routing_put_listen_mixer),
  20308. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20309. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20310. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20311. msm_routing_put_listen_mixer),
  20312. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20313. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20314. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20315. msm_routing_put_listen_mixer),
  20316. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20317. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20318. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20319. msm_routing_put_listen_mixer),
  20320. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20321. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20322. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20323. msm_routing_put_listen_mixer),
  20324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20326. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20327. msm_routing_put_listen_mixer),
  20328. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20330. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20331. msm_routing_put_listen_mixer),
  20332. };
  20333. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20334. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20335. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20336. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20337. msm_routing_put_listen_mixer),
  20338. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20339. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20340. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20341. msm_routing_put_listen_mixer),
  20342. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20343. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20344. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20345. msm_routing_put_listen_mixer),
  20346. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20347. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20348. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20349. msm_routing_put_listen_mixer),
  20350. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20351. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20352. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20353. msm_routing_put_listen_mixer),
  20354. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20355. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20356. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20357. msm_routing_put_listen_mixer),
  20358. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20359. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20360. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20361. msm_routing_put_listen_mixer),
  20362. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20364. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20365. msm_routing_put_listen_mixer),
  20366. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20367. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20368. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20369. msm_routing_put_listen_mixer),
  20370. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20371. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20372. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20373. msm_routing_put_listen_mixer),
  20374. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20375. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20376. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20377. msm_routing_put_listen_mixer),
  20378. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20380. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20381. msm_routing_put_listen_mixer),
  20382. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20384. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20385. msm_routing_put_listen_mixer),
  20386. };
  20387. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20388. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20389. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20390. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20391. msm_routing_put_listen_mixer),
  20392. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20393. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20394. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20395. msm_routing_put_listen_mixer),
  20396. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20397. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20398. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20399. msm_routing_put_listen_mixer),
  20400. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20401. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20402. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20403. msm_routing_put_listen_mixer),
  20404. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20405. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20406. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20407. msm_routing_put_listen_mixer),
  20408. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20409. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20410. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20411. msm_routing_put_listen_mixer),
  20412. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20413. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20414. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20415. msm_routing_put_listen_mixer),
  20416. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20417. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20418. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20419. msm_routing_put_listen_mixer),
  20420. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20421. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20422. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20423. msm_routing_put_listen_mixer),
  20424. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20425. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20426. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20427. msm_routing_put_listen_mixer),
  20428. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20429. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20430. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20431. msm_routing_put_listen_mixer),
  20432. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20434. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20435. msm_routing_put_listen_mixer),
  20436. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20437. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20438. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20439. msm_routing_put_listen_mixer),
  20440. };
  20441. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20442. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20443. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20444. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20445. msm_routing_put_listen_mixer),
  20446. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20447. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20448. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20449. msm_routing_put_listen_mixer),
  20450. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20451. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20452. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20453. msm_routing_put_listen_mixer),
  20454. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20455. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20456. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20457. msm_routing_put_listen_mixer),
  20458. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20459. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20460. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20461. msm_routing_put_listen_mixer),
  20462. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20463. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20464. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20465. msm_routing_put_listen_mixer),
  20466. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20467. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20468. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20469. msm_routing_put_listen_mixer),
  20470. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20471. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20472. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20473. msm_routing_put_listen_mixer),
  20474. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20475. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20476. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20477. msm_routing_put_listen_mixer),
  20478. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20479. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20480. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20481. msm_routing_put_listen_mixer),
  20482. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20483. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20484. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20485. msm_routing_put_listen_mixer),
  20486. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20487. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20488. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20489. msm_routing_put_listen_mixer),
  20490. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20491. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20492. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20493. msm_routing_put_listen_mixer),
  20494. };
  20495. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20496. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20497. 0, 1, 0, msm_routing_get_switch_mixer,
  20498. msm_routing_put_switch_mixer);
  20499. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20500. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20501. 0, 1, 0, msm_routing_get_switch_mixer,
  20502. msm_routing_put_switch_mixer);
  20503. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20504. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20505. 0, 1, 0, msm_routing_get_switch_mixer,
  20506. msm_routing_put_switch_mixer);
  20507. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20508. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20509. 0, 1, 0, msm_routing_get_switch_mixer,
  20510. msm_routing_put_switch_mixer);
  20511. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20512. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20513. 0, 1, 0, msm_routing_get_switch_mixer,
  20514. msm_routing_put_switch_mixer);
  20515. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20516. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20517. 0, 1, 0, msm_routing_get_switch_mixer,
  20518. msm_routing_put_switch_mixer);
  20519. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20520. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20521. 0, 1, 0, msm_routing_get_switch_mixer,
  20522. msm_routing_put_switch_mixer);
  20523. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20524. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20525. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20526. msm_routing_put_fm_pcmrx_switch_mixer);
  20527. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20528. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20529. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20530. msm_routing_put_int0_mi2s_switch_mixer);
  20531. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20532. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20533. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20534. msm_routing_put_int4_mi2s_switch_mixer);
  20535. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20536. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20537. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20538. msm_routing_put_pri_mi2s_switch_mixer);
  20539. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20540. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20541. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20542. msm_routing_put_sec_mi2s_switch_mixer);
  20543. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20544. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20545. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20546. msm_routing_put_tert_mi2s_switch_mixer);
  20547. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20548. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20549. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20550. msm_routing_put_quat_mi2s_switch_mixer);
  20551. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20552. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20553. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20554. msm_routing_put_quin_mi2s_switch_mixer);
  20555. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20556. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20557. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20558. msm_routing_put_sen_mi2s_switch_mixer);
  20559. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20560. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20561. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20562. msm_routing_put_hfp_switch_mixer);
  20563. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20564. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20565. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20566. msm_routing_put_hfp_switch_mixer);
  20567. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20568. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20569. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20570. msm_routing_put_hfp_switch_mixer);
  20571. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20572. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20573. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20574. msm_routing_put_hfp_switch_mixer);
  20575. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20576. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20577. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20578. msm_routing_put_usb_switch_mixer);
  20579. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20580. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20581. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20582. msm_routing_a2dp_switch_mixer_put);
  20583. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20584. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20585. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20586. msm_routing_sco_switch_mixer_put);
  20587. static const struct soc_enum lsm_port_enum =
  20588. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20589. static const char * const lsm_func_text[] = {
  20590. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20591. };
  20592. static const struct soc_enum lsm_func_enum =
  20593. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20594. static const struct snd_kcontrol_new lsm_controls[] = {
  20595. /* kcontrol of lsm_function */
  20596. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20597. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20598. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20599. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20600. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20601. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20602. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20603. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20604. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20605. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20606. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20607. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20608. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20609. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20610. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20611. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20612. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20613. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20614. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20615. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20616. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20617. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20618. /* kcontrol of lsm_port */
  20619. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20620. msm_routing_lsm_port_get,
  20621. msm_routing_lsm_port_put),
  20622. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20623. msm_routing_lsm_port_get,
  20624. msm_routing_lsm_port_put),
  20625. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20626. msm_routing_lsm_port_get,
  20627. msm_routing_lsm_port_put),
  20628. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20629. msm_routing_lsm_port_get,
  20630. msm_routing_lsm_port_put),
  20631. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20632. msm_routing_lsm_port_get,
  20633. msm_routing_lsm_port_put),
  20634. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20635. msm_routing_lsm_port_get,
  20636. msm_routing_lsm_port_put),
  20637. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20638. msm_routing_lsm_port_get,
  20639. msm_routing_lsm_port_put),
  20640. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20641. msm_routing_lsm_port_get,
  20642. msm_routing_lsm_port_put),
  20643. };
  20644. static const char * const aanc_slim_0_rx_text[] = {
  20645. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20646. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20647. };
  20648. static const struct soc_enum aanc_slim_0_rx_enum =
  20649. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20650. aanc_slim_0_rx_text);
  20651. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20652. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20653. msm_routing_slim_0_rx_aanc_mux_get,
  20654. msm_routing_slim_0_rx_aanc_mux_put)
  20655. };
  20656. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20657. struct snd_ctl_elem_value *ucontrol)
  20658. {
  20659. ucontrol->value.integer.value[0] = aanc_level;
  20660. return 0;
  20661. }
  20662. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20663. struct snd_ctl_elem_value *ucontrol)
  20664. {
  20665. int ret = 0;
  20666. mutex_lock(&routing_lock);
  20667. aanc_level = ucontrol->value.integer.value[0];
  20668. pr_debug("%s: value: %ld\n",
  20669. __func__, ucontrol->value.integer.value[0]);
  20670. ret = afe_set_aanc_noise_level(aanc_level);
  20671. mutex_unlock(&routing_lock);
  20672. return ret;
  20673. }
  20674. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20675. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20676. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20677. };
  20678. static int msm_routing_get_stereo_to_custom_stereo_control(
  20679. struct snd_kcontrol *kcontrol,
  20680. struct snd_ctl_elem_value *ucontrol)
  20681. {
  20682. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20683. return 0;
  20684. }
  20685. static int msm_routing_put_stereo_to_custom_stereo_control(
  20686. struct snd_kcontrol *kcontrol,
  20687. struct snd_ctl_elem_value *ucontrol)
  20688. {
  20689. int flag = 0, i = 0, rc = 0, idx = 0;
  20690. int be_index = 0, port_id, topo_id;
  20691. unsigned int session_id = 0;
  20692. uint16_t op_FL_ip_FL_weight = 0;
  20693. uint16_t op_FL_ip_FR_weight = 0;
  20694. uint16_t op_FR_ip_FL_weight = 0;
  20695. uint16_t op_FR_ip_FR_weight = 0;
  20696. flag = ucontrol->value.integer.value[0];
  20697. pr_debug("%s E flag %d\n", __func__, flag);
  20698. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20699. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20700. __func__, is_custom_stereo_on, flag);
  20701. return 0;
  20702. }
  20703. is_custom_stereo_on = flag ? true : false;
  20704. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20705. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20706. port_id = msm_bedais[be_index].port_id;
  20707. if (!msm_bedais[be_index].active)
  20708. continue;
  20709. if ((port_id != SLIMBUS_0_RX) &&
  20710. (port_id != RT_PROXY_PORT_001_RX) &&
  20711. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20712. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20713. continue;
  20714. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20715. MSM_FRONTEND_DAI_MM_SIZE) {
  20716. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20717. LEGACY_PCM_MODE)
  20718. goto skip_send_custom_stereo;
  20719. session_id =
  20720. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20721. if (is_custom_stereo_on) {
  20722. op_FL_ip_FL_weight =
  20723. Q14_GAIN_ZERO_POINT_FIVE;
  20724. op_FL_ip_FR_weight =
  20725. Q14_GAIN_ZERO_POINT_FIVE;
  20726. op_FR_ip_FL_weight =
  20727. Q14_GAIN_ZERO_POINT_FIVE;
  20728. op_FR_ip_FR_weight =
  20729. Q14_GAIN_ZERO_POINT_FIVE;
  20730. } else {
  20731. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20732. op_FL_ip_FR_weight = 0;
  20733. op_FR_ip_FL_weight = 0;
  20734. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20735. }
  20736. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20737. unsigned long copp =
  20738. session_copp_map[i]
  20739. [SESSION_TYPE_RX][be_index];
  20740. if (!test_bit(idx, &copp))
  20741. goto skip_send_custom_stereo;
  20742. topo_id = adm_get_topology_for_port_copp_idx(
  20743. msm_bedais[be_index].port_id, idx);
  20744. if (topo_id < 0)
  20745. pr_debug("%s:Err:custom stereo topo %d",
  20746. __func__, topo_id);
  20747. pr_debug("idx %d\n", idx);
  20748. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20749. rc = msm_ds2_dap_set_custom_stereo_onoff
  20750. (msm_bedais[be_index].port_id,
  20751. idx, is_custom_stereo_on);
  20752. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20753. rc = dolby_dap_set_custom_stereo_onoff(
  20754. msm_bedais[be_index].port_id,
  20755. idx, is_custom_stereo_on);
  20756. else
  20757. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20758. (msm_bedais[be_index].port_id,
  20759. idx, session_id,
  20760. op_FL_ip_FL_weight,
  20761. op_FL_ip_FR_weight,
  20762. op_FR_ip_FL_weight,
  20763. op_FR_ip_FR_weight);
  20764. if (rc < 0)
  20765. skip_send_custom_stereo:
  20766. pr_err("%s: err setting custom stereo\n",
  20767. __func__);
  20768. }
  20769. }
  20770. }
  20771. return 0;
  20772. }
  20773. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20774. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20775. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20776. msm_routing_put_stereo_to_custom_stereo_control),
  20777. };
  20778. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20779. struct snd_ctl_elem_value *ucontrol)
  20780. {
  20781. return 0;
  20782. }
  20783. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20784. struct snd_ctl_elem_value *ucontrol)
  20785. {
  20786. int i = 0, j;
  20787. int num_app_types = ucontrol->value.integer.value[i++];
  20788. pr_debug("%s\n", __func__);
  20789. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20790. sizeof(struct msm_pcm_routing_app_type_data));
  20791. if (num_app_types > MAX_APP_TYPES) {
  20792. pr_err("%s: number of app types exceed the max supported\n",
  20793. __func__);
  20794. return -EINVAL;
  20795. }
  20796. for (j = 0; j < num_app_types; j++) {
  20797. app_type_cfg[j].app_type =
  20798. ucontrol->value.integer.value[i++];
  20799. app_type_cfg[j].sample_rate =
  20800. ucontrol->value.integer.value[i++];
  20801. app_type_cfg[j].bit_width =
  20802. ucontrol->value.integer.value[i++];
  20803. }
  20804. return 0;
  20805. }
  20806. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  20807. struct snd_ctl_elem_value *ucontrol)
  20808. {
  20809. int j, fe_id, be_id, port_type;
  20810. int ret = 0;
  20811. unsigned long copp;
  20812. struct msm_pcm_routing_bdai_data *bedai;
  20813. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20814. SESSION_TYPE_RX;
  20815. int app_type = ucontrol->value.integer.value[1];
  20816. int gain = (ucontrol->value.integer.value[2] +
  20817. ucontrol->value.integer.value[3])/2;
  20818. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20819. MSM_AFE_PORT_TYPE_TX;
  20820. mutex_lock(&routing_lock);
  20821. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20822. if (is_be_dai_extproc(be_id))
  20823. continue;
  20824. bedai = &msm_bedais[be_id];
  20825. if (afe_get_port_type(bedai->port_id) != port_type)
  20826. continue;
  20827. if (!bedai->active)
  20828. continue;
  20829. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20830. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20831. continue;
  20832. if (app_type !=
  20833. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20834. continue;
  20835. copp = session_copp_map[fe_id][dir][be_id];
  20836. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  20837. if (!test_bit(j, &copp))
  20838. continue;
  20839. ret |= adm_set_volume(bedai->port_id, j, gain);
  20840. }
  20841. }
  20842. }
  20843. mutex_unlock(&routing_lock);
  20844. return ret ? -EINVAL : 0;
  20845. }
  20846. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  20847. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  20848. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  20849. msm_routing_put_app_type_cfg_control),
  20850. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  20851. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  20852. };
  20853. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  20854. struct snd_ctl_elem_value *ucontrol)
  20855. {
  20856. int copp_idx, fe_id, be_id, port_type;
  20857. int ret = 0;
  20858. unsigned long copp;
  20859. struct msm_pcm_routing_bdai_data *bedai;
  20860. u8 *packed_params = NULL;
  20861. struct param_hdr_v3 param_hdr;
  20862. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  20863. sizeof(uint32_t));
  20864. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20865. SESSION_TYPE_RX;
  20866. int app_type = ucontrol->value.integer.value[1];
  20867. int module_id = ucontrol->value.integer.value[2];
  20868. int instance_id = ucontrol->value.integer.value[3];
  20869. int param_id = ucontrol->value.integer.value[4];
  20870. int param_value = ucontrol->value.integer.value[5];
  20871. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20872. MSM_AFE_PORT_TYPE_TX;
  20873. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  20874. __func__, app_type, module_id,
  20875. instance_id, param_id, param_value);
  20876. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  20877. if (!packed_params)
  20878. return -ENOMEM;
  20879. memset(&param_hdr, 0, sizeof(param_hdr));
  20880. param_hdr.module_id = module_id;
  20881. param_hdr.instance_id = instance_id;
  20882. param_hdr.param_id = param_id;
  20883. param_hdr.param_size = sizeof(uint32_t);
  20884. packed_param_size = 0;
  20885. mutex_lock(&routing_lock);
  20886. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20887. if (is_be_dai_extproc(be_id))
  20888. continue;
  20889. bedai = &msm_bedais[be_id];
  20890. if (afe_get_port_type(bedai->port_id) != port_type)
  20891. continue;
  20892. if (!bedai->active)
  20893. continue;
  20894. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20895. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20896. continue;
  20897. if (app_type !=
  20898. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20899. continue;
  20900. copp = session_copp_map[fe_id][dir][be_id];
  20901. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  20902. copp_idx++) {
  20903. if (!test_bit(copp_idx, &copp))
  20904. continue;
  20905. ret = q6common_pack_pp_params(packed_params,
  20906. &param_hdr,
  20907. (u8 *) &param_value,
  20908. &packed_param_size);
  20909. if (ret) {
  20910. pr_err("%s: Failed to pack params, error %d\n",
  20911. __func__, ret);
  20912. goto done;
  20913. }
  20914. ret = adm_set_pp_params(bedai->port_id,
  20915. copp_idx, NULL,
  20916. packed_params,
  20917. packed_param_size);
  20918. if (ret) {
  20919. pr_err("%s: Setting param failed with err=%d\n",
  20920. __func__, ret);
  20921. ret = -EINVAL;
  20922. goto done;
  20923. }
  20924. }
  20925. }
  20926. }
  20927. done:
  20928. mutex_unlock(&routing_lock);
  20929. kfree(packed_params);
  20930. return ret;
  20931. }
  20932. static const struct snd_kcontrol_new module_cfg_controls[] = {
  20933. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  20934. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  20935. };
  20936. static int msm_routing_get_lsm_app_type_cfg_control(
  20937. struct snd_kcontrol *kcontrol,
  20938. struct snd_ctl_elem_value *ucontrol)
  20939. {
  20940. int shift = ((struct soc_multi_mixer_control *)
  20941. kcontrol->private_value)->shift;
  20942. int i = 0, j = 0;
  20943. ucontrol->value.integer.value[i] = num_app_cfg_types;
  20944. for (j = 0; j < num_app_cfg_types; ++j) {
  20945. ucontrol->value.integer.value[++i] =
  20946. lsm_app_type_cfg[j].app_type;
  20947. ucontrol->value.integer.value[++i] =
  20948. lsm_app_type_cfg[j].sample_rate;
  20949. ucontrol->value.integer.value[++i] =
  20950. lsm_app_type_cfg[j].bit_width;
  20951. if (shift == 1)
  20952. ucontrol->value.integer.value[++i] =
  20953. lsm_app_type_cfg[j].num_out_channels;
  20954. }
  20955. return 0;
  20956. }
  20957. static int msm_routing_put_lsm_app_type_cfg_control(
  20958. struct snd_kcontrol *kcontrol,
  20959. struct snd_ctl_elem_value *ucontrol)
  20960. {
  20961. int shift = ((struct soc_multi_mixer_control *)
  20962. kcontrol->private_value)->shift;
  20963. int i = 0, j;
  20964. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  20965. pr_err("%s: number of app types exceed the max supported\n",
  20966. __func__);
  20967. return -EINVAL;
  20968. }
  20969. num_app_cfg_types = ucontrol->value.integer.value[i++];
  20970. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  20971. sizeof(struct msm_pcm_routing_app_type_data));
  20972. for (j = 0; j < num_app_cfg_types; j++) {
  20973. lsm_app_type_cfg[j].app_type =
  20974. ucontrol->value.integer.value[i++];
  20975. lsm_app_type_cfg[j].sample_rate =
  20976. ucontrol->value.integer.value[i++];
  20977. lsm_app_type_cfg[j].bit_width =
  20978. ucontrol->value.integer.value[i++];
  20979. /* Shift of 1 indicates this is V2 mixer control */
  20980. if (shift == 1)
  20981. lsm_app_type_cfg[j].num_out_channels =
  20982. ucontrol->value.integer.value[i++];
  20983. }
  20984. return 0;
  20985. }
  20986. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  20987. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  20988. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20989. msm_routing_put_lsm_app_type_cfg_control),
  20990. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  20991. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20992. msm_routing_put_lsm_app_type_cfg_control),
  20993. };
  20994. static int msm_routing_get_use_ds1_or_ds2_control(
  20995. struct snd_kcontrol *kcontrol,
  20996. struct snd_ctl_elem_value *ucontrol)
  20997. {
  20998. ucontrol->value.integer.value[0] = is_ds2_on;
  20999. return 0;
  21000. }
  21001. static int msm_routing_put_use_ds1_or_ds2_control(
  21002. struct snd_kcontrol *kcontrol,
  21003. struct snd_ctl_elem_value *ucontrol)
  21004. {
  21005. is_ds2_on = ucontrol->value.integer.value[0];
  21006. return 0;
  21007. }
  21008. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21009. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21010. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21011. msm_routing_put_use_ds1_or_ds2_control),
  21012. };
  21013. static int msm_routing_get_hifi_filter_control(
  21014. struct snd_kcontrol *kcontrol,
  21015. struct snd_ctl_elem_value *ucontrol)
  21016. {
  21017. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21018. return 0;
  21019. }
  21020. static int msm_routing_put_hifi_filter_control(
  21021. struct snd_kcontrol *kcontrol,
  21022. struct snd_ctl_elem_value *ucontrol)
  21023. {
  21024. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21025. return 0;
  21026. }
  21027. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21028. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21029. 1, 0, msm_routing_get_hifi_filter_control,
  21030. msm_routing_put_hifi_filter_control),
  21031. };
  21032. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21033. struct snd_ctl_elem_value *ucontrol) {
  21034. int rc = 0;
  21035. int be_idx = 0;
  21036. char *param_value;
  21037. int *update_param_value;
  21038. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21039. struct param_hdr_v3 param_hdr;
  21040. param_value = kzalloc(param_size, GFP_KERNEL);
  21041. if (!param_value)
  21042. return -ENOMEM;
  21043. memset(&param_hdr, 0, sizeof(param_hdr));
  21044. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21045. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21046. break;
  21047. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21048. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21049. param_hdr.instance_id = INSTANCE_ID_0;
  21050. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21051. param_hdr.param_size = param_size;
  21052. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21053. NULL, &param_hdr, (u8 *) param_value);
  21054. if (rc) {
  21055. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21056. kfree(param_value);
  21057. return -EINVAL;
  21058. }
  21059. update_param_value = (int *)param_value;
  21060. ucontrol->value.integer.value[0] = update_param_value[0];
  21061. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21062. __func__, update_param_value[0]);
  21063. }
  21064. kfree(param_value);
  21065. return 0;
  21066. }
  21067. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21068. struct snd_ctl_elem_value *ucontrol)
  21069. {
  21070. voc_session_id = ucontrol->value.integer.value[0];
  21071. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21072. return 0;
  21073. }
  21074. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21075. struct snd_ctl_elem_value *ucontrol)
  21076. {
  21077. ucontrol->value.integer.value[0] = voc_session_id;
  21078. return 0;
  21079. }
  21080. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21081. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21082. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21083. msm_voc_session_id_put),
  21084. };
  21085. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21086. struct snd_ctl_elem_info *uinfo)
  21087. {
  21088. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21089. uinfo->count = sizeof(struct sound_focus_param);
  21090. return 0;
  21091. }
  21092. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21093. struct snd_ctl_elem_value *ucontrol)
  21094. {
  21095. int ret = 0;
  21096. struct sound_focus_param soundFocusData;
  21097. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21098. sizeof(struct sound_focus_param));
  21099. ret = voc_set_sound_focus(soundFocusData);
  21100. if (ret) {
  21101. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21102. __func__, ret);
  21103. ret = -EINVAL;
  21104. }
  21105. return ret;
  21106. }
  21107. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21108. struct snd_ctl_elem_value *ucontrol)
  21109. {
  21110. int ret = 0;
  21111. struct sound_focus_param soundFocusData;
  21112. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21113. ret = voc_get_sound_focus(&soundFocusData);
  21114. if (ret) {
  21115. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21116. __func__, ret);
  21117. ret = -EINVAL;
  21118. goto done;
  21119. }
  21120. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21121. sizeof(struct sound_focus_param));
  21122. done:
  21123. return ret;
  21124. }
  21125. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21126. struct snd_ctl_elem_info *uinfo)
  21127. {
  21128. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21129. uinfo->count = sizeof(struct source_tracking_param);
  21130. return 0;
  21131. }
  21132. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21133. struct snd_ctl_elem_value *ucontrol)
  21134. {
  21135. int ret = 0;
  21136. struct source_tracking_param sourceTrackingData;
  21137. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21138. ret = voc_get_source_tracking(&sourceTrackingData);
  21139. if (ret) {
  21140. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21141. __func__, ret);
  21142. ret = -EINVAL;
  21143. goto done;
  21144. }
  21145. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21146. sizeof(struct source_tracking_param));
  21147. done:
  21148. return ret;
  21149. }
  21150. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21151. int *copp_idx)
  21152. {
  21153. int i, idx, be_idx;
  21154. int ret = 0;
  21155. unsigned long copp;
  21156. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21157. ret = q6audio_validate_port(port_id);
  21158. if (ret < 0) {
  21159. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21160. __func__, port_id, ret);
  21161. ret = -EINVAL;
  21162. goto done;
  21163. }
  21164. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21165. if (msm_bedais[be_idx].port_id == port_id)
  21166. break;
  21167. }
  21168. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21169. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21170. ret = -EINVAL;
  21171. goto done;
  21172. }
  21173. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21174. MSM_FRONTEND_DAI_MAX) {
  21175. if (!(is_mm_lsm_fe_id(i) &&
  21176. route_check_fe_id_adm_support(i)))
  21177. continue;
  21178. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21179. copp = session_copp_map[i]
  21180. [session_type][be_idx];
  21181. if (test_bit(idx, &copp))
  21182. break;
  21183. }
  21184. if (idx >= MAX_COPPS_PER_PORT)
  21185. continue;
  21186. else
  21187. break;
  21188. }
  21189. if (i >= MSM_FRONTEND_DAI_MAX) {
  21190. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21191. ret = -EINVAL;
  21192. goto done;
  21193. }
  21194. *copp_idx = idx;
  21195. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21196. done:
  21197. return ret;
  21198. }
  21199. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21200. const char *prefix, int *port_id)
  21201. {
  21202. int ret = 0;
  21203. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21204. /*
  21205. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21206. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21207. * and compare the string with the backend name to derive the port id.
  21208. */
  21209. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21210. "SLIMBUS_0")) {
  21211. *port_id = SLIMBUS_0_TX;
  21212. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21213. "TERT_MI2S")) {
  21214. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21215. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21216. "INT3_MI2S")) {
  21217. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21218. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21219. "VA_CDC_DMA_TX_0")) {
  21220. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21221. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21222. "TX_CDC_DMA_TX_3")) {
  21223. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21224. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21225. "QUIN_TDM_TX_0")) {
  21226. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21227. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21228. "PRIMARY_TDM")) {
  21229. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21230. } else {
  21231. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21232. __func__, kcontrol->id.name);
  21233. ret = -EINVAL;
  21234. goto done;
  21235. }
  21236. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21237. __func__, kcontrol->id.name, *port_id);
  21238. done:
  21239. return ret;
  21240. }
  21241. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21242. struct snd_ctl_elem_value *ucontrol)
  21243. {
  21244. int ret = 0;
  21245. struct sound_focus_param soundFocusData;
  21246. int port_id, copp_idx;
  21247. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21248. "Sound Focus Audio Tx ", &port_id);
  21249. if (ret != 0) {
  21250. pr_err("%s: Error in deriving port id, err=%d\n",
  21251. __func__, ret);
  21252. ret = -EINVAL;
  21253. goto done;
  21254. }
  21255. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21256. &copp_idx);
  21257. if (ret) {
  21258. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21259. __func__, port_id);
  21260. ret = -EINVAL;
  21261. goto done;
  21262. }
  21263. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21264. sizeof(struct sound_focus_param));
  21265. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21266. if (ret) {
  21267. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21268. __func__, ret);
  21269. ret = -EINVAL;
  21270. goto done;
  21271. }
  21272. done:
  21273. return ret;
  21274. }
  21275. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21276. struct snd_ctl_elem_value *ucontrol)
  21277. {
  21278. int ret = 0;
  21279. struct sound_focus_param soundFocusData;
  21280. int port_id, copp_idx;
  21281. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21282. "Sound Focus Audio Tx ", &port_id);
  21283. if (ret) {
  21284. pr_err("%s: Error in deriving port id, err=%d\n",
  21285. __func__, ret);
  21286. ret = -EINVAL;
  21287. goto done;
  21288. }
  21289. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21290. &copp_idx);
  21291. if (ret) {
  21292. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21293. __func__, port_id);
  21294. ret = -EINVAL;
  21295. goto done;
  21296. }
  21297. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21298. if (ret) {
  21299. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21300. __func__, ret);
  21301. ret = -EINVAL;
  21302. goto done;
  21303. }
  21304. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21305. sizeof(struct sound_focus_param));
  21306. done:
  21307. return ret;
  21308. }
  21309. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21310. struct snd_ctl_elem_value *ucontrol)
  21311. {
  21312. int ret = 0;
  21313. struct source_tracking_param sourceTrackingData;
  21314. int port_id, copp_idx;
  21315. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21316. "Source Tracking Audio Tx ", &port_id);
  21317. if (ret) {
  21318. pr_err("%s: Error in deriving port id, err=%d\n",
  21319. __func__, ret);
  21320. ret = -EINVAL;
  21321. goto done;
  21322. }
  21323. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21324. &copp_idx);
  21325. if (ret) {
  21326. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21327. __func__, port_id);
  21328. ret = -EINVAL;
  21329. goto done;
  21330. }
  21331. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21332. if (ret) {
  21333. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21334. __func__, ret);
  21335. ret = -EINVAL;
  21336. goto done;
  21337. }
  21338. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21339. sizeof(struct source_tracking_param));
  21340. done:
  21341. return ret;
  21342. }
  21343. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21344. struct snd_ctl_elem_info *uinfo)
  21345. {
  21346. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21347. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21348. return 0;
  21349. }
  21350. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21351. struct snd_ctl_elem_value *ucontrol)
  21352. {
  21353. int ret = 0;
  21354. struct doa_tracking_mon_param doa_tracking_data;
  21355. int port_id, copp_idx;
  21356. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21357. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21358. "Doa Tracking Monitor Listen ", &port_id);
  21359. if (ret) {
  21360. pr_err("%s: Error in deriving port id, err=%d\n",
  21361. __func__, ret);
  21362. ret = -EINVAL;
  21363. goto done;
  21364. }
  21365. /*
  21366. * If copp id exists for given port id, query adm to get doa data.
  21367. * Else query afe for doa tracking params.
  21368. * This is to support in cases where LSM directly connects to
  21369. * AFE for FFNS.
  21370. */
  21371. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21372. &copp_idx);
  21373. if (!ret)
  21374. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21375. &doa_tracking_data);
  21376. else
  21377. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21378. if (ret) {
  21379. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21380. __func__, ret);
  21381. ret = -EINVAL;
  21382. goto done;
  21383. }
  21384. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21385. sizeof(struct doa_tracking_mon_param));
  21386. done:
  21387. return ret;
  21388. }
  21389. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21390. {
  21391. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21392. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21393. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21394. .info = msm_sound_focus_info,
  21395. .get = msm_voice_sound_focus_get,
  21396. .put = msm_voice_sound_focus_put,
  21397. },
  21398. {
  21399. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21400. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21401. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21402. .info = msm_source_tracking_info,
  21403. .get = msm_voice_source_tracking_get,
  21404. },
  21405. {
  21406. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21407. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21408. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21409. .info = msm_sound_focus_info,
  21410. .get = msm_audio_sound_focus_get,
  21411. .put = msm_audio_sound_focus_put,
  21412. },
  21413. {
  21414. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21415. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21416. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21417. .info = msm_source_tracking_info,
  21418. .get = msm_audio_source_tracking_get,
  21419. },
  21420. {
  21421. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21422. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21423. .name = "Sound Focus Voice Tx TERT_MI2S",
  21424. .info = msm_sound_focus_info,
  21425. .get = msm_voice_sound_focus_get,
  21426. .put = msm_voice_sound_focus_put,
  21427. },
  21428. {
  21429. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21430. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21431. .name = "Source Tracking Voice Tx TERT_MI2S",
  21432. .info = msm_source_tracking_info,
  21433. .get = msm_voice_source_tracking_get,
  21434. },
  21435. {
  21436. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21437. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21438. .name = "Sound Focus Audio Tx TERT_MI2S",
  21439. .info = msm_sound_focus_info,
  21440. .get = msm_audio_sound_focus_get,
  21441. .put = msm_audio_sound_focus_put,
  21442. },
  21443. {
  21444. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21445. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21446. .name = "Source Tracking Audio Tx TERT_MI2S",
  21447. .info = msm_source_tracking_info,
  21448. .get = msm_audio_source_tracking_get,
  21449. },
  21450. {
  21451. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21452. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21453. .name = "Sound Focus Voice Tx INT3_MI2S",
  21454. .info = msm_sound_focus_info,
  21455. .get = msm_voice_sound_focus_get,
  21456. .put = msm_voice_sound_focus_put,
  21457. },
  21458. {
  21459. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21460. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21461. .name = "Source Tracking Voice Tx INT3_MI2S",
  21462. .info = msm_source_tracking_info,
  21463. .get = msm_voice_source_tracking_get,
  21464. },
  21465. {
  21466. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21468. .name = "Sound Focus Audio Tx INT3_MI2S",
  21469. .info = msm_sound_focus_info,
  21470. .get = msm_audio_sound_focus_get,
  21471. .put = msm_audio_sound_focus_put,
  21472. },
  21473. {
  21474. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21476. .name = "Source Tracking Audio Tx INT3_MI2S",
  21477. .info = msm_source_tracking_info,
  21478. .get = msm_audio_source_tracking_get,
  21479. },
  21480. {
  21481. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21483. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21484. .info = msm_sound_focus_info,
  21485. .get = msm_voice_sound_focus_get,
  21486. .put = msm_voice_sound_focus_put,
  21487. },
  21488. {
  21489. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21490. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21491. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21492. .info = msm_source_tracking_info,
  21493. .get = msm_voice_source_tracking_get,
  21494. },
  21495. {
  21496. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21497. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21498. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21499. .info = msm_sound_focus_info,
  21500. .get = msm_audio_sound_focus_get,
  21501. .put = msm_audio_sound_focus_put,
  21502. },
  21503. {
  21504. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21506. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21507. .info = msm_source_tracking_info,
  21508. .get = msm_audio_source_tracking_get,
  21509. },
  21510. {
  21511. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21513. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21514. .info = msm_sound_focus_info,
  21515. .get = msm_voice_sound_focus_get,
  21516. .put = msm_voice_sound_focus_put,
  21517. },
  21518. {
  21519. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21521. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21522. .info = msm_source_tracking_info,
  21523. .get = msm_voice_source_tracking_get,
  21524. },
  21525. {
  21526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21528. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21529. .info = msm_sound_focus_info,
  21530. .get = msm_audio_sound_focus_get,
  21531. .put = msm_audio_sound_focus_put,
  21532. },
  21533. {
  21534. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21535. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21536. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21537. .info = msm_source_tracking_info,
  21538. .get = msm_audio_source_tracking_get,
  21539. },
  21540. {
  21541. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21542. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21543. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21544. .info = msm_sound_focus_info,
  21545. .get = msm_voice_sound_focus_get,
  21546. .put = msm_voice_sound_focus_put,
  21547. },
  21548. {
  21549. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21551. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21552. .info = msm_source_tracking_info,
  21553. .get = msm_voice_source_tracking_get,
  21554. },
  21555. {
  21556. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21558. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21559. .info = msm_sound_focus_info,
  21560. .get = msm_audio_sound_focus_get,
  21561. .put = msm_audio_sound_focus_put,
  21562. },
  21563. {
  21564. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21566. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21567. .info = msm_source_tracking_info,
  21568. .get = msm_audio_source_tracking_get,
  21569. },
  21570. {
  21571. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21573. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21574. .info = msm_sound_focus_info,
  21575. .get = msm_audio_sound_focus_get,
  21576. .put = msm_audio_sound_focus_put,
  21577. },
  21578. {
  21579. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21580. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21581. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21582. .info = msm_source_tracking_info,
  21583. .get = msm_audio_source_tracking_get,
  21584. },
  21585. {
  21586. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21587. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21588. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21589. .info = msm_doa_tracking_mon_info,
  21590. .get = msm_doa_tracking_mon_get,
  21591. },
  21592. };
  21593. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21594. struct snd_ctl_elem_value *ucontrol)
  21595. {
  21596. int ret = 0;
  21597. int item;
  21598. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21599. pr_debug("%s item is %d\n", __func__,
  21600. ucontrol->value.enumerated.item[0]);
  21601. mutex_lock(&routing_lock);
  21602. item = ucontrol->value.enumerated.item[0];
  21603. if (item < e->items) {
  21604. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21605. __func__, e->shift_l, e->values[item]);
  21606. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21607. e->values[item] < MSM_BACKEND_DAI_MAX)
  21608. /* Enable feedback TX path */
  21609. ret = afe_spk_prot_feed_back_cfg(
  21610. msm_bedais[e->values[item]].port_id,
  21611. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21612. else {
  21613. pr_debug("%s values are out of range item %d\n",
  21614. __func__, e->values[item]);
  21615. /* Disable feedback TX path */
  21616. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21617. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21618. else
  21619. ret = -EINVAL;
  21620. }
  21621. } else {
  21622. pr_err("%s item value is out of range item\n", __func__);
  21623. ret = -EINVAL;
  21624. }
  21625. mutex_unlock(&routing_lock);
  21626. return ret;
  21627. }
  21628. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21629. struct snd_ctl_elem_value *ucontrol)
  21630. {
  21631. int ret = 0;
  21632. int item;
  21633. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21634. pr_debug("%s item is %d\n", __func__,
  21635. ucontrol->value.enumerated.item[0]);
  21636. mutex_lock(&routing_lock);
  21637. item = ucontrol->value.enumerated.item[0];
  21638. if (item < e->items) {
  21639. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21640. __func__, e->shift_l, e->values[item]);
  21641. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21642. e->values[item] < MSM_BACKEND_DAI_MAX)
  21643. /* Enable feedback TX path */
  21644. ret = afe_spk_prot_feed_back_cfg(
  21645. msm_bedais[e->values[item]].port_id,
  21646. msm_bedais[e->shift_l].port_id,
  21647. 1, 1, 1);
  21648. else {
  21649. pr_debug("%s values are out of range item %d\n",
  21650. __func__, e->values[item]);
  21651. /* Disable feedback TX path */
  21652. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21653. ret = afe_spk_prot_feed_back_cfg(0,
  21654. 0, 0, 0, 0);
  21655. else
  21656. ret = -EINVAL;
  21657. }
  21658. } else {
  21659. pr_err("%s item value is out of range item\n", __func__);
  21660. ret = -EINVAL;
  21661. }
  21662. mutex_unlock(&routing_lock);
  21663. return ret;
  21664. }
  21665. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21666. struct snd_ctl_elem_value *ucontrol)
  21667. {
  21668. pr_debug("%s\n", __func__);
  21669. return 0;
  21670. }
  21671. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21672. struct snd_ctl_elem_value *ucontrol)
  21673. {
  21674. pr_debug("%s\n", __func__);
  21675. ucontrol->value.enumerated.item[0] = 0;
  21676. return 0;
  21677. }
  21678. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21679. "ZERO", "SLIM4_TX"
  21680. };
  21681. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21682. "ZERO", "SLIM4_TX"
  21683. };
  21684. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21685. "ZERO", "WSA_CDC_DMA_TX_0"
  21686. };
  21687. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21688. "ZERO", "WSA_CDC_DMA_TX_0"
  21689. };
  21690. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21691. "ZERO", "SENARY_TX"
  21692. };
  21693. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21694. "ZERO", "INT5_MI2S_TX"
  21695. };
  21696. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21697. "ZERO", "INT5_MI2S_TX"
  21698. };
  21699. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21700. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21701. };
  21702. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21703. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21704. };
  21705. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21706. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21707. };
  21708. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21709. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21710. };
  21711. static const int mi2s_rx_vi_fb_tx_value[] = {
  21712. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21713. };
  21714. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21715. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21716. };
  21717. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21718. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21719. };
  21720. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21721. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21722. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21723. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21724. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21725. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21726. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21727. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21728. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21729. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21730. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21731. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21732. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21733. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21734. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21735. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21736. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21737. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21738. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21739. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21740. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21741. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21742. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21743. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21744. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21745. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21746. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21747. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21748. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21749. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21750. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21751. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21752. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21753. spkr_prot_put_vi_lch_port);
  21754. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21755. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21756. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21757. spkr_prot_put_vi_rch_port);
  21758. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21759. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21760. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21761. spkr_prot_put_vi_lch_port);
  21762. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21763. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21764. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21765. spkr_prot_put_vi_rch_port);
  21766. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21767. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21768. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21769. spkr_prot_put_vi_lch_port);
  21770. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21771. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21772. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21773. spkr_prot_put_vi_lch_port);
  21774. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21775. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21776. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21777. spkr_prot_put_vi_rch_port);
  21778. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21779. /* Frontend AIF */
  21780. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21781. * Stream name must contains substring of front-end dai name
  21782. */
  21783. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21784. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21785. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21786. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21787. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21788. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21789. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21790. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21791. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21792. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21793. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21794. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21795. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  21796. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  21797. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  21798. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  21799. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  21800. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  21801. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  21802. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  21803. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  21804. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  21805. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  21806. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  21807. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  21808. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  21809. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  21810. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  21811. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  21812. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  21813. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  21814. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  21815. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  21816. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  21817. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  21818. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  21819. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  21820. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  21821. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  21822. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  21823. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  21824. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  21825. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  21826. "VoiceMMode1 Playback", 0, 0, 0, 0),
  21827. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  21828. "VoiceMMode1 Capture", 0, 0, 0, 0),
  21829. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  21830. "VoiceMMode2 Playback", 0, 0, 0, 0),
  21831. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  21832. "VoiceMMode2 Capture", 0, 0, 0, 0),
  21833. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  21834. 0, 0, 0, 0),
  21835. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  21836. 0, 0, 0, 0),
  21837. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  21838. 0, 0, 0, 0),
  21839. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  21840. 0, 0, 0, 0),
  21841. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  21842. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  21843. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  21844. 0, 0, 0, 0),
  21845. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  21846. 0, 0, 0, 0),
  21847. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  21848. 0, 0, 0, 0),
  21849. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  21850. 0, 0, 0, 0),
  21851. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  21852. 0, 0, 0, 0),
  21853. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  21854. 0, 0, 0, 0),
  21855. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  21856. 0, 0, 0, 0),
  21857. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  21858. 0, 0, 0, 0),
  21859. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  21860. 0, 0, 0, 0),
  21861. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  21862. 0, 0, 0, 0),
  21863. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  21864. 0, 0, 0, 0),
  21865. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  21866. 0, 0, 0, 0),
  21867. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  21868. 0, 0, 0, 0),
  21869. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  21870. 0, 0, 0, 0),
  21871. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  21872. 0, 0, 0, 0),
  21873. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  21874. 0, 0, 0, 0),
  21875. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  21876. 0, 0, 0, 0),
  21877. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  21878. 0, 0, 0, 0),
  21879. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  21880. 0, 0, 0, 0),
  21881. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  21882. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  21883. 0, 0, 0, 0),
  21884. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  21885. "INT0 MI2S_RX Hostless Playback",
  21886. 0, 0, 0, 0),
  21887. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  21888. "INT4 MI2S_RX Hostless Playback",
  21889. 0, 0, 0, 0),
  21890. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  21891. "Primary MI2S_RX Hostless Playback",
  21892. 0, 0, 0, 0),
  21893. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  21894. "Secondary MI2S_RX Hostless Playback",
  21895. 0, 0, 0, 0),
  21896. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  21897. "Tertiary MI2S_RX Hostless Playback",
  21898. 0, 0, 0, 0),
  21899. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  21900. "Quaternary MI2S_RX Hostless Playback",
  21901. 0, 0, 0, 0),
  21902. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  21903. "Quinary MI2S_RX Hostless Playback",
  21904. 0, 0, 0, 0),
  21905. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  21906. "Senary MI2S_RX Hostless Playback",
  21907. 0, 0, 0, 0),
  21908. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  21909. 0, 0, 0, 0),
  21910. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  21911. 0, 0, 0, 0),
  21912. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  21913. 0, 0, 0, 0),
  21914. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  21915. 0, 0, 0, 0),
  21916. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  21917. 0, 0, 0, 0),
  21918. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  21919. "INT3 MI2S_TX Hostless Capture",
  21920. 0, 0, 0, 0),
  21921. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  21922. "Tertiary MI2S_TX Hostless Capture",
  21923. 0, 0, 0, 0),
  21924. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  21925. "Secondary MI2S_TX Hostless Capture",
  21926. 0, 0, 0, 0),
  21927. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  21928. "Primary MI2S_TX Hostless Capture",
  21929. 0, 0, 0, 0),
  21930. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  21931. 0, 0, 0, 0),
  21932. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  21933. 0, 0, 0, 0),
  21934. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  21935. "Quaternary MI2S_TX Hostless Capture",
  21936. 0, 0, 0, 0),
  21937. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  21938. "Quinary MI2S_TX Hostless Capture",
  21939. 0, 0, 0, 0),
  21940. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  21941. "Senary MI2S_TX Hostless Capture",
  21942. 0, 0, 0, 0),
  21943. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  21944. "Primary TDM0 Hostless Playback",
  21945. 0, 0, 0, 0),
  21946. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  21947. "Primary TDM0 Hostless Capture",
  21948. 0, 0, 0, 0),
  21949. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  21950. "Primary TDM1 Hostless Playback",
  21951. 0, 0, 0, 0),
  21952. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  21953. "Primary TDM1 Hostless Capture",
  21954. 0, 0, 0, 0),
  21955. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  21956. "Primary TDM2 Hostless Playback",
  21957. 0, 0, 0, 0),
  21958. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  21959. "Primary TDM2 Hostless Capture",
  21960. 0, 0, 0, 0),
  21961. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  21962. "Primary TDM3 Hostless Playback",
  21963. 0, 0, 0, 0),
  21964. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  21965. "Primary TDM3 Hostless Capture",
  21966. 0, 0, 0, 0),
  21967. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  21968. "Primary TDM4 Hostless Playback",
  21969. 0, 0, 0, 0),
  21970. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  21971. "Primary TDM4 Hostless Capture",
  21972. 0, 0, 0, 0),
  21973. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  21974. "Primary TDM5 Hostless Playback",
  21975. 0, 0, 0, 0),
  21976. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  21977. "Primary TDM5 Hostless Capture",
  21978. 0, 0, 0, 0),
  21979. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  21980. "Primary TDM6 Hostless Playback",
  21981. 0, 0, 0, 0),
  21982. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  21983. "Primary TDM6 Hostless Capture",
  21984. 0, 0, 0, 0),
  21985. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  21986. "Primary TDM7 Hostless Playback",
  21987. 0, 0, 0, 0),
  21988. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  21989. "Primary TDM7 Hostless Capture",
  21990. 0, 0, 0, 0),
  21991. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  21992. "Secondary TDM0 Hostless Playback",
  21993. 0, 0, 0, 0),
  21994. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  21995. "Secondary TDM0 Hostless Capture",
  21996. 0, 0, 0, 0),
  21997. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  21998. "Secondary TDM1 Hostless Playback",
  21999. 0, 0, 0, 0),
  22000. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22001. "Secondary TDM1 Hostless Capture",
  22002. 0, 0, 0, 0),
  22003. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22004. "Secondary TDM2 Hostless Playback",
  22005. 0, 0, 0, 0),
  22006. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22007. "Secondary TDM2 Hostless Capture",
  22008. 0, 0, 0, 0),
  22009. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22010. "Secondary TDM3 Hostless Playback",
  22011. 0, 0, 0, 0),
  22012. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22013. "Secondary TDM3 Hostless Capture",
  22014. 0, 0, 0, 0),
  22015. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22016. "Secondary TDM4 Hostless Playback",
  22017. 0, 0, 0, 0),
  22018. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22019. "Secondary TDM4 Hostless Capture",
  22020. 0, 0, 0, 0),
  22021. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22022. "Secondary TDM5 Hostless Playback",
  22023. 0, 0, 0, 0),
  22024. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22025. "Secondary TDM5 Hostless Capture",
  22026. 0, 0, 0, 0),
  22027. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22028. "Secondary TDM6 Hostless Playback",
  22029. 0, 0, 0, 0),
  22030. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22031. "Secondary TDM6 Hostless Capture",
  22032. 0, 0, 0, 0),
  22033. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22034. "Secondary TDM7 Hostless Playback",
  22035. 0, 0, 0, 0),
  22036. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22037. "Secondary TDM7 Hostless Capture",
  22038. 0, 0, 0, 0),
  22039. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22040. "Tertiary TDM0 Hostless Playback",
  22041. 0, 0, 0, 0),
  22042. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22043. "Tertiary TDM0 Hostless Capture",
  22044. 0, 0, 0, 0),
  22045. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22046. "Tertiary TDM1 Hostless Playback",
  22047. 0, 0, 0, 0),
  22048. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22049. "Tertiary TDM1 Hostless Capture",
  22050. 0, 0, 0, 0),
  22051. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22052. "Tertiary TDM2 Hostless Playback",
  22053. 0, 0, 0, 0),
  22054. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22055. "Tertiary TDM2 Hostless Capture",
  22056. 0, 0, 0, 0),
  22057. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22058. "Tertiary TDM3 Hostless Playback",
  22059. 0, 0, 0, 0),
  22060. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22061. "Tertiary TDM3 Hostless Capture",
  22062. 0, 0, 0, 0),
  22063. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22064. "Tertiary TDM4 Hostless Playback",
  22065. 0, 0, 0, 0),
  22066. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22067. "Tertiary TDM4 Hostless Capture",
  22068. 0, 0, 0, 0),
  22069. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22070. "Tertiary TDM5 Hostless Playback",
  22071. 0, 0, 0, 0),
  22072. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22073. "Tertiary TDM5 Hostless Capture",
  22074. 0, 0, 0, 0),
  22075. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22076. "Tertiary TDM6 Hostless Playback",
  22077. 0, 0, 0, 0),
  22078. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22079. "Tertiary TDM6 Hostless Capture",
  22080. 0, 0, 0, 0),
  22081. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22082. "Tertiary TDM7 Hostless Playback",
  22083. 0, 0, 0, 0),
  22084. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22085. "Tertiary TDM7 Hostless Capture",
  22086. 0, 0, 0, 0),
  22087. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22088. "Quaternary TDM0 Hostless Playback",
  22089. 0, 0, 0, 0),
  22090. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22091. "Quaternary TDM0 Hostless Capture",
  22092. 0, 0, 0, 0),
  22093. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22094. "Quaternary TDM1 Hostless Playback",
  22095. 0, 0, 0, 0),
  22096. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22097. "Quaternary TDM1 Hostless Capture",
  22098. 0, 0, 0, 0),
  22099. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22100. "Quaternary TDM2 Hostless Playback",
  22101. 0, 0, 0, 0),
  22102. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22103. "Quaternary TDM2 Hostless Capture",
  22104. 0, 0, 0, 0),
  22105. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22106. "Quaternary TDM3 Hostless Playback",
  22107. 0, 0, 0, 0),
  22108. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22109. "Quaternary TDM3 Hostless Capture",
  22110. 0, 0, 0, 0),
  22111. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22112. "Quaternary TDM4 Hostless Playback",
  22113. 0, 0, 0, 0),
  22114. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22115. "Quaternary TDM4 Hostless Capture",
  22116. 0, 0, 0, 0),
  22117. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22118. "Quaternary TDM5 Hostless Playback",
  22119. 0, 0, 0, 0),
  22120. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22121. "Quaternary TDM5 Hostless Capture",
  22122. 0, 0, 0, 0),
  22123. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22124. "Quaternary TDM6 Hostless Playback",
  22125. 0, 0, 0, 0),
  22126. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22127. "Quaternary TDM6 Hostless Capture",
  22128. 0, 0, 0, 0),
  22129. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22130. "Quaternary TDM7 Hostless Playback",
  22131. 0, 0, 0, 0),
  22132. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22133. "Quaternary TDM7 Hostless Capture",
  22134. 0, 0, 0, 0),
  22135. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22136. "Quinary TDM0 Hostless Playback",
  22137. 0, 0, 0, 0),
  22138. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22139. "Quinary TDM0 Hostless Capture",
  22140. 0, 0, 0, 0),
  22141. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22142. "Quinary TDM1 Hostless Playback",
  22143. 0, 0, 0, 0),
  22144. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22145. "Quinary TDM1 Hostless Capture",
  22146. 0, 0, 0, 0),
  22147. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22148. "Quinary TDM2 Hostless Playback",
  22149. 0, 0, 0, 0),
  22150. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22151. "Quinary TDM2 Hostless Capture",
  22152. 0, 0, 0, 0),
  22153. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22154. "Quinary TDM3 Hostless Playback",
  22155. 0, 0, 0, 0),
  22156. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22157. "Quinary TDM3 Hostless Capture",
  22158. 0, 0, 0, 0),
  22159. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22160. "Quinary TDM4 Hostless Playback",
  22161. 0, 0, 0, 0),
  22162. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22163. "Quinary TDM4 Hostless Capture",
  22164. 0, 0, 0, 0),
  22165. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22166. "Quinary TDM5 Hostless Playback",
  22167. 0, 0, 0, 0),
  22168. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22169. "Quinary TDM5 Hostless Capture",
  22170. 0, 0, 0, 0),
  22171. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22172. "Quinary TDM6 Hostless Playback",
  22173. 0, 0, 0, 0),
  22174. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22175. "Quinary TDM6 Hostless Capture",
  22176. 0, 0, 0, 0),
  22177. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22178. "Quinary TDM7 Hostless Playback",
  22179. 0, 0, 0, 0),
  22180. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22181. "Quinary TDM7 Hostless Capture",
  22182. 0, 0, 0, 0),
  22183. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22184. "Senary TDM0 Hostless Playback",
  22185. 0, 0, 0, 0),
  22186. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22187. "Senary TDM0 Hostless Capture",
  22188. 0, 0, 0, 0),
  22189. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22190. "Senary TDM1 Hostless Playback",
  22191. 0, 0, 0, 0),
  22192. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22193. "Senary TDM1 Hostless Capture",
  22194. 0, 0, 0, 0),
  22195. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22196. "Senary TDM2 Hostless Playback",
  22197. 0, 0, 0, 0),
  22198. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22199. "Senary TDM2 Hostless Capture",
  22200. 0, 0, 0, 0),
  22201. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22202. "Senary TDM3 Hostless Playback",
  22203. 0, 0, 0, 0),
  22204. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22205. "Senary TDM3 Hostless Capture",
  22206. 0, 0, 0, 0),
  22207. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22208. "Senary TDM4 Hostless Playback",
  22209. 0, 0, 0, 0),
  22210. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22211. "Senary TDM4 Hostless Capture",
  22212. 0, 0, 0, 0),
  22213. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22214. "Senary TDM5 Hostless Playback",
  22215. 0, 0, 0, 0),
  22216. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22217. "Senary TDM5 Hostless Capture",
  22218. 0, 0, 0, 0),
  22219. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22220. "Senary TDM6 Hostless Playback",
  22221. 0, 0, 0, 0),
  22222. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22223. "Senary TDM6 Hostless Capture",
  22224. 0, 0, 0, 0),
  22225. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22226. "Senary TDM7 Hostless Playback",
  22227. 0, 0, 0, 0),
  22228. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22229. "Senary TDM7 Hostless Capture",
  22230. 0, 0, 0, 0),
  22231. /* LSM */
  22232. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22233. 0, 0, 0, 0),
  22234. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22235. 0, 0, 0, 0),
  22236. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22237. 0, 0, 0, 0),
  22238. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22239. 0, 0, 0, 0),
  22240. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22241. 0, 0, 0, 0),
  22242. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22243. 0, 0, 0, 0),
  22244. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22245. 0, 0, 0, 0),
  22246. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22247. 0, 0, 0, 0),
  22248. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22249. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22250. /* Backend AIF */
  22251. /* Stream name equals to backend dai link stream name */
  22252. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22253. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22254. 0, 0, 0, 0),
  22255. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22256. 0, 0, 0, 0),
  22257. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22258. 0, 0, 0, 0),
  22259. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22260. 0, 0, 0, 0),
  22261. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22262. 0, 0, 0, 0),
  22263. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22264. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22265. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22266. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22267. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22268. 0, 0, 0, 0),
  22269. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22270. 0, 0, 0, 0),
  22271. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22272. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22273. 0, 0, 0, 0),
  22274. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22275. 0, 0, 0, 0),
  22276. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22277. 0, 0, 0, 0),
  22278. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22279. "Secondary MI2S Playback SD1",
  22280. 0, 0, 0, 0),
  22281. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22282. 0, 0, 0, 0),
  22283. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22284. 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22286. 0, 0, 0, 0),
  22287. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22288. 0, 0, 0, 0),
  22289. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22290. 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22292. 0, 0, 0, 0),
  22293. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22294. 0, 0, 0, 0),
  22295. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22296. 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22298. 0, 0, 0, 0),
  22299. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22300. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22301. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22302. 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22304. 0, 0, 0, 0),
  22305. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22306. 0, 0, 0, 0),
  22307. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22308. 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22310. 0, 0, 0, 0),
  22311. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22312. 0, 0, 0, 0),
  22313. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22316. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22317. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22318. 0, 0, 0, 0),
  22319. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22322. 0, 0, 0, 0),
  22323. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22324. 0, 0, 0, 0),
  22325. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22328. 0, 0, 0, 0),
  22329. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22330. 0, 0, 0, 0),
  22331. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22334. 0, 0, 0, 0),
  22335. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22336. 0, 0, 0, 0),
  22337. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22340. 0, 0, 0, 0),
  22341. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22342. 0, 0, 0, 0),
  22343. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22346. 0, 0, 0, 0),
  22347. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22348. 0, 0, 0, 0),
  22349. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22350. 0, 0, 0, 0),
  22351. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22352. 0, 0, 0, 0),
  22353. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22354. 0, 0, 0, 0),
  22355. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22356. 0, 0, 0, 0),
  22357. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22358. 0, 0, 0, 0),
  22359. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22360. 0, 0, 0, 0),
  22361. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22362. 0, 0, 0, 0),
  22363. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22364. 0, 0, 0, 0),
  22365. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22366. 0, 0, 0, 0),
  22367. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22368. 0, 0, 0, 0),
  22369. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22370. 0, 0, 0, 0),
  22371. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22372. 0, 0, 0, 0),
  22373. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22374. 0, 0, 0, 0),
  22375. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22376. 0, 0, 0, 0),
  22377. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22378. 0, 0, 0, 0),
  22379. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22380. 0, 0, 0, 0),
  22381. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22382. 0, 0, 0, 0),
  22383. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22384. 0, 0, 0, 0),
  22385. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22386. 0, 0, 0, 0),
  22387. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22388. 0, 0, 0, 0),
  22389. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22390. 0, 0, 0, 0),
  22391. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22392. 0, 0, 0, 0),
  22393. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22394. 0, 0, 0, 0),
  22395. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22396. 0, 0, 0, 0),
  22397. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22398. 0, 0, 0, 0),
  22399. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22400. 0, 0, 0, 0),
  22401. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22402. 0, 0, 0, 0),
  22403. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22404. 0, 0, 0, 0),
  22405. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22406. 0, 0, 0, 0),
  22407. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22408. 0, 0, 0, 0),
  22409. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22410. 0, 0, 0, 0),
  22411. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22412. 0, 0, 0, 0),
  22413. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22414. 0, 0, 0, 0),
  22415. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22416. 0, 0, 0, 0),
  22417. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22418. 0, 0, 0, 0),
  22419. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22420. 0, 0, 0, 0),
  22421. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22422. 0, 0, 0, 0),
  22423. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22424. 0, 0, 0, 0),
  22425. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22426. 0, 0, 0, 0),
  22427. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22428. 0, 0, 0, 0),
  22429. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22430. 0, 0, 0, 0),
  22431. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22432. 0, 0, 0, 0),
  22433. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22434. 0, 0, 0, 0),
  22435. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22436. 0, 0, 0, 0),
  22437. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22438. 0, 0, 0, 0),
  22439. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22440. 0, 0, 0, 0),
  22441. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22442. 0, 0, 0, 0),
  22443. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22444. 0, 0, 0, 0),
  22445. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22446. 0, 0, 0, 0),
  22447. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22448. 0, 0, 0, 0),
  22449. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22450. 0, 0, 0, 0),
  22451. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22452. 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22454. 0, 0, 0, 0),
  22455. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22456. 0, 0, 0, 0),
  22457. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22460. 0, 0, 0, 0),
  22461. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22462. 0, 0, 0, 0),
  22463. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22464. 0, 0, 0, 0),
  22465. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22466. 0, 0, 0, 0),
  22467. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22468. 0, 0, 0, 0),
  22469. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22470. 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22472. 0, 0, 0, 0),
  22473. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22474. 0, 0, 0, 0),
  22475. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22476. 0, 0, 0, 0),
  22477. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22478. 0, 0, 0, 0),
  22479. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22480. 0, 0, 0, 0),
  22481. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22482. 0, 0, 0, 0),
  22483. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22484. 0, 0, 0, 0),
  22485. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22486. 0, 0, 0, 0),
  22487. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22490. 0, 0, 0, 0),
  22491. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22492. 0, 0, 0, 0),
  22493. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22496. 0, 0, 0, 0),
  22497. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22498. 0, 0, 0, 0),
  22499. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22500. 0, 0, 0, 0),
  22501. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22502. 0, 0, 0, 0),
  22503. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22504. 0, 0, 0, 0),
  22505. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22506. 0, 0, 0, 0),
  22507. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22508. 0, 0, 0, 0),
  22509. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22510. 0, 0, 0, 0),
  22511. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22512. 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22514. 0, 0, 0, 0),
  22515. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22516. 0, 0, 0, 0),
  22517. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22518. 0, 0, 0, 0),
  22519. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22520. 0, 0, 0, 0),
  22521. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22522. 0, 0, 0, 0),
  22523. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22526. 0, 0, 0, 0),
  22527. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  22528. 0, 0, 0, 0),
  22529. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  22530. 0, 0, 0, 0),
  22531. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22532. 0, 0, 0, 0),
  22533. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22534. 0, 0, 0, 0),
  22535. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22536. 0, 0, 0, 0),
  22537. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22538. 0, 0, 0, 0),
  22539. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22540. 0, 0, 0, 0),
  22541. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22542. 0, 0, 0, 0),
  22543. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22544. 0, 0, 0, 0),
  22545. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22546. 0, 0, 0, 0),
  22547. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22548. 0, 0, 0, 0),
  22549. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22550. 0, 0, 0, 0),
  22551. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22552. 0, 0, 0, 0),
  22553. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22554. 0, 0, 0, 0),
  22555. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22556. 0, 0, 0, 0),
  22557. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22558. 0, 0, 0, 0),
  22559. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22560. 0, 0, 0, 0),
  22561. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22562. 0, 0, 0, 0),
  22563. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22564. 0, 0, 0, 0),
  22565. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22566. 0, 0, 0, 0),
  22567. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22568. 0, 0, 0, 0),
  22569. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22570. 0, 0, 0, 0),
  22571. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22572. 0, 0, 0, 0),
  22573. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22574. 0, 0, 0, 0),
  22575. /* incall */
  22576. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22577. 0, 0, 0, 0),
  22578. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22579. 0, 0, 0, 0),
  22580. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22581. 0, 0, 0, 0),
  22582. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22583. 0, 0, 0, 0),
  22584. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22585. 0, 0, 0, 0),
  22586. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22587. 0, 0, 0, 0),
  22588. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22589. 0, 0, 0, 0),
  22590. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22591. 0, 0, 0, 0),
  22592. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22593. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22594. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22595. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22596. 0, 0, 0, 0),
  22597. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22598. 0, 0, 0, 0),
  22599. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22600. 0, 0, 0, 0),
  22601. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22602. 0, 0, 0, 0),
  22603. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22604. 0, 0, 0, 0),
  22605. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22606. 0, 0, 0, 0),
  22607. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22608. 0, 0, 0, 0),
  22609. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22610. 0, 0, 0, 0),
  22611. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22612. 0, 0, 0, 0),
  22613. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22614. 0, 0, 0, 0),
  22615. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22616. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22617. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22618. 0, 0, 0, 0),
  22619. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22620. 0, 0, 0, 0),
  22621. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22622. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22623. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22624. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22625. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22626. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22627. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22628. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22629. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22630. /* In- call recording */
  22631. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22632. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22633. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22634. 0, 0, 0, 0),
  22635. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22636. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22637. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22638. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22639. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22640. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22641. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22642. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22643. /* Switch Definitions */
  22644. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22645. &slim_fm_switch_mixer_controls),
  22646. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22647. &slim1_fm_switch_mixer_controls),
  22648. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22649. &slim3_fm_switch_mixer_controls),
  22650. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22651. &slim4_fm_switch_mixer_controls),
  22652. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22653. &slim6_fm_switch_mixer_controls),
  22654. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22655. &pcm_rx_switch_mixer_controls),
  22656. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22657. &int0_mi2s_rx_switch_mixer_controls),
  22658. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22659. &int4_mi2s_rx_switch_mixer_controls),
  22660. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22661. &pri_mi2s_rx_switch_mixer_controls),
  22662. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22663. &sec_mi2s_rx_switch_mixer_controls),
  22664. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22665. &tert_mi2s_rx_switch_mixer_controls),
  22666. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22667. &quat_mi2s_rx_switch_mixer_controls),
  22668. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22669. &quin_mi2s_rx_switch_mixer_controls),
  22670. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22671. &sco_slim7_switch_mixer_controls),
  22672. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22673. &sen_mi2s_rx_switch_mixer_controls),
  22674. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22675. &hfp_pri_aux_switch_mixer_controls),
  22676. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22677. &hfp_aux_switch_mixer_controls),
  22678. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22679. &hfp_int_switch_mixer_controls),
  22680. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22681. &hfp_slim7_switch_mixer_controls),
  22682. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22683. &usb_switch_mixer_controls),
  22684. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22685. &a2dp_slim7_switch_mixer_controls),
  22686. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22687. &cdc_dma_wsa_switch_mixer_controls),
  22688. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22689. &cdc_dma_rx_switch_mixer_controls),
  22690. /* Mixer definitions */
  22691. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22692. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22693. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22694. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22695. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22696. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22697. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22698. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22699. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22700. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22701. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22702. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22703. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22704. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22705. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22706. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22707. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22708. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22709. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22710. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22711. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22712. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22713. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22714. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22715. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22716. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22717. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22718. quaternary_mi2s_rx_mixer_controls,
  22719. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22720. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22721. tertiary_mi2s_rx_mixer_controls,
  22722. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22723. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22724. secondary_mi2s_rx_mixer_controls,
  22725. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22726. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22727. secondary_mi2s_rx2_mixer_controls,
  22728. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22729. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22730. primary_mi2s_rx_mixer_controls,
  22731. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22732. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22733. int0_mi2s_rx_mixer_controls,
  22734. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22735. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22736. int4_mi2s_rx_mixer_controls,
  22737. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22738. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22739. quinary_mi2s_rx_mixer_controls,
  22740. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22741. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22742. senary_mi2s_rx_mixer_controls,
  22743. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22744. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22745. pri_tdm_rx_0_mixer_controls,
  22746. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22747. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22748. pri_tdm_rx_1_mixer_controls,
  22749. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22750. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22751. pri_tdm_rx_2_mixer_controls,
  22752. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22753. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22754. pri_tdm_rx_3_mixer_controls,
  22755. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22756. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22757. pri_tdm_tx_0_mixer_controls,
  22758. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22759. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22760. sec_tdm_rx_0_mixer_controls,
  22761. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22762. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22763. sec_tdm_rx_1_mixer_controls,
  22764. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22765. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22766. sec_tdm_rx_2_mixer_controls,
  22767. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22768. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22769. sec_tdm_rx_3_mixer_controls,
  22770. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22771. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22772. sec_tdm_tx_0_mixer_controls,
  22773. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22774. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22775. tert_tdm_rx_0_mixer_controls,
  22776. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22777. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22778. tert_tdm_tx_0_mixer_controls,
  22779. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22780. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22781. tert_tdm_rx_1_mixer_controls,
  22782. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22783. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22784. tert_tdm_rx_2_mixer_controls,
  22785. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22786. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22787. tert_tdm_rx_3_mixer_controls,
  22788. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22789. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22790. tert_tdm_rx_4_mixer_controls,
  22791. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22792. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22793. quat_tdm_rx_0_mixer_controls,
  22794. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22795. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22796. quat_tdm_tx_0_mixer_controls,
  22797. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  22798. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22799. quat_tdm_rx_1_mixer_controls,
  22800. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  22801. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22802. quat_tdm_rx_2_mixer_controls,
  22803. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  22804. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22805. quat_tdm_rx_3_mixer_controls,
  22806. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  22807. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22808. quin_tdm_rx_0_mixer_controls,
  22809. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  22810. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22811. quin_tdm_tx_0_mixer_controls,
  22812. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  22813. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22814. quin_tdm_rx_1_mixer_controls,
  22815. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  22816. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22817. quin_tdm_rx_2_mixer_controls,
  22818. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  22819. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22820. quin_tdm_rx_3_mixer_controls,
  22821. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  22822. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22823. sen_tdm_tx_0_mixer_controls,
  22824. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  22825. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22826. sen_tdm_rx_0_mixer_controls,
  22827. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  22828. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22829. sen_tdm_rx_1_mixer_controls,
  22830. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  22831. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22832. sen_tdm_rx_2_mixer_controls,
  22833. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  22834. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22835. sen_tdm_rx_3_mixer_controls,
  22836. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  22837. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22838. pri_meta_mi2s_rx_mixer_controls,
  22839. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  22840. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22841. sec_meta_mi2s_rx_mixer_controls,
  22842. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  22843. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22844. wsa_cdc_dma_rx_0_mixer_controls,
  22845. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  22846. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22847. wsa_cdc_dma_rx_1_mixer_controls,
  22848. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  22849. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22850. rx_cdc_dma_rx_0_mixer_controls,
  22851. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  22852. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22853. rx_cdc_dma_rx_1_mixer_controls,
  22854. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  22855. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22856. rx_cdc_dma_rx_2_mixer_controls,
  22857. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  22858. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22859. rx_cdc_dma_rx_3_mixer_controls,
  22860. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  22861. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22862. rx_cdc_dma_rx_4_mixer_controls,
  22863. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  22864. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22865. rx_cdc_dma_rx_5_mixer_controls,
  22866. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  22867. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22868. rx_cdc_dma_rx_6_mixer_controls,
  22869. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  22870. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22871. rx_cdc_dma_rx_7_mixer_controls,
  22872. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  22873. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  22874. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  22875. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  22876. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  22877. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  22878. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  22879. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  22880. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  22881. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  22882. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  22883. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  22884. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  22885. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  22886. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  22887. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  22888. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  22889. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  22890. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  22891. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  22892. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  22893. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  22894. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  22895. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  22896. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  22897. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  22898. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  22899. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  22900. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  22901. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  22902. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  22903. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  22904. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  22905. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  22906. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  22907. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  22908. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  22909. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  22910. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  22911. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  22912. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  22913. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22914. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  22915. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22916. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  22917. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22918. tert_auxpcm_rx_mixer_controls,
  22919. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  22920. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22921. quat_auxpcm_rx_mixer_controls,
  22922. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  22923. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22924. quin_auxpcm_rx_mixer_controls,
  22925. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  22926. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22927. sen_auxpcm_rx_mixer_controls,
  22928. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  22929. /* incall */
  22930. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  22931. incall_music_delivery_mixer_controls,
  22932. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  22933. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22934. incall_music2_delivery_mixer_controls,
  22935. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  22936. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22937. slimbus_4_rx_mixer_controls,
  22938. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  22939. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22940. slimbus_6_rx_mixer_controls,
  22941. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  22942. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22943. usb_audio_rx_mixer_controls,
  22944. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  22945. /* Voice Mixer */
  22946. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  22947. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  22948. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  22949. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  22950. SND_SOC_NOPM, 0, 0,
  22951. sec_i2s_rx_voice_mixer_controls,
  22952. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  22953. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  22954. SND_SOC_NOPM, 0, 0,
  22955. sec_mi2s_rx_voice_mixer_controls,
  22956. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  22957. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  22958. SND_SOC_NOPM, 0, 0,
  22959. slimbus_rx_voice_mixer_controls,
  22960. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  22961. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  22962. SND_SOC_NOPM, 0, 0,
  22963. bt_sco_rx_voice_mixer_controls,
  22964. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  22965. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  22966. SND_SOC_NOPM, 0, 0,
  22967. afe_pcm_rx_voice_mixer_controls,
  22968. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  22969. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  22970. SND_SOC_NOPM, 0, 0,
  22971. aux_pcm_rx_voice_mixer_controls,
  22972. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  22973. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  22974. SND_SOC_NOPM, 0, 0,
  22975. sec_aux_pcm_rx_voice_mixer_controls,
  22976. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  22977. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  22978. SND_SOC_NOPM, 0, 0,
  22979. tert_aux_pcm_rx_voice_mixer_controls,
  22980. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  22981. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  22982. SND_SOC_NOPM, 0, 0,
  22983. quat_aux_pcm_rx_voice_mixer_controls,
  22984. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  22985. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  22986. SND_SOC_NOPM, 0, 0,
  22987. quin_aux_pcm_rx_voice_mixer_controls,
  22988. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  22989. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  22990. SND_SOC_NOPM, 0, 0,
  22991. sen_aux_pcm_rx_voice_mixer_controls,
  22992. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  22993. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  22994. SND_SOC_NOPM, 0, 0,
  22995. hdmi_rx_voice_mixer_controls,
  22996. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  22997. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  22998. SND_SOC_NOPM, 0, 0,
  22999. mi2s_rx_voice_mixer_controls,
  23000. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23001. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23002. SND_SOC_NOPM, 0, 0,
  23003. pri_mi2s_rx_voice_mixer_controls,
  23004. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23005. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23006. SND_SOC_NOPM, 0, 0,
  23007. int0_mi2s_rx_voice_mixer_controls,
  23008. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23009. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23010. SND_SOC_NOPM, 0, 0,
  23011. int4_mi2s_rx_voice_mixer_controls,
  23012. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23013. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23014. SND_SOC_NOPM, 0, 0,
  23015. tert_mi2s_rx_voice_mixer_controls,
  23016. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23017. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23018. SND_SOC_NOPM, 0, 0,
  23019. quat_mi2s_rx_voice_mixer_controls,
  23020. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23021. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23022. SND_SOC_NOPM, 0, 0,
  23023. quin_mi2s_rx_voice_mixer_controls,
  23024. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23025. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23026. SND_SOC_NOPM, 0, 0,
  23027. pri_tdm_rx_0_voice_mixer_controls,
  23028. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23029. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23030. SND_SOC_NOPM, 0, 0,
  23031. pri_tdm_rx_1_voice_mixer_controls,
  23032. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23033. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23034. SND_SOC_NOPM, 0, 0,
  23035. pri_tdm_rx_2_voice_mixer_controls,
  23036. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23037. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23038. SND_SOC_NOPM, 0, 0,
  23039. pri_tdm_rx_3_voice_mixer_controls,
  23040. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23041. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23042. SND_SOC_NOPM, 0, 0,
  23043. sen_mi2s_rx_voice_mixer_controls,
  23044. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23045. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23046. SND_SOC_NOPM, 0, 0,
  23047. quat_tdm_rx_2_voice_mixer_controls,
  23048. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23049. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23050. SND_SOC_NOPM, 0, 0,
  23051. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23052. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23053. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23054. SND_SOC_NOPM, 0, 0,
  23055. rx_cdc_dma_rx_0_voice_mixer_controls,
  23056. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23057. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23058. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23059. ARRAY_SIZE(tx_voip_mixer_controls)),
  23060. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23061. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23062. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23063. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23064. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23065. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23066. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23067. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23068. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23069. int_bt_a2dp_rx_mixer_controls,
  23070. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23071. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23072. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23073. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23074. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23075. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23076. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23077. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23078. tx_voice2_stub_mixer_controls,
  23079. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23080. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23081. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23082. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23083. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23084. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23085. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23086. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23087. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23088. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23089. SND_SOC_NOPM, 0, 0,
  23090. slimbus_6_rx_voice_mixer_controls,
  23091. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23092. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23093. slimbus_7_rx_voice_mixer_controls,
  23094. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23095. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23096. slimbus_8_rx_voice_mixer_controls,
  23097. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23098. /* port mixer */
  23099. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23100. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23101. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23102. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23103. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23104. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23105. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23106. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23107. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23108. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23109. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23110. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23111. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23112. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23113. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23114. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23115. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23116. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23117. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23118. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23119. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23120. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23121. sbus_1_rx_port_mixer_controls,
  23122. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23123. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23124. bt_sco_rx_port_mixer_controls,
  23125. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23126. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23127. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23128. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23129. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23130. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23131. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23132. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23133. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23134. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23135. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23136. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23137. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23138. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23139. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23140. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23141. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23142. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23143. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23144. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23145. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23146. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23147. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23148. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23149. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23150. primary_mi2s_rx_port_mixer_controls,
  23151. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23152. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23153. sec_mi2s_rx_port_mixer_controls,
  23154. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23155. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23156. tert_mi2s_rx_port_mixer_controls,
  23157. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23158. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23159. quat_mi2s_rx_port_mixer_controls,
  23160. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23161. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23162. quin_mi2s_rx_port_mixer_controls,
  23163. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23164. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23165. sen_mi2s_rx_port_mixer_controls,
  23166. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23167. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23168. pri_tdm_rx_0_port_mixer_controls,
  23169. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23170. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23171. pri_tdm_rx_1_port_mixer_controls,
  23172. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23173. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23174. pri_tdm_rx_2_port_mixer_controls,
  23175. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23176. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23177. pri_tdm_rx_3_port_mixer_controls,
  23178. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23179. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23180. sec_tdm_rx_0_port_mixer_controls,
  23181. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23182. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23183. sec_tdm_rx_1_port_mixer_controls,
  23184. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23185. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23186. sec_tdm_rx_2_port_mixer_controls,
  23187. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23188. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23189. sec_tdm_rx_3_port_mixer_controls,
  23190. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23191. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23192. sec_tdm_rx_7_port_mixer_controls,
  23193. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23194. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23195. tert_tdm_rx_0_port_mixer_controls,
  23196. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23197. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23198. tert_tdm_rx_1_port_mixer_controls,
  23199. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23200. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23201. tert_tdm_rx_2_port_mixer_controls,
  23202. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23203. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23204. tert_tdm_rx_3_port_mixer_controls,
  23205. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23206. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23207. quat_tdm_rx_0_port_mixer_controls,
  23208. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23209. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23210. quat_tdm_rx_1_port_mixer_controls,
  23211. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23212. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23213. quat_tdm_rx_2_port_mixer_controls,
  23214. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23215. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23216. quat_tdm_rx_3_port_mixer_controls,
  23217. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23218. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23219. quat_tdm_rx_7_port_mixer_controls,
  23220. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23221. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23222. quin_tdm_rx_0_port_mixer_controls,
  23223. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23224. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23225. quin_tdm_rx_1_port_mixer_controls,
  23226. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23227. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23228. quin_tdm_rx_2_port_mixer_controls,
  23229. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23230. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23231. quin_tdm_rx_3_port_mixer_controls,
  23232. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23233. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23234. quin_tdm_rx_7_port_mixer_controls,
  23235. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23236. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23237. sen_tdm_rx_0_port_mixer_controls,
  23238. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23239. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23240. sen_tdm_rx_1_port_mixer_controls,
  23241. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23242. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23243. sen_tdm_rx_2_port_mixer_controls,
  23244. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23245. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23246. sen_tdm_rx_3_port_mixer_controls,
  23247. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23248. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23249. int0_mi2s_rx_port_mixer_controls,
  23250. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23251. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23252. int4_mi2s_rx_port_mixer_controls,
  23253. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23254. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23255. wsa_cdc_dma_rx_0_port_mixer_controls,
  23256. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23257. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23258. rx_cdc_dma_rx_0_port_mixer_controls,
  23259. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23260. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23261. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23262. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23263. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23264. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23265. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23266. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23267. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23268. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23269. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23270. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23271. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23272. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23273. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23274. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23275. /* lsm mixer definitions */
  23276. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23277. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23278. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23279. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23280. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23281. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23282. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23283. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23284. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23285. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23286. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23287. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23288. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23289. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23290. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23291. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23292. /* Virtual Pins to force backends ON atm */
  23293. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23294. SND_SOC_DAPM_INPUT("BE_IN"),
  23295. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23296. &slim0_rx_vi_fb_lch_mux),
  23297. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23298. &slim0_rx_vi_fb_rch_mux),
  23299. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23300. &wsa_rx_0_vi_fb_lch_mux),
  23301. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23302. &wsa_rx_0_vi_fb_rch_mux),
  23303. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23304. &mi2s_rx_vi_fb_mux),
  23305. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23306. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23307. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23308. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23309. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23310. &voc_ext_ec_mux),
  23311. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23312. &ext_ec_ref_mux_ul1),
  23313. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23314. &ext_ec_ref_mux_ul2),
  23315. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23316. &ext_ec_ref_mux_ul3),
  23317. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23318. &ext_ec_ref_mux_ul4),
  23319. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23320. &ext_ec_ref_mux_ul5),
  23321. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23322. &ext_ec_ref_mux_ul6),
  23323. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23324. &ext_ec_ref_mux_ul8),
  23325. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23326. &ext_ec_ref_mux_ul9),
  23327. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23328. &ext_ec_ref_mux_ul10),
  23329. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23330. &ext_ec_ref_mux_ul16),
  23331. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23332. &ext_ec_ref_mux_ul17),
  23333. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23334. &ext_ec_ref_mux_ul18),
  23335. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23336. &ext_ec_ref_mux_ul19),
  23337. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23338. &ext_ec_ref_mux_ul28),
  23339. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23340. &ext_ec_ref_mux_ul29),
  23341. };
  23342. static const struct snd_soc_dapm_route intercon[] = {
  23343. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23344. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23345. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23346. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23347. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23348. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23349. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23350. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23351. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23352. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23353. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23354. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23355. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23356. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23357. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23358. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23359. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23360. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23361. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23362. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23363. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23364. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23365. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23366. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23367. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23368. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23369. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23370. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23371. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23372. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23373. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23374. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23375. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23376. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23377. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23378. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23379. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23380. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23381. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23382. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23383. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23384. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23385. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23386. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23387. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23388. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23389. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23390. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23391. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23392. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23393. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23394. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23395. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23396. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23397. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23398. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23399. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23400. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23401. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23402. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23403. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23404. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23405. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23406. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23407. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23408. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23409. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23410. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23411. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23412. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23413. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23414. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23415. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23416. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23417. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23418. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23419. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23420. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23421. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23422. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23423. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23424. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23425. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23426. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23427. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23428. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23429. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23430. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23431. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23432. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23433. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23434. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23435. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23436. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23437. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23438. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23439. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23440. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23441. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23442. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23443. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23444. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23445. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23446. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23447. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23448. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23449. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23450. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23451. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23452. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23453. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23454. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23455. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23456. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23457. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23458. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23459. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23460. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23461. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23462. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23463. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23464. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23465. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23466. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23467. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23468. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23469. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23470. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23471. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23472. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23473. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23474. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23475. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23476. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23477. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23478. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23479. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23480. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23481. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23482. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23483. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23484. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23485. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23486. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23487. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23488. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23489. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23490. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23491. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23492. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23493. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23494. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23495. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23496. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23497. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23498. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23499. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23500. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23501. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23502. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23503. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23504. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23505. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23506. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23507. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23508. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23509. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23510. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23511. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23512. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23513. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23514. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23515. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23516. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23517. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23518. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23519. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23520. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23521. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23522. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23523. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23524. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23525. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23526. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23527. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23528. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23529. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23530. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23531. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23532. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23533. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23534. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23535. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23536. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23537. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23538. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23539. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23540. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23541. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23542. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23543. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23544. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23545. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23546. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23547. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23548. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23549. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23550. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23551. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23552. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23553. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23554. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23555. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23556. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23557. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23558. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23559. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23560. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23561. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23562. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23563. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23564. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23565. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23566. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23567. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23568. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23569. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23570. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23571. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23572. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23573. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23574. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23575. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23576. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23577. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23578. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23579. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23580. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23581. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23582. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23583. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23584. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23585. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23586. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23587. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23588. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23589. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23590. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23591. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23592. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23593. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23594. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23595. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23596. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23597. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23598. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23599. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23600. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23601. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23602. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23603. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23604. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23605. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23606. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23607. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23608. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23609. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23610. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23611. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23612. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23613. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23614. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23615. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23616. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23617. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23618. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23619. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23620. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23621. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23622. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23623. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23624. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23625. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23626. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23627. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23628. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23629. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23630. {"HDMI", NULL, "HDMI Mixer"},
  23631. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23632. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23633. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23634. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23635. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23636. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23637. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23638. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23639. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23640. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23641. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23642. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23643. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23644. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23645. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23646. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23647. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23648. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23649. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23650. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23651. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23652. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23653. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23654. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23655. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23656. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23657. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23658. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23659. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23660. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23661. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23662. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23663. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23664. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23665. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23666. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23667. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23668. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23669. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23670. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23671. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23672. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23673. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23674. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23675. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23676. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23677. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23678. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23679. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23680. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23681. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23682. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23683. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23684. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23685. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23686. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23687. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23688. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23689. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23690. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23691. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23692. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23693. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23694. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23695. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23696. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23697. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23698. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23699. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23700. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23701. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23702. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23703. /* incall */
  23704. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23705. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23706. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  23707. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23708. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23709. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23710. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23711. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23712. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23713. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23714. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23715. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23716. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23717. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23718. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23719. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23720. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23721. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23722. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23723. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23724. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23725. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23726. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23727. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23728. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23729. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23730. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23731. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23732. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23733. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23734. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23735. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23736. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23737. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23738. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23739. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23740. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23741. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23742. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23743. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23744. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23745. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23746. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23747. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23748. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23749. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23750. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23751. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23752. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23753. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23754. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23755. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23756. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23757. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23758. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23759. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23760. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23761. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23762. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23763. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23764. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23765. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23766. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23767. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23768. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23769. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23770. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23771. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23772. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23773. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23774. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23775. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23776. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23777. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23778. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23779. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23780. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23781. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23782. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23783. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23784. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23785. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23786. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23787. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23788. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23789. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23790. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23791. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  23792. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23793. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23794. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23795. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23796. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23797. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23798. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  23799. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23800. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23801. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23802. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23803. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23804. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23805. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23806. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23807. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23808. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23809. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23810. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23811. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23812. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23813. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23814. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23815. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23816. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23817. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23818. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23819. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23820. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23821. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23822. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23823. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23824. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23825. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23826. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23827. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23828. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23829. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23830. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23831. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23832. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23833. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23834. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23835. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23836. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23837. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23838. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23839. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23840. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23841. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23842. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23843. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23844. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23845. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23846. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23847. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23848. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23849. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23850. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23851. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23852. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23853. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23854. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23855. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23856. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23857. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23858. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23859. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23860. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23861. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23862. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23863. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23864. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23865. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23866. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23867. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23868. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23869. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23870. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23871. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23872. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23873. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23874. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23875. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23876. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23877. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23878. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23879. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23880. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23881. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23882. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23883. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23884. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23885. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23886. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23887. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23888. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23889. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  23890. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23891. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23892. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23893. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23894. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23895. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23896. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23897. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23898. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23899. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23900. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23901. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23902. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23903. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23904. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23905. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23906. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  23907. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23908. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23909. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23910. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23911. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23912. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23913. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23914. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23915. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23916. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23917. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23918. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23919. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23920. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23921. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23922. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  23923. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23924. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23925. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23926. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23927. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23928. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23929. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23930. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23931. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23932. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23933. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23934. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23935. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23936. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23937. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23938. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  23939. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23940. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  23941. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23942. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23943. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23944. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23945. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23946. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23947. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23948. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23949. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23950. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23951. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23952. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23953. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23954. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23955. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23956. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23957. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23958. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23959. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23960. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  23961. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  23962. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23963. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23964. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23965. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23966. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23967. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23968. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23969. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23970. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23971. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23972. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23973. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23974. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23975. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23976. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23977. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  23978. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23979. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23980. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23981. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23982. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23983. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23984. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23985. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23986. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23987. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23988. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23989. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23990. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23991. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23992. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23993. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  23994. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23995. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23996. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23997. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23998. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23999. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24000. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24001. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24002. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24003. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24004. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24005. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24006. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24007. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24008. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24009. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24010. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24011. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24012. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24013. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24014. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24015. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24016. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24017. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24018. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24019. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24020. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24021. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24022. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24023. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24024. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24025. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24026. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24027. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24028. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24029. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24030. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24031. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24032. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24033. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24034. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24035. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24036. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24037. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24038. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24039. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24040. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24041. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24042. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24043. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24044. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24045. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24046. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24047. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24048. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24049. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24050. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24051. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24052. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24053. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24054. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24055. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24056. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24057. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24058. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24059. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24060. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24061. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24062. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24063. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24064. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24065. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24066. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24067. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24068. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24069. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24070. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24071. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24072. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24073. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24074. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24075. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24076. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24077. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24078. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24079. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24080. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24081. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24082. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24083. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24084. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24085. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24086. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24087. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24088. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24089. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24090. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24091. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24092. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24093. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24094. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24095. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24096. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24097. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24098. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24099. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24100. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24101. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24102. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24103. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24104. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24105. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24106. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24107. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24108. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24109. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24110. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24111. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24112. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24113. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24114. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24115. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24116. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24117. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24118. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24119. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24120. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24121. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24122. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24123. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24124. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24125. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24126. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24127. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24128. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24129. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24130. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24131. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24132. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24133. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24134. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24135. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24136. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24137. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24138. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24139. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24140. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24141. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24142. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24143. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24144. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24145. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24146. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24147. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24148. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24149. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24150. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24151. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24152. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24153. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24154. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24155. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24156. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24157. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24158. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24159. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24160. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24161. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24162. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24163. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24164. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24165. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24166. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24167. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24168. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24169. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24170. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24171. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24172. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24173. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24174. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24175. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24176. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24177. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24178. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24179. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24180. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24181. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24182. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24183. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24184. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24185. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24186. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24187. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24188. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24189. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24190. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24191. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24192. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24193. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24194. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24195. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24196. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24197. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24198. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24199. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24200. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24201. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24202. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24203. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24204. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24205. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24206. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24207. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24208. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24209. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24210. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24211. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24212. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24213. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24214. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24215. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24216. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24217. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24218. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24219. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24220. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24221. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24222. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24223. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24224. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24225. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24226. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24227. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24228. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24229. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24230. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24231. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24232. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24233. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24234. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24235. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24236. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24237. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24238. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24239. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24240. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24241. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24242. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24243. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24244. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24245. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24246. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24247. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24248. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24249. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24250. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24251. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24252. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24253. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24254. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24255. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24256. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24257. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24258. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24259. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24260. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24261. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24262. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24263. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24264. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24265. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24266. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24267. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24268. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24269. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24270. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24271. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24272. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24273. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24274. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24275. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24276. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24277. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24278. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24279. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24280. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24281. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24282. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24283. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24284. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24285. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24286. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24287. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24288. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24289. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24290. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24291. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24292. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24293. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24294. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24295. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24296. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24297. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24298. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24299. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24300. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24301. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24302. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24303. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24304. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24305. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24306. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24307. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24308. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24309. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24310. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24311. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24312. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24313. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24314. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24315. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24316. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24317. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24318. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24319. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24320. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24321. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24322. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24323. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24324. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24325. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24326. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24327. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24328. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24329. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24330. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24331. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24332. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24333. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24334. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24335. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24336. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24337. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24338. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24339. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24340. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24341. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24342. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24343. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24344. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24345. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24346. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24347. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24348. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24349. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24350. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24351. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24352. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24353. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24354. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24355. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24356. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24357. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24358. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24359. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24360. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24361. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24362. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24363. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24364. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24365. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24366. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24367. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24368. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24369. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24370. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24371. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24372. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24373. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24374. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24375. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24376. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24377. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24378. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24379. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24380. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24381. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24382. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24383. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24384. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24385. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24386. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24387. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24388. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24389. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24390. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24391. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24392. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24393. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24394. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24395. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24396. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24397. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24398. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24399. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24400. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24401. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24402. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24403. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24404. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24405. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24406. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24407. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24408. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24409. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24410. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24411. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24412. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24413. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24414. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24415. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24416. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24417. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24418. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24419. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24420. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24421. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24422. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24423. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24424. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24425. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24426. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24427. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24428. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24429. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24430. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24431. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24432. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24433. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24434. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24435. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24436. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24437. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24438. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24439. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24440. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24441. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24442. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24443. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24444. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24445. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24446. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24447. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24448. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24449. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24450. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24451. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24452. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24453. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24454. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24455. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24456. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24457. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24458. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24459. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24460. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24461. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24462. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24463. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24464. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24465. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24466. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24467. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24468. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24469. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24470. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24471. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24472. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24473. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24474. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24475. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24476. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24477. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24478. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  24479. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24480. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24481. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24482. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24483. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24484. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24485. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24486. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24487. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24488. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24489. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24490. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24491. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24492. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24493. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24494. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24495. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24496. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24497. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24498. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24499. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24500. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24501. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24502. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24503. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24504. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24505. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24506. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24507. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24508. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24509. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24510. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24511. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24512. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24513. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24514. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24515. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24516. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24517. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24518. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24519. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24520. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24521. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24522. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24523. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24524. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24525. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24526. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24527. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24528. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24529. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24530. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24531. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24532. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24533. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24534. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24535. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24536. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24537. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24538. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24539. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24540. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24541. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24542. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24543. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24544. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24545. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24546. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24547. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24548. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24549. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24550. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24551. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24552. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24553. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24554. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24555. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24556. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24557. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24558. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24559. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24560. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24561. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24562. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24563. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24564. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24565. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24566. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24567. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24568. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24569. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24570. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24571. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24572. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24573. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24574. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24575. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24576. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24577. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24578. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24579. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24580. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24581. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24582. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24583. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24584. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24585. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24586. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24587. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24588. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24589. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24590. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24591. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24592. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24593. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24594. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24595. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24596. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24597. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24598. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24599. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24600. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24601. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24602. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24603. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24604. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24605. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24606. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24607. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24608. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24609. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24610. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24611. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24612. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24613. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24614. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24615. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24616. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24617. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24618. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24619. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24620. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24621. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24622. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24623. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24624. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24625. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24626. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24627. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24628. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24629. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24630. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24631. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24632. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24633. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24634. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24635. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24636. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24637. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24638. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24639. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24640. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24641. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24642. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24643. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24644. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24645. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24646. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24647. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24648. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24649. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24650. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24651. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24652. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24653. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24654. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24655. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24656. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24657. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24658. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24659. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24660. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24661. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24662. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24663. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24664. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24665. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24666. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24667. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24668. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24669. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24670. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24671. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24672. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24673. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24674. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24675. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24676. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24677. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24678. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24679. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24680. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24681. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24682. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24683. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24684. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24685. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24686. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24687. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24688. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24689. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24690. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24691. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24692. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24693. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24694. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24695. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24696. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24697. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24698. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24699. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24700. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24701. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24702. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24703. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24704. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24705. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24706. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24707. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24708. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24709. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24710. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24711. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24712. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24713. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24714. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24715. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24716. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24717. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24718. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24719. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24720. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24721. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24722. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24723. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24724. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24725. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24726. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24727. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24728. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24729. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24730. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24731. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24732. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24733. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24734. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24735. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24736. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24737. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24738. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24739. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24740. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24741. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24742. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24743. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24744. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24745. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24746. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24747. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24748. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24749. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24750. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24751. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24752. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24753. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24754. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24755. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24756. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24757. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24758. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24759. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24760. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24761. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24762. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24763. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24764. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24765. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24766. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24767. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24768. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24769. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24770. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24771. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24772. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24773. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24774. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24775. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24776. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24777. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24778. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24779. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24780. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24781. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24782. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24783. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24784. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24785. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24786. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24787. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24788. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24789. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24790. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24791. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24792. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24793. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24794. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24795. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24796. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24797. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24798. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24799. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24800. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24801. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24802. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24803. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24804. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24805. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24806. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24807. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24808. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24809. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24810. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24811. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24812. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24813. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24814. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24815. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24816. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24817. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24818. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24819. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24820. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24821. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24822. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24823. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24824. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24825. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24826. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24827. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24828. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24829. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24830. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24831. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24832. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24833. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24834. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24835. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24836. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24837. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24838. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24839. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24840. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24841. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24842. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24843. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24844. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24845. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24846. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24847. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24848. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24849. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24850. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24851. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24852. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24853. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24854. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24855. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24856. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24857. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24858. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24859. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24860. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24861. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24862. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24863. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24864. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24865. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24866. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24867. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24868. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24869. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24870. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24871. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24872. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24873. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24874. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24875. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24876. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24877. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24878. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24879. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24880. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24881. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24882. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24883. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24884. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24885. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24886. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24887. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24888. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24889. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24890. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24891. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24892. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24893. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24894. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24895. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24896. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24897. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24898. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24899. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24900. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24901. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24902. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24903. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24904. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24905. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24906. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24907. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24908. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24909. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24910. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24911. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24912. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24913. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24914. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24915. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24916. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24917. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24918. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24919. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24920. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24921. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24922. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24923. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24924. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24925. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24926. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24927. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24928. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24929. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24930. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24931. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24932. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24933. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24934. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24935. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24936. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24937. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24938. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24939. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24940. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24941. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24942. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24943. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24944. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24945. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24946. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24947. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24948. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24949. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24950. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24951. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24952. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24953. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24954. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24955. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24956. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24957. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24958. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24959. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24960. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24961. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24962. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24963. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24964. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24965. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24966. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24967. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24968. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24969. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24970. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24971. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24972. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24973. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24974. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24975. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24976. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24977. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24978. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24979. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24980. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24981. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24982. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24983. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24984. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24985. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24986. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24987. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24988. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24989. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24990. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24991. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24992. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24993. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24994. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24995. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24996. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24997. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24998. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24999. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25000. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25001. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25002. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25003. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25004. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25005. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25006. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25007. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25008. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25009. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25010. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25011. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25012. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25013. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25014. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25015. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25016. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25017. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25018. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25019. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25020. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25021. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25022. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25023. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25024. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25025. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25026. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25027. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25028. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25029. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25030. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25031. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25032. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25033. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25034. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25035. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25036. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25037. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25038. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25039. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25040. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25041. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25042. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25043. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25044. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25045. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25046. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25047. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25048. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25049. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25050. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25051. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25052. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25053. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25054. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25055. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25056. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25057. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25058. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25059. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25060. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25061. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25062. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25063. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25064. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25065. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25066. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25067. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25068. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25069. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25070. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25071. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25072. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25073. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25074. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25075. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25076. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25077. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25078. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25079. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25080. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25081. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25082. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25083. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25084. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25085. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25086. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25087. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25088. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25089. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25090. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25091. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25092. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25093. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25094. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25095. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25096. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25097. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25098. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25099. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25100. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25101. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25102. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25103. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25104. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25105. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25106. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25107. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25108. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25109. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25110. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25111. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25112. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25113. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25114. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25115. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25116. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25117. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25118. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25119. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25120. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25121. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25122. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25123. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25124. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25125. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25126. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25127. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25128. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25129. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25130. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25131. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25132. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25133. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25134. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25135. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25136. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25137. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25138. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25139. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25140. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25141. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25142. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25143. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25144. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25145. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25146. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25147. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25148. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25149. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25150. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25151. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25152. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25153. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25154. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25155. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25156. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25157. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25158. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25159. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25160. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25161. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25162. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25163. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25164. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25165. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25166. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25167. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25168. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25169. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25170. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25171. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25172. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25173. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25174. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25175. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25176. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25177. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25178. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25179. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25180. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25181. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25182. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25183. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25184. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25185. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25186. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25187. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25188. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25189. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25190. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25191. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25192. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25193. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25194. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25195. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25196. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25197. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25198. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25199. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25200. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25201. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25202. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25203. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25204. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25205. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25206. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25207. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25208. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25209. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25210. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25211. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25212. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25213. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25214. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25215. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25216. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25217. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25218. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25219. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25220. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25221. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25222. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25223. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25224. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25225. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25226. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25227. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25228. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25229. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25230. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25231. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25232. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25233. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25234. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25235. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25236. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25237. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25238. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25239. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25240. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25241. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25242. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25243. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25244. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25245. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25246. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25247. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25248. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25249. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25250. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25251. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25252. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25253. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25254. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25255. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25256. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25257. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25258. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25259. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25260. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25261. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25262. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25263. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25264. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25265. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25266. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25267. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25268. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25269. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25270. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25271. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25272. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25273. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25274. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25275. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25276. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25277. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25278. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25279. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25280. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25281. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25282. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25283. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25284. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25285. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25286. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25287. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25288. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25289. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25290. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25291. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25292. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25293. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25294. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25295. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25296. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25297. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25298. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25299. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25300. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25301. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25302. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25303. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25304. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25305. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25306. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25307. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25308. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25309. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25310. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25311. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25312. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25313. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25314. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25315. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25316. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25317. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25318. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25319. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25320. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25321. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25322. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25323. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25324. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25325. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25326. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25327. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25328. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25329. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25330. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25331. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25332. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25333. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25334. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25335. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25336. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25337. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25338. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25339. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25340. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25341. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25342. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25343. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25344. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25345. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25346. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25347. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25348. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25349. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25350. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25351. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25352. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25353. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25354. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25355. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25356. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25357. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25358. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25359. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25360. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25361. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25362. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25363. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25364. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25365. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25366. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25367. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25368. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25369. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25370. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25371. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25372. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25373. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25374. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25375. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25376. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25377. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25378. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25379. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25380. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25381. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25382. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25383. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25384. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25385. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25386. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25387. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25388. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25389. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25390. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25391. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25392. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25393. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25394. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25395. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25396. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25397. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25398. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25399. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25400. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25401. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25402. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25403. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25404. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25405. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25406. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25407. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25408. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25409. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25410. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25411. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25412. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25413. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25414. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25415. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25416. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25417. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25418. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25419. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25420. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25421. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25422. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25423. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25424. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25425. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25426. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25427. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25428. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25429. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25430. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25431. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25432. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25433. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25434. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25435. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25436. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25437. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25438. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25439. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25440. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25441. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25442. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25443. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25444. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25445. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25446. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25447. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25448. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25449. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25450. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25451. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25452. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25453. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25454. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25455. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25456. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25457. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25458. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25459. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25460. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25461. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  25462. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25463. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25464. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25465. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25466. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25467. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25468. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25469. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25470. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25471. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25472. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25473. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25474. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25475. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25476. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25477. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25478. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  25479. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25480. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25481. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25482. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25483. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25484. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25485. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25486. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25487. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25488. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25489. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25490. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25491. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25492. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25493. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25494. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25495. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  25496. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25497. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25498. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25499. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25500. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25501. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  25502. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25503. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25504. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25505. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  25506. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25507. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25508. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25509. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25510. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25511. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25512. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25513. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  25514. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25515. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25516. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25517. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25518. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25519. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25520. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25521. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25522. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25523. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25524. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25525. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25526. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25527. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25528. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25529. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25530. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25531. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25532. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25533. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25534. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25535. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25536. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25537. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25538. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25539. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25540. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25541. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25542. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25543. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25544. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25545. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25546. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25547. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25548. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25549. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25550. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25551. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25552. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25553. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25554. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25555. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25556. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25557. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25558. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25559. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25560. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25561. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25562. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25563. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25564. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25565. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25566. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25567. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25568. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25569. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25570. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25571. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25572. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25573. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25574. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25575. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25576. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25577. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25578. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25579. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25580. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25581. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25582. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25583. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25584. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25585. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25586. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25587. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25588. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25589. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25590. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25591. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25592. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25593. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25594. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25595. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25596. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25597. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25598. {"HDMI", NULL, "HDMI_DL_HL"},
  25599. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25600. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25601. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25602. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25603. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25604. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25605. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25606. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25607. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25608. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25609. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25610. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25611. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25612. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25613. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25614. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25615. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25616. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25617. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25618. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25619. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25620. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25621. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25622. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25623. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25624. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25625. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25626. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25627. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25628. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25629. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25630. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25631. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25632. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25633. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25634. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25635. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25636. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25637. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25638. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25639. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25640. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25641. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25642. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25643. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25644. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25645. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25646. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25647. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25648. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25649. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25650. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25651. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25652. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25653. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25654. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25655. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25656. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25657. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25658. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25659. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25660. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25661. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25662. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25663. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25664. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25665. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25666. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25667. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25668. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25669. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25670. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25671. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25672. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25673. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25674. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25675. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25676. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25677. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25678. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25679. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25680. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25681. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25682. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25683. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25684. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25685. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25686. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25687. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25688. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25689. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25690. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25691. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25692. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25693. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25694. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25695. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25696. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25697. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25698. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25699. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25700. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25701. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25702. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25703. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25704. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25705. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25706. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  25707. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25708. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25709. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25710. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25711. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25712. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25713. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25714. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25715. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25716. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25717. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25718. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25719. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25720. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25721. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25722. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25723. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25724. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25725. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25726. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25727. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25728. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25729. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25730. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25731. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25732. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25733. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25734. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25735. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25736. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25737. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25738. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25739. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25740. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25741. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25742. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25743. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25744. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25745. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25746. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25747. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25748. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25749. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25750. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25751. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25752. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25753. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25754. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25755. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25756. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25757. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25758. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25759. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25760. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25761. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25762. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25763. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25764. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25765. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25766. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25767. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25768. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25769. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25770. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25771. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25772. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25773. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25774. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25775. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25776. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25777. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25778. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25779. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25780. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25781. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25782. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25783. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25784. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25785. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25786. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25787. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25788. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25789. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25790. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25791. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25792. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25793. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25794. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25795. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25796. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  25797. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  25798. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  25799. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  25800. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  25801. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  25802. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  25803. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  25804. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  25805. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  25806. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  25807. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  25808. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  25809. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  25810. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  25811. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  25812. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  25813. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  25814. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  25815. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  25816. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  25817. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  25818. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  25819. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  25820. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  25821. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  25822. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  25823. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  25824. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  25825. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  25826. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  25827. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  25828. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  25829. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  25830. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  25831. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  25832. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  25833. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  25834. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  25835. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  25836. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  25837. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  25838. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  25839. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  25840. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  25841. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  25842. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  25843. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  25844. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  25845. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  25846. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  25847. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  25848. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  25849. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  25850. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  25851. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  25852. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  25853. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  25854. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  25855. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  25856. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  25857. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  25858. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  25859. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  25860. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  25861. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  25862. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  25863. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  25864. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  25865. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  25866. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  25867. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  25868. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  25869. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  25870. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  25871. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  25872. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  25873. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  25874. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  25875. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  25876. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  25877. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  25878. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  25879. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  25880. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  25881. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  25882. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  25883. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  25884. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  25885. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  25886. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  25887. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  25888. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  25889. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  25890. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  25891. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  25892. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  25893. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  25894. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  25895. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  25896. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  25897. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  25898. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  25899. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  25900. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  25901. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  25902. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  25903. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  25904. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  25905. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  25906. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  25907. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  25908. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  25909. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  25910. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  25911. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25912. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  25913. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  25914. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25915. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25916. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25917. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  25918. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25919. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25920. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25921. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25922. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25923. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25924. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25925. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25926. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25927. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25928. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25929. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25930. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25931. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  25932. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25933. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25934. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25935. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25936. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25937. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25938. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25939. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25940. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25941. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25942. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25943. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25944. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25945. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  25946. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25947. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25948. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25949. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25950. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25951. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25952. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25953. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25954. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25955. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25956. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25957. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25958. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25959. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  25960. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25961. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25962. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25963. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25964. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25965. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25966. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25967. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25968. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25969. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25970. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25971. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25972. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25973. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  25974. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25975. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25976. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25977. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25978. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25979. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25980. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25981. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25982. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25983. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25984. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25985. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25986. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25987. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  25988. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25989. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25990. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25991. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25992. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25993. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25994. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25995. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25996. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25997. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25998. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25999. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  26000. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26001. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26002. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26003. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26004. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26005. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26006. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26007. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26008. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26009. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26010. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26011. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  26012. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26013. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26014. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26015. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26016. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26017. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26018. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26019. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26020. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26021. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26022. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26023. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26024. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26025. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26026. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26027. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26028. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26029. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26030. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26031. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26032. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26033. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26034. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26035. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26036. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26037. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26038. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26039. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26040. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26041. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26042. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26043. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26044. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26045. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26046. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26047. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26048. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26049. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26050. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26051. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26052. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26053. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26054. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26055. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26056. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26057. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26058. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26059. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26060. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26061. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26062. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26063. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26064. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26065. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26066. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26067. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26068. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26069. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26070. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26071. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26072. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26073. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26074. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26075. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26076. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26077. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26078. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26079. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26080. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26081. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26082. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26083. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26084. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26085. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26086. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26087. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26088. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26089. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26090. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26091. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26092. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26093. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26094. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26095. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26096. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26097. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26098. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26099. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26100. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26101. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26102. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26103. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26104. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26105. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26106. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26107. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26108. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26109. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26110. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26111. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26112. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26113. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26114. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26115. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26116. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26117. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26118. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26119. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26120. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26121. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26122. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26123. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26124. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26125. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26126. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26127. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26128. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26129. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26130. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26131. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26132. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26133. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26134. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26135. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26136. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26137. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26138. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26139. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26140. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26141. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26142. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26143. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26144. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26145. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26146. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26147. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26148. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26149. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26150. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26151. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26152. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26153. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26154. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26155. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26156. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26157. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26158. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26159. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26160. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26161. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26162. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26163. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26164. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26165. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26166. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26167. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26168. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26169. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26170. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26171. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26172. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26173. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26174. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26175. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26176. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26177. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26178. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26179. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26180. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26181. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26182. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26183. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26184. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26185. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26186. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26187. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26188. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26189. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26190. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26191. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26192. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26193. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26194. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26195. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26196. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26197. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26198. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26199. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26200. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26201. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26202. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26203. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26204. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26205. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26206. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26207. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26208. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26209. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26210. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26211. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26212. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26213. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26214. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26215. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26216. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26217. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26218. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26219. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26220. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26221. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26222. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26223. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26224. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26225. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26226. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26227. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26228. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26229. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26230. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26231. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26232. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26233. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26234. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26235. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26236. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26237. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26238. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26239. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26240. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26241. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26242. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26243. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26244. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26245. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26246. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26247. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26248. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26249. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26250. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26251. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26252. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26253. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26254. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26255. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26256. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26257. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26258. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26259. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26260. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26261. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26262. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26263. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26264. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26265. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26266. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26267. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26268. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26269. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26270. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26271. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26272. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26273. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26274. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26275. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26276. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26277. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26278. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26279. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26280. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26281. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26282. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26283. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26284. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26285. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26286. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26287. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26288. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26289. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26290. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26291. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26292. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26293. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26294. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26295. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26296. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26297. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26298. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26299. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26300. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26301. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26302. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26303. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26304. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26305. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26306. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26307. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26308. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26309. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26310. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26311. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26312. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26313. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26314. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26315. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26316. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26317. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26318. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26319. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26320. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26321. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26322. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26323. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26324. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26325. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26326. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26327. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26328. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26329. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26330. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26331. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26332. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26333. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26334. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26335. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26336. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26337. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26338. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26339. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26340. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26341. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26342. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26343. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26344. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26345. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26346. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26347. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26348. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26349. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26350. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26351. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26352. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26353. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26354. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26355. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26356. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26357. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26358. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26359. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26360. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26361. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26362. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26363. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26364. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26365. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26366. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26367. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26368. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26369. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26370. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26371. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26372. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26373. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26374. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26375. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26376. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26377. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26378. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26379. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26380. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26381. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26382. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26383. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26384. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26385. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26386. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26387. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26388. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26389. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26390. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26391. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26392. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26393. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26394. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26395. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26396. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26397. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26398. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26399. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26400. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26401. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26402. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26403. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26404. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26405. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26406. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26407. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26408. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26409. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26410. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26411. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26412. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26413. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26414. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26415. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26416. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26417. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26418. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26419. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26420. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26421. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26422. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26423. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26424. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26425. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26426. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26427. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26428. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26429. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26430. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26431. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26432. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26433. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26434. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26435. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26436. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26437. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26438. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26439. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26440. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26441. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26442. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26443. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26444. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26445. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26446. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  26447. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26448. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26449. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26450. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26451. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26452. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26453. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26454. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26455. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26456. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26457. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26458. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26459. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26460. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26461. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26462. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26463. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26464. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26465. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26466. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26467. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26468. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26469. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26470. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26471. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  26472. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26473. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26474. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26475. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26476. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26477. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26478. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26479. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26480. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26481. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26482. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26483. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26484. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26485. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26486. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26487. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26488. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26489. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26490. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26491. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26492. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26493. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26494. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26495. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26496. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  26497. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26498. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26499. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26500. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26501. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26502. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26503. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26504. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26505. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26506. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26507. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26508. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26509. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26510. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26511. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26512. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26513. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26514. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26515. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26516. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26517. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26518. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26519. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26520. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26521. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  26522. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26523. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26524. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26525. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26526. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26527. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26528. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26529. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26530. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26531. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26532. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26533. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26534. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26535. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26536. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26537. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26538. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26539. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26540. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26541. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26542. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26543. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26544. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26545. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26546. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26547. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26548. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26549. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26550. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26551. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26552. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26553. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26554. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26555. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26556. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26557. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26558. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26559. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26560. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26561. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26562. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26563. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26564. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26565. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26566. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26567. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26568. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26569. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26570. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26571. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26572. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26573. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26574. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26575. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26576. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26577. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26578. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26579. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26580. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26581. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26582. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26583. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26584. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26585. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26586. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26587. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26588. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26589. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26590. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26591. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26592. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26593. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26594. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26595. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26596. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26597. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26598. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26599. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26600. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26601. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26602. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26603. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26604. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26605. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26606. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26607. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26608. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26609. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26610. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26611. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26612. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26613. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26614. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26615. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26616. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26617. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26618. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26619. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26620. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26621. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26622. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26623. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26624. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26625. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26626. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26627. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26628. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26629. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26630. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26631. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26632. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26633. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26634. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26635. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26636. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26637. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26638. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26639. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26640. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26641. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26642. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26643. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26644. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26645. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26646. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26647. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26648. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26649. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26650. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26651. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26652. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26653. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26654. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26655. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26656. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26657. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26658. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26659. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26660. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26661. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26662. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26663. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26664. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26665. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26666. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26667. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26668. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26669. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26670. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26671. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26672. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26673. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26674. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26675. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26676. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26677. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26678. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26679. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26680. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26681. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26682. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26683. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26684. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26685. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26686. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26687. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26688. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26689. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26690. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26691. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26692. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26693. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26694. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26695. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26696. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26697. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26698. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26699. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26700. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26701. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26702. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26703. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26704. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26705. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26706. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26707. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26708. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26709. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26710. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26711. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26712. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26713. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26714. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26715. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26716. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26717. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26718. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26719. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26720. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26721. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26722. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26723. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26724. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26725. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26726. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26727. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26728. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26729. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26730. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26731. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26732. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26733. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26734. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26735. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26736. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26737. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26738. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26739. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26740. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26741. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26742. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26743. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26744. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26745. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26746. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26747. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26748. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26749. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26750. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26751. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26752. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26753. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26754. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26755. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26756. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26757. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26758. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26759. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26760. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26761. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26762. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26763. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26764. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26765. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26766. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26767. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26768. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26769. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26770. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26771. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26772. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26773. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26774. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26775. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26776. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26777. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26778. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26779. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26780. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26781. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26782. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26783. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26784. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26785. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26786. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26787. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26788. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26789. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26790. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26791. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26792. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26793. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26794. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26795. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26796. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  26797. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26798. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  26799. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  26800. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  26801. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  26802. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26803. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26804. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26805. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26806. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26807. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26808. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26809. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  26810. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26811. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26812. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26813. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26814. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  26815. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26816. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26817. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26818. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  26819. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26820. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26821. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26822. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  26823. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26824. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26825. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26826. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  26827. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26828. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26829. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26830. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26831. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26832. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26833. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26834. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26835. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26836. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26837. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  26838. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26839. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26840. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26841. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26842. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26843. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26844. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26845. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26846. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26847. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  26848. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26849. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26850. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26851. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26852. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26853. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26854. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26855. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26856. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26857. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26858. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26859. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  26860. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26861. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26862. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26863. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26864. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26865. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26866. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26867. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26868. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26869. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26870. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26871. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26872. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  26873. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26874. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26875. {"STUB_RX", NULL, "STUB_RX Mixer"},
  26876. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26877. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26878. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  26879. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26880. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26881. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  26882. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26883. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26884. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26885. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26886. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26887. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  26888. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26889. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26890. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26891. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26892. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26893. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  26894. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26895. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26896. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26897. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  26898. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26899. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26900. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  26901. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  26902. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26903. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  26904. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26905. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  26906. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  26907. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26908. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26909. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26910. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26911. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26912. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26913. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26914. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26915. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26916. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26917. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26918. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26919. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26920. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  26921. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26922. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  26923. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26924. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  26925. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  26926. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  26927. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26928. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  26929. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26930. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26931. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  26932. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26933. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26934. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26935. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26936. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26937. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26938. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26939. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26940. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26941. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26942. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26943. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  26944. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26945. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26946. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26947. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26948. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26949. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26950. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26951. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26952. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26953. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26954. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  26955. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26956. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26957. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26958. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26959. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26960. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26961. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26962. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26963. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  26964. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26965. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26966. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26967. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26968. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26969. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26970. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26971. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26972. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26973. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26974. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  26975. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26976. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26977. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26978. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26979. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26980. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26981. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26982. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26983. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  26984. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26985. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26986. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26987. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26988. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26989. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26990. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26991. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  26992. /* Backend Enablement */
  26993. {"BE_OUT", NULL, "PRI_I2S_RX"},
  26994. {"BE_OUT", NULL, "SEC_I2S_RX"},
  26995. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26996. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26997. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26998. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26999. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  27000. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  27001. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  27002. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  27003. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  27004. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  27005. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  27006. {"BE_OUT", NULL, "HDMI"},
  27007. {"BE_OUT", NULL, "DISPLAY_PORT"},
  27008. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  27009. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  27010. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  27011. {"BE_OUT", NULL, "MI2S_RX"},
  27012. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  27013. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  27014. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  27015. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  27016. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27017. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27018. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27019. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27020. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27021. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27022. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27023. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27024. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27025. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27026. {"BE_OUT", NULL, "INT_FM_RX"},
  27027. {"BE_OUT", NULL, "PCM_RX"},
  27028. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27029. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27030. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27031. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27032. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27033. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27034. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27035. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27036. {"BE_OUT", NULL, "INT_FM_RX"},
  27037. {"BE_OUT", NULL, "PCM_RX"},
  27038. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27039. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27040. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27041. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27042. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27043. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27044. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27045. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27046. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27047. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27048. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27049. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27050. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27051. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27052. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27053. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27054. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27055. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27056. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27057. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27058. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27059. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27060. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27061. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27062. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27063. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27064. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27065. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27066. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27067. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27068. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27069. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27070. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27071. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27072. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27073. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27074. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27075. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27076. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27077. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27078. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27079. {"PRI_I2S_TX", NULL, "BE_IN"},
  27080. {"MI2S_TX", NULL, "BE_IN"},
  27081. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27082. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27083. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27084. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27085. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27086. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27087. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27088. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27089. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27090. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27091. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27092. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27093. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27094. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27095. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27096. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27097. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27098. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27099. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27100. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27101. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27102. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27103. {"INT_FM_TX", NULL, "BE_IN"},
  27104. {"PCM_TX", NULL, "BE_IN"},
  27105. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27106. {"BE_OUT", NULL, "STUB_RX"},
  27107. {"STUB_TX", NULL, "BE_IN"},
  27108. {"STUB_1_TX", NULL, "BE_IN"},
  27109. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27110. {"AUX_PCM_TX", NULL, "BE_IN"},
  27111. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27112. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27113. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27114. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27115. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27116. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27117. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27118. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27119. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27120. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27121. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27122. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27123. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27124. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27125. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27126. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27127. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27128. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27129. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27130. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27131. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27132. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27133. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27134. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27135. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27136. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27137. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27138. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27139. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27140. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27141. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27142. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27143. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27144. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27145. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27146. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27147. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27148. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27149. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27150. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27151. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27152. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27153. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27154. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27155. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27156. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27157. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27158. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27159. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27160. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27161. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27162. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27163. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27164. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27165. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27166. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27167. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27168. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27169. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27170. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27171. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27172. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27173. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27174. };
  27175. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27176. struct snd_pcm_hw_params *params)
  27177. {
  27178. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27179. unsigned int be_id = rtd->dai_link->id;
  27180. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27181. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27182. return -EINVAL;
  27183. }
  27184. mutex_lock(&routing_lock);
  27185. msm_bedais[be_id].sample_rate = params_rate(params);
  27186. msm_bedais[be_id].channel = params_channels(params);
  27187. msm_bedais[be_id].format = params_format(params);
  27188. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27189. __func__, msm_bedais[be_id].sample_rate,
  27190. msm_bedais[be_id].format, be_id);
  27191. mutex_unlock(&routing_lock);
  27192. return 0;
  27193. }
  27194. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27195. {
  27196. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27197. unsigned int be_id = rtd->dai_link->id;
  27198. int i, session_type, path_type, topology;
  27199. struct msm_pcm_routing_bdai_data *bedai;
  27200. struct msm_pcm_routing_fdai_data *fdai;
  27201. pr_debug("%s: substream->pcm->id:%s\n",
  27202. __func__, substream->pcm->id);
  27203. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27204. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27205. return -EINVAL;
  27206. }
  27207. bedai = &msm_bedais[be_id];
  27208. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27209. 0 : 1);
  27210. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27211. path_type = ADM_PATH_PLAYBACK;
  27212. else
  27213. path_type = ADM_PATH_LIVE_REC;
  27214. mutex_lock(&routing_lock);
  27215. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27216. if (!is_mm_lsm_fe_id(i))
  27217. continue;
  27218. fdai = &fe_dai_map[i][session_type];
  27219. if (fdai->strm_id != INVALID_SESSION) {
  27220. int idx;
  27221. int port_id;
  27222. unsigned long copp =
  27223. session_copp_map[i][session_type][be_id];
  27224. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27225. if (test_bit(idx, &copp))
  27226. break;
  27227. if (idx >= MAX_COPPS_PER_PORT) {
  27228. pr_debug("%s: copp idx is invalid, exiting\n",
  27229. __func__);
  27230. continue;
  27231. }
  27232. fdai->be_srate = bedai->sample_rate;
  27233. port_id = get_port_id(bedai->port_id);
  27234. topology = adm_get_topology_for_port_copp_idx(port_id,
  27235. idx);
  27236. msm_routing_unload_topology(topology);
  27237. adm_close(port_id, fdai->perf_mode, idx);
  27238. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27239. __func__, copp, i, session_type, be_id,
  27240. topology);
  27241. clear_bit(idx,
  27242. &session_copp_map[i][session_type][be_id]);
  27243. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27244. (fdai->passthr_mode == LEGACY_PCM))
  27245. msm_pcm_routing_deinit_pp(port_id,
  27246. topology);
  27247. }
  27248. }
  27249. bedai->active = 0;
  27250. bedai->sample_rate = 0;
  27251. bedai->channel = 0;
  27252. mutex_unlock(&routing_lock);
  27253. return 0;
  27254. }
  27255. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27256. {
  27257. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27258. unsigned int be_id = rtd->dai_link->id;
  27259. int i, path_type, topology;
  27260. int session_type = INVALID_SESSION;
  27261. struct msm_pcm_routing_bdai_data *bedai;
  27262. u32 channels, sample_rate;
  27263. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27264. struct msm_pcm_routing_fdai_data *fdai;
  27265. u32 session_id;
  27266. struct media_format_info voc_be_media_format;
  27267. bool is_lsm;
  27268. pr_debug("%s: substream->pcm->id:%s\n",
  27269. __func__, substream->pcm->id);
  27270. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27271. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27272. return -EINVAL;
  27273. }
  27274. bedai = &msm_bedais[be_id];
  27275. mutex_lock(&routing_lock);
  27276. if (bedai->active == 1)
  27277. goto done; /* Ignore prepare if back-end already active */
  27278. /* AFE port is not active at this point. However, still
  27279. * go ahead setting active flag under the notion that
  27280. * QDSP6 is able to handle ADM starting before AFE port
  27281. * is started.
  27282. */
  27283. bedai->active = 1;
  27284. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27285. if (!(is_mm_lsm_fe_id(i) &&
  27286. route_check_fe_id_adm_support(i)))
  27287. continue;
  27288. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27289. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27290. fdai = &fe_dai_map[i][session_type];
  27291. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27292. if (fdai->passthr_mode != LEGACY_PCM)
  27293. path_type = ADM_PATH_COMPRESSED_RX;
  27294. else
  27295. path_type = ADM_PATH_PLAYBACK;
  27296. } else {
  27297. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27298. (fdai->passthr_mode != LISTEN))
  27299. path_type = ADM_PATH_COMPRESSED_TX;
  27300. else
  27301. path_type = ADM_PATH_LIVE_REC;
  27302. }
  27303. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27304. (i <= MSM_FRONTEND_DAI_LSM8);
  27305. if (fdai->strm_id != INVALID_SESSION) {
  27306. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27307. int port_id = get_port_id(bedai->port_id);
  27308. if (session_type == SESSION_TYPE_TX &&
  27309. fdai->be_srate &&
  27310. (fdai->be_srate != bedai->sample_rate)) {
  27311. pr_debug("%s: flush strm %d diff BE rates\n",
  27312. __func__,
  27313. fdai->strm_id);
  27314. if (fdai->event_info.event_func)
  27315. fdai->event_info.event_func(
  27316. MSM_PCM_RT_EVT_BUF_RECFG,
  27317. fdai->event_info.priv_data);
  27318. fdai->be_srate = 0; /* might not need it */
  27319. }
  27320. bits_per_sample = msm_routing_get_bit_width(
  27321. bedai->format);
  27322. app_type =
  27323. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27324. if (app_type && is_lsm) {
  27325. app_type_idx =
  27326. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27327. sample_rate =
  27328. fe_dai_app_type_cfg[i][session_type][be_id]
  27329. .sample_rate;
  27330. bits_per_sample =
  27331. lsm_app_type_cfg[app_type_idx].bit_width;
  27332. } else if (app_type) {
  27333. app_type_idx =
  27334. msm_pcm_routing_get_app_type_idx(app_type);
  27335. sample_rate =
  27336. fe_dai_app_type_cfg[i][session_type]
  27337. [be_id].sample_rate;
  27338. bits_per_sample =
  27339. app_type_cfg[app_type_idx].bit_width;
  27340. } else
  27341. sample_rate = bedai->sample_rate;
  27342. /*
  27343. * check if ADM needs to be configured with different
  27344. * channel mapping than backend
  27345. */
  27346. if (!bedai->adm_override_ch)
  27347. channels = bedai->channel;
  27348. else
  27349. channels = bedai->adm_override_ch;
  27350. acdb_dev_id =
  27351. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27352. topology = msm_routing_get_adm_topology(i, session_type,
  27353. be_id);
  27354. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27355. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27356. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27357. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27358. be_bit_width = msm_routing_get_bit_width(
  27359. bedai->format);
  27360. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27361. || bedai->sample_rate == 352800) &&
  27362. be_bit_width == 32)
  27363. bits_per_sample = msm_routing_get_bit_width(
  27364. SNDRV_PCM_FORMAT_S32_LE);
  27365. copp_idx = adm_open(port_id, path_type,
  27366. sample_rate, channels, topology,
  27367. fdai->perf_mode, bits_per_sample,
  27368. app_type, acdb_dev_id,
  27369. session_type);
  27370. if ((copp_idx < 0) ||
  27371. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27372. pr_err("%s: adm open failed\n", __func__);
  27373. mutex_unlock(&routing_lock);
  27374. return -EINVAL;
  27375. }
  27376. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27377. __func__, i, session_type, be_id);
  27378. set_bit(copp_idx,
  27379. &session_copp_map[i][session_type][be_id]);
  27380. if (msm_is_resample_needed(
  27381. sample_rate,
  27382. bedai->sample_rate))
  27383. adm_copp_mfc_cfg(port_id, copp_idx,
  27384. bedai->sample_rate);
  27385. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27386. fdai->perf_mode, fdai->passthr_mode);
  27387. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27388. (fdai->passthr_mode == LEGACY_PCM))
  27389. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27390. topology, channels);
  27391. }
  27392. }
  27393. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27394. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27395. if (session_id) {
  27396. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27397. session_id);
  27398. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27399. voc_path_type = RX_PATH;
  27400. else
  27401. voc_path_type = TX_PATH;
  27402. voc_set_route_flag(session_id, voc_path_type, 1);
  27403. memset(&voc_be_media_format, 0,
  27404. sizeof(struct media_format_info));
  27405. voc_be_media_format.port_id = bedai->port_id;
  27406. voc_be_media_format.num_channels = bedai->channel;
  27407. voc_be_media_format.sample_rate = bedai->sample_rate;
  27408. voc_be_media_format.bits_per_sample = bedai->format;
  27409. /* Defaulting this to 1 for voice call usecases */
  27410. voc_be_media_format.channel_mapping[0] = 1;
  27411. voc_set_device_config(session_id, voc_path_type,
  27412. &voc_be_media_format);
  27413. if (voc_get_route_flag(session_id, RX_PATH) &&
  27414. voc_get_route_flag(session_id, TX_PATH))
  27415. voc_enable_device(session_id);
  27416. }
  27417. }
  27418. /* Check if backend is an external ec ref port and set as needed */
  27419. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27420. memset(&voc_be_media_format, 0,
  27421. sizeof(struct media_format_info));
  27422. /* Get format info for ec ref port from msm_bedais[] */
  27423. voc_be_media_format.port_id = bedai->port_id;
  27424. voc_be_media_format.num_channels = bedai->channel;
  27425. voc_be_media_format.bits_per_sample = bedai->format;
  27426. voc_be_media_format.sample_rate = bedai->sample_rate;
  27427. /* Defaulting this to 1 for voice call usecases */
  27428. voc_be_media_format.channel_mapping[0] = 1;
  27429. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27430. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  27431. __func__, voc_be_media_format.port_id,
  27432. voc_be_media_format.num_channels,
  27433. voc_be_media_format.bits_per_sample,
  27434. voc_be_media_format.sample_rate);
  27435. }
  27436. done:
  27437. mutex_unlock(&routing_lock);
  27438. return 0;
  27439. }
  27440. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  27441. int fe_id)
  27442. {
  27443. int index, topo_id, be_idx;
  27444. unsigned long pp_config = 0;
  27445. bool mute_on;
  27446. int latency, session_type;
  27447. bool compr_passthr_mode = true;
  27448. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  27449. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  27450. pr_err("%s: Device pp params on invalid port %d\n",
  27451. __func__, port_id);
  27452. return -EINVAL;
  27453. }
  27454. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27455. if (port_id == msm_bedais[be_idx].port_id)
  27456. break;
  27457. }
  27458. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27459. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27460. return -EINVAL;
  27461. }
  27462. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27463. if (msm_bedais_pp_params[index].port_id == port_id)
  27464. break;
  27465. }
  27466. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27467. pr_err("%s: Invalid backend pp params index %d\n",
  27468. __func__, index);
  27469. return -EINVAL;
  27470. }
  27471. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  27472. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  27473. pr_err("%s: Invalid passthrough topology 0x%x\n",
  27474. __func__, topo_id);
  27475. return -EINVAL;
  27476. }
  27477. session_type =
  27478. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27479. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27480. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  27481. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  27482. compr_passthr_mode = false;
  27483. pp_config = msm_bedais_pp_params[index].pp_params_config;
  27484. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  27485. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27486. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  27487. mute_on = msm_bedais_pp_params[index].mute_on;
  27488. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27489. adm_send_compressed_device_mute(port_id,
  27490. copp_idx,
  27491. mute_on);
  27492. }
  27493. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  27494. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27495. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  27496. &pp_config);
  27497. latency = msm_bedais_pp_params[index].latency;
  27498. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27499. adm_send_compressed_device_latency(port_id,
  27500. copp_idx,
  27501. latency);
  27502. }
  27503. return 0;
  27504. }
  27505. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  27506. {
  27507. uint32_t topology = NULL_COPP_TOPOLOGY;
  27508. void *cal_info = NULL;
  27509. uint32_t size = 0;
  27510. /* Retrieve cal_info size from cal data*/
  27511. if (data_size < sizeof(struct audio_cal_type_basic) +
  27512. sizeof(struct audio_cal_info_adm_top)) {
  27513. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  27514. goto done;
  27515. }
  27516. size = data_size - sizeof(struct audio_cal_type_basic);
  27517. cal_info = kzalloc(size, GFP_KERNEL);
  27518. if (!cal_info)
  27519. goto done;
  27520. memcpy(cal_info,
  27521. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  27522. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  27523. kfree(cal_info);
  27524. cal_info = NULL;
  27525. done:
  27526. pr_debug("%s: Using topology %d\n", __func__, topology);
  27527. return topology;
  27528. }
  27529. static void msm_routing_load_topology(size_t data_size, void *data)
  27530. {
  27531. uint32_t topology_id;
  27532. int ret = -EINVAL;
  27533. topology_id = msm_routing_get_topology(data_size, data);
  27534. if (topology_id != NULL_COPP_TOPOLOGY)
  27535. ret = q6core_load_unload_topo_modules(topology_id,
  27536. CORE_LOAD_TOPOLOGY);
  27537. if (ret < 0)
  27538. pr_debug("%s %d load topology failed\n",
  27539. __func__, topology_id);
  27540. }
  27541. static void msm_routing_unload_topology(uint32_t topology_id)
  27542. {
  27543. int ret = -EINVAL;
  27544. if (topology_id != NULL_COPP_TOPOLOGY)
  27545. ret = q6core_load_unload_topo_modules(topology_id,
  27546. CORE_UNLOAD_TOPOLOGY);
  27547. if (ret < 0)
  27548. pr_debug("%s %d unload topology failed\n",
  27549. __func__, topology_id);
  27550. }
  27551. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27552. struct snd_ctl_elem_value *ucontrol)
  27553. {
  27554. int pp_id = ucontrol->value.integer.value[0];
  27555. int port_id = 0;
  27556. int index, be_idx, i, topo_id, idx;
  27557. bool mute;
  27558. int latency, session_type;
  27559. bool compr_passthr_mode = true;
  27560. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27561. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27562. port_id = msm_bedais[be_idx].port_id;
  27563. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27564. break;
  27565. }
  27566. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27567. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27568. return -EINVAL;
  27569. }
  27570. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27571. if (msm_bedais_pp_params[index].port_id == port_id)
  27572. break;
  27573. }
  27574. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27575. pr_err("%s: Invalid pp params backend index %d\n",
  27576. __func__, index);
  27577. return -EINVAL;
  27578. }
  27579. session_type =
  27580. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27581. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27582. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27583. MSM_FRONTEND_DAI_MM_SIZE) {
  27584. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27585. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27586. compr_passthr_mode = false;
  27587. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27588. unsigned long copp =
  27589. session_copp_map[i]
  27590. [SESSION_TYPE_RX][be_idx];
  27591. if (!test_bit(idx, &copp))
  27592. continue;
  27593. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27594. idx);
  27595. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27596. continue;
  27597. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27598. __func__, port_id, copp, msm_bedais[be_idx].active,
  27599. fe_dai_map[i][session_type].passthr_mode);
  27600. switch (pp_id) {
  27601. case ADM_PP_PARAM_MUTE_ID:
  27602. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27603. mute = ucontrol->value.integer.value[1] ? true : false;
  27604. msm_bedais_pp_params[index].mute_on = mute;
  27605. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27606. &msm_bedais_pp_params[index].pp_params_config);
  27607. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27608. adm_send_compressed_device_mute(port_id,
  27609. idx, mute);
  27610. break;
  27611. case ADM_PP_PARAM_LATENCY_ID:
  27612. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27613. msm_bedais_pp_params[index].latency =
  27614. ucontrol->value.integer.value[1];
  27615. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27616. &msm_bedais_pp_params[index].pp_params_config);
  27617. latency = msm_bedais_pp_params[index].latency =
  27618. ucontrol->value.integer.value[1];
  27619. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27620. adm_send_compressed_device_latency(port_id,
  27621. idx, latency);
  27622. break;
  27623. default:
  27624. pr_info("%s, device pp param %d not supported\n",
  27625. __func__, pp_id);
  27626. break;
  27627. }
  27628. }
  27629. }
  27630. return 0;
  27631. }
  27632. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27633. struct snd_ctl_elem_value *ucontrol)
  27634. {
  27635. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27636. return 0;
  27637. }
  27638. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27639. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27640. 0, 3, msm_routing_get_device_pp_params_mixer,
  27641. msm_routing_put_device_pp_params_mixer),
  27642. };
  27643. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27644. struct snd_ctl_elem_value *ucontrol)
  27645. {
  27646. ucontrol->value.integer.value[0] =
  27647. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27648. pr_debug("%s: status %ld\n", __func__,
  27649. ucontrol->value.integer.value[0]);
  27650. return 0;
  27651. }
  27652. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27653. struct snd_ctl_elem_value *ucontrol)
  27654. {
  27655. int32_t status = 0;
  27656. status = core_set_license(ucontrol->value.integer.value[0],
  27657. APTX_CLASSIC_DEC_LICENSE_ID);
  27658. pr_debug("%s: status %d\n", __func__, status);
  27659. return status;
  27660. }
  27661. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27662. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27663. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27664. msm_aptx_dec_license_control_put),
  27665. };
  27666. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27667. struct snd_ctl_elem_value *ucontrol)
  27668. {
  27669. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27670. uint32_t be_idx = ucontrol->value.integer.value[0];
  27671. int i;
  27672. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27673. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27674. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27675. pr_err("%s: Invalid channel map %d\n",
  27676. __func__, channel_map[i]);
  27677. return -EINVAL;
  27678. }
  27679. }
  27680. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27681. return 0;
  27682. }
  27683. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27684. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27685. MSM_BACKEND_DAI_MAX, 0,
  27686. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27687. msm_routing_put_port_chmap_mixer),
  27688. };
  27689. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27690. struct snd_ctl_elem_info *uinfo)
  27691. {
  27692. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27693. uinfo->count = sizeof(be_dai_name_table);
  27694. return 0;
  27695. }
  27696. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27697. unsigned int __user *bytes,
  27698. unsigned int size)
  27699. {
  27700. int i;
  27701. int ret = 0;
  27702. if (size < sizeof(be_dai_name_table)) {
  27703. pr_err("%s: invalid size %d requested, returning\n",
  27704. __func__, size);
  27705. ret = -EINVAL;
  27706. goto done;
  27707. }
  27708. /*
  27709. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27710. * needed when adding new backends
  27711. */
  27712. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27713. be_dai_name_table[i].be_id = i;
  27714. strlcpy(be_dai_name_table[i].be_name,
  27715. msm_bedais[i].name,
  27716. LPASS_BE_NAME_MAX_LENGTH);
  27717. }
  27718. ret = copy_to_user(bytes, &be_dai_name_table,
  27719. sizeof(be_dai_name_table));
  27720. if (ret) {
  27721. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27722. ret = -EFAULT;
  27723. }
  27724. done:
  27725. return ret;
  27726. }
  27727. static const struct snd_kcontrol_new
  27728. msm_routing_be_dai_name_table_mixer_controls[] = {
  27729. {
  27730. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27731. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27732. .info = msm_routing_be_dai_name_table_info,
  27733. .name = "Backend DAI Name Table",
  27734. .tlv.c = snd_soc_bytes_tlv_callback,
  27735. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27736. .max = sizeof(be_dai_name_table),
  27737. .get = msm_routing_be_dai_name_table_tlv_get,
  27738. }
  27739. },
  27740. };
  27741. static int msm_routing_stereo_channel_reverse_control_get(
  27742. struct snd_kcontrol *kcontrol,
  27743. struct snd_ctl_elem_value *ucontrol)
  27744. {
  27745. ucontrol->value.integer.value[0] = swap_ch;
  27746. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27747. ucontrol->value.integer.value[0]);
  27748. return 0;
  27749. }
  27750. static int msm_routing_stereo_channel_reverse_control_put(
  27751. struct snd_kcontrol *kcontrol,
  27752. struct snd_ctl_elem_value *ucontrol)
  27753. {
  27754. int i, idx, be_index, port_id;
  27755. int ret = 0;
  27756. unsigned long copp;
  27757. pr_debug("%s Swap channel value:%ld\n", __func__,
  27758. ucontrol->value.integer.value[0]);
  27759. swap_ch = ucontrol->value.integer.value[0];
  27760. mutex_lock(&routing_lock);
  27761. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27762. port_id = msm_bedais[be_index].port_id;
  27763. if (!msm_bedais[be_index].active)
  27764. continue;
  27765. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27766. MSM_FRONTEND_DAI_MM_SIZE) {
  27767. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27768. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27769. if (!test_bit(idx, &copp))
  27770. continue;
  27771. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27772. __func__, port_id, idx);
  27773. ret = adm_swap_speaker_channels(
  27774. port_id, idx,
  27775. msm_bedais[be_index].sample_rate,
  27776. swap_ch);
  27777. if (ret) {
  27778. pr_err("%s:Swap_channel failed, err=%d\n",
  27779. __func__, ret);
  27780. goto done;
  27781. }
  27782. }
  27783. }
  27784. }
  27785. done:
  27786. mutex_unlock(&routing_lock);
  27787. return ret;
  27788. }
  27789. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  27790. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  27791. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  27792. msm_routing_stereo_channel_reverse_control_put),
  27793. };
  27794. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  27795. struct snd_ctl_elem_info *uinfo)
  27796. {
  27797. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  27798. uinfo->count = 1;
  27799. return 0;
  27800. }
  27801. static int msm_routing_instance_id_support_put(
  27802. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27803. {
  27804. bool supported = ucontrol->value.integer.value[0] ? true : false;
  27805. q6common_update_instance_id_support(supported);
  27806. return 0;
  27807. }
  27808. static int msm_routing_instance_id_support_get(
  27809. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27810. {
  27811. bool supported = false;
  27812. supported = q6common_is_instance_id_supported();
  27813. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  27814. return 0;
  27815. }
  27816. static const struct snd_kcontrol_new
  27817. msm_routing_feature_support_mixer_controls[] = {
  27818. {
  27819. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  27820. SNDRV_CTL_ELEM_ACCESS_WRITE,
  27821. .info = msm_routing_instance_id_support_info,
  27822. .name = "Instance ID Support",
  27823. .put = msm_routing_instance_id_support_put,
  27824. .get = msm_routing_instance_id_support_get,
  27825. },
  27826. };
  27827. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  27828. .hw_params = msm_pcm_routing_hw_params,
  27829. .close = msm_pcm_routing_close,
  27830. .prepare = msm_pcm_routing_prepare,
  27831. };
  27832. /* Not used but frame seems to require it */
  27833. static int msm_routing_probe(struct snd_soc_component *component)
  27834. {
  27835. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  27836. ARRAY_SIZE(msm_qdsp6_widgets));
  27837. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  27838. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  27839. snd_soc_dapm_add_routes(&component->dapm, intercon,
  27840. ARRAY_SIZE(intercon));
  27841. snd_soc_dapm_new_widgets(component->dapm.card);
  27842. snd_soc_add_component_controls(component, lsm_controls,
  27843. ARRAY_SIZE(lsm_controls));
  27844. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  27845. ARRAY_SIZE(aanc_slim_0_rx_mux));
  27846. snd_soc_add_component_controls(component, aanc_noise_level,
  27847. ARRAY_SIZE(aanc_noise_level));
  27848. snd_soc_add_component_controls(component, msm_voc_session_controls,
  27849. ARRAY_SIZE(msm_voc_session_controls));
  27850. snd_soc_add_component_controls(component, app_type_cfg_controls,
  27851. ARRAY_SIZE(app_type_cfg_controls));
  27852. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  27853. ARRAY_SIZE(lsm_app_type_cfg_controls));
  27854. snd_soc_add_component_controls(component, module_cfg_controls,
  27855. ARRAY_SIZE(module_cfg_controls));
  27856. snd_soc_add_component_controls(component,
  27857. stereo_to_custom_stereo_controls,
  27858. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  27859. snd_soc_add_component_controls(component, ec_ref_param_controls,
  27860. ARRAY_SIZE(ec_ref_param_controls));
  27861. snd_soc_add_component_controls(component, channel_mixer_controls,
  27862. ARRAY_SIZE(channel_mixer_controls));
  27863. msm_qti_pp_add_controls(component);
  27864. msm_dts_srs_tm_add_controls(component);
  27865. msm_dolby_dap_add_controls(component);
  27866. snd_soc_add_component_controls(component,
  27867. use_ds1_or_ds2_controls,
  27868. ARRAY_SIZE(use_ds1_or_ds2_controls));
  27869. snd_soc_add_component_controls(component,
  27870. hifi_filter_controls,
  27871. ARRAY_SIZE(hifi_filter_controls));
  27872. snd_soc_add_component_controls(component,
  27873. device_pp_params_mixer_controls,
  27874. ARRAY_SIZE(device_pp_params_mixer_controls));
  27875. snd_soc_add_component_controls(component,
  27876. msm_routing_be_dai_name_table_mixer_controls,
  27877. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  27878. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  27879. ARRAY_SIZE(msm_source_tracking_controls));
  27880. snd_soc_add_component_controls(component, adm_channel_config_controls,
  27881. ARRAY_SIZE(adm_channel_config_controls));
  27882. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  27883. ARRAY_SIZE(aptx_dec_license_controls));
  27884. snd_soc_add_component_controls(component,
  27885. stereo_channel_reverse_control,
  27886. ARRAY_SIZE(stereo_channel_reverse_control));
  27887. snd_soc_add_component_controls(
  27888. component, msm_routing_feature_support_mixer_controls,
  27889. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  27890. snd_soc_add_component_controls(component,
  27891. port_multi_channel_map_mixer_controls,
  27892. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  27893. return 0;
  27894. }
  27895. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  27896. {
  27897. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  27898. }
  27899. void msm_routing_pcm_free(struct snd_pcm *pcm)
  27900. {
  27901. msm_pcm_routing_hwdep_free(pcm);
  27902. }
  27903. static struct snd_soc_component_driver msm_soc_routing_component = {
  27904. .name = DRV_NAME,
  27905. .ops = &msm_routing_pcm_ops,
  27906. .probe = msm_routing_probe,
  27907. .pcm_new = msm_routing_pcm_new,
  27908. .pcm_free = msm_routing_pcm_free,
  27909. };
  27910. static int msm_routing_pcm_probe(struct platform_device *pdev)
  27911. {
  27912. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  27913. return snd_soc_register_component(&pdev->dev,
  27914. &msm_soc_routing_component,
  27915. NULL, 0);
  27916. }
  27917. static int msm_routing_pcm_remove(struct platform_device *pdev)
  27918. {
  27919. snd_soc_unregister_component(&pdev->dev);
  27920. return 0;
  27921. }
  27922. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  27923. {.compatible = "qcom,msm-pcm-routing"},
  27924. {}
  27925. };
  27926. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  27927. static struct platform_driver msm_routing_pcm_driver = {
  27928. .driver = {
  27929. .name = "msm-pcm-routing",
  27930. .owner = THIS_MODULE,
  27931. .of_match_table = msm_pcm_routing_dt_match,
  27932. .suppress_bind_attrs = true,
  27933. },
  27934. .probe = msm_routing_pcm_probe,
  27935. .remove = msm_routing_pcm_remove,
  27936. };
  27937. int msm_routing_check_backend_enabled(int fedai_id)
  27938. {
  27939. int i;
  27940. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  27941. /* bad ID assigned in machine driver */
  27942. pr_err("%s: bad MM ID\n", __func__);
  27943. return 0;
  27944. }
  27945. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27946. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  27947. return msm_bedais[i].active;
  27948. }
  27949. return 0;
  27950. }
  27951. static int get_cal_type_index(int32_t cal_type)
  27952. {
  27953. int ret = -EINVAL;
  27954. switch (cal_type) {
  27955. case ADM_TOPOLOGY_CAL_TYPE:
  27956. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  27957. break;
  27958. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  27959. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  27960. break;
  27961. default:
  27962. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  27963. }
  27964. return ret;
  27965. }
  27966. static int msm_routing_set_cal(int32_t cal_type,
  27967. size_t data_size, void *data)
  27968. {
  27969. int ret = 0;
  27970. int cal_index;
  27971. pr_debug("%s\n", __func__);
  27972. cal_index = get_cal_type_index(cal_type);
  27973. if (cal_index < 0) {
  27974. pr_err("%s: Could not get cal index %d\n",
  27975. __func__, cal_index);
  27976. ret = -EINVAL;
  27977. goto done;
  27978. }
  27979. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  27980. if (ret < 0) {
  27981. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  27982. __func__, ret, cal_type);
  27983. ret = -EINVAL;
  27984. goto done;
  27985. }
  27986. /* Pre-load if it is ADM topology */
  27987. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  27988. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  27989. msm_routing_load_topology(data_size, data);
  27990. }
  27991. done:
  27992. return ret;
  27993. }
  27994. static void msm_routing_delete_cal_data(void)
  27995. {
  27996. pr_debug("%s\n", __func__);
  27997. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  27998. }
  27999. static int msm_routing_init_cal_data(void)
  28000. {
  28001. int ret = 0;
  28002. struct cal_type_info cal_type_info[] = {
  28003. {{ADM_TOPOLOGY_CAL_TYPE,
  28004. {NULL, NULL, NULL,
  28005. msm_routing_set_cal, NULL, NULL} },
  28006. {NULL, NULL, cal_utils_match_buf_num} },
  28007. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  28008. {NULL, NULL, NULL,
  28009. msm_routing_set_cal, NULL, NULL} },
  28010. {NULL, NULL, cal_utils_match_buf_num} },
  28011. };
  28012. pr_debug("%s\n", __func__);
  28013. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  28014. &cal_type_info[0]);
  28015. if (ret < 0) {
  28016. pr_err("%s: could not create cal type!\n",
  28017. __func__);
  28018. ret = -EINVAL;
  28019. goto err;
  28020. }
  28021. return ret;
  28022. err:
  28023. msm_routing_delete_cal_data();
  28024. return ret;
  28025. }
  28026. int __init msm_soc_routing_platform_init(void)
  28027. {
  28028. mutex_init(&routing_lock);
  28029. if (msm_routing_init_cal_data())
  28030. pr_err("%s: could not init cal data!\n", __func__);
  28031. afe_set_routing_callback(
  28032. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28033. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28034. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28035. return platform_driver_register(&msm_routing_pcm_driver);
  28036. }
  28037. void msm_soc_routing_platform_exit(void)
  28038. {
  28039. msm_routing_delete_cal_data();
  28040. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28041. mutex_destroy(&routing_lock);
  28042. platform_driver_unregister(&msm_routing_pcm_driver);
  28043. }
  28044. MODULE_DESCRIPTION("MSM routing platform driver");
  28045. MODULE_LICENSE("GPL v2");