msm-pcm-routing-v2.c 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560
  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_tx_1_mixer_controls[] = {
  10657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_QUIN_TDM_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_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_TX_1,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. };
  10722. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10754. msm_routing_put_audio_mixer),
  10755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10758. msm_routing_put_audio_mixer),
  10759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10766. msm_routing_put_audio_mixer),
  10767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10770. msm_routing_put_audio_mixer),
  10771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. };
  10800. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  10801. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10804. msm_routing_put_audio_mixer),
  10805. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. };
  10866. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10867. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10921. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10926. msm_routing_put_audio_mixer),
  10927. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10929. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10930. msm_routing_put_audio_mixer),
  10931. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10933. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10934. msm_routing_put_audio_mixer),
  10935. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10937. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10938. msm_routing_put_audio_mixer),
  10939. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10941. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. };
  10944. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  10945. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. };
  11010. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11011. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. };
  11088. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11089. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11091. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11096. msm_routing_put_audio_mixer),
  11097. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11099. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11100. msm_routing_put_audio_mixer),
  11101. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11103. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11104. msm_routing_put_audio_mixer),
  11105. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. };
  11162. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11163. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. };
  11228. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11229. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. };
  11302. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11303. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. };
  11376. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11377. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. };
  11450. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11451. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_PRI_I2S_TX,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_MI2S_TX,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_AUXPCM_TX,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_INT_FM_TX,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_AFE_PCM_TX,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11653. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_USB_TX,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11662. msm_routing_put_audio_mixer),
  11663. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11665. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11666. msm_routing_put_audio_mixer),
  11667. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11670. msm_routing_put_audio_mixer),
  11671. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11697. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11698. msm_routing_put_audio_mixer),
  11699. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11702. msm_routing_put_audio_mixer),
  11703. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11706. msm_routing_put_audio_mixer),
  11707. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. };
  11724. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11725. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_INT_FM_TX,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_MI2S_TX,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11851. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11852. msm_routing_put_audio_mixer),
  11853. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11854. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11855. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11856. msm_routing_put_audio_mixer),
  11857. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11860. msm_routing_put_audio_mixer),
  11861. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11864. msm_routing_put_audio_mixer),
  11865. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11866. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11868. msm_routing_put_audio_mixer),
  11869. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11872. msm_routing_put_audio_mixer),
  11873. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11875. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11876. msm_routing_put_audio_mixer),
  11877. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_USB_TX,
  11879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11880. msm_routing_put_audio_mixer),
  11881. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11883. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11884. msm_routing_put_audio_mixer),
  11885. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11888. msm_routing_put_audio_mixer),
  11889. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11891. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11892. msm_routing_put_audio_mixer),
  11893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11895. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. };
  11950. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11951. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_INT_FM_TX,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_MI2S_TX,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_AFE_PCM_TX,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_AUXPCM_TX,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12046. msm_routing_put_audio_mixer),
  12047. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12049. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12050. msm_routing_put_audio_mixer),
  12051. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12054. msm_routing_put_audio_mixer),
  12055. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12058. msm_routing_put_audio_mixer),
  12059. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12061. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12113. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12114. msm_routing_put_audio_mixer),
  12115. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12130. msm_routing_put_audio_mixer),
  12131. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12133. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12134. msm_routing_put_audio_mixer),
  12135. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12137. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12138. msm_routing_put_audio_mixer),
  12139. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12141. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12146. msm_routing_put_audio_mixer),
  12147. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12149. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12150. msm_routing_put_audio_mixer),
  12151. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12154. msm_routing_put_audio_mixer),
  12155. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12157. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12158. msm_routing_put_audio_mixer),
  12159. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12161. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12162. msm_routing_put_audio_mixer),
  12163. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. };
  12172. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12173. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_INT_FM_TX,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_AFE_PCM_TX,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12300. msm_routing_put_audio_mixer),
  12301. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_USB_TX,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12364. msm_routing_put_audio_mixer),
  12365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12372. msm_routing_put_audio_mixer),
  12373. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. };
  12386. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12387. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_INT_FM_TX,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_MI2S_TX,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_AFE_PCM_TX,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_AUXPCM_TX,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12433. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12434. msm_routing_put_audio_mixer),
  12435. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12506. msm_routing_put_audio_mixer),
  12507. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12509. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12514. msm_routing_put_audio_mixer),
  12515. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12518. msm_routing_put_audio_mixer),
  12519. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12522. msm_routing_put_audio_mixer),
  12523. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12562. msm_routing_put_audio_mixer),
  12563. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_USB_TX,
  12565. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12566. msm_routing_put_audio_mixer),
  12567. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12570. msm_routing_put_audio_mixer),
  12571. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12574. msm_routing_put_audio_mixer),
  12575. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. };
  12632. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12633. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_INT_FM_TX,
  12635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12636. msm_routing_put_audio_mixer),
  12637. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12643. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12644. msm_routing_put_audio_mixer),
  12645. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12648. msm_routing_put_audio_mixer),
  12649. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12650. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12651. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12652. msm_routing_put_audio_mixer),
  12653. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12656. msm_routing_put_audio_mixer),
  12657. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12659. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12660. msm_routing_put_audio_mixer),
  12661. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12664. msm_routing_put_audio_mixer),
  12665. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12668. msm_routing_put_audio_mixer),
  12669. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12672. msm_routing_put_audio_mixer),
  12673. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12676. msm_routing_put_audio_mixer),
  12677. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_AUXPCM_TX,
  12679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12680. msm_routing_put_audio_mixer),
  12681. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12684. msm_routing_put_audio_mixer),
  12685. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12687. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12688. msm_routing_put_audio_mixer),
  12689. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12764. msm_routing_put_audio_mixer),
  12765. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_USB_TX,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. };
  12854. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12855. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12870. msm_routing_put_audio_mixer),
  12871. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12874. msm_routing_put_audio_mixer),
  12875. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12876. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12877. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12878. msm_routing_put_audio_mixer),
  12879. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12880. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12882. msm_routing_put_audio_mixer),
  12883. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12886. msm_routing_put_audio_mixer),
  12887. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_INT_FM_TX,
  12889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12890. msm_routing_put_audio_mixer),
  12891. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12894. msm_routing_put_audio_mixer),
  12895. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12896. MSM_BACKEND_DAI_AFE_PCM_TX,
  12897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12898. msm_routing_put_audio_mixer),
  12899. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12900. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12902. msm_routing_put_audio_mixer),
  12903. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12904. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12905. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12906. msm_routing_put_audio_mixer),
  12907. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12910. msm_routing_put_audio_mixer),
  12911. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12914. msm_routing_put_audio_mixer),
  12915. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12922. msm_routing_put_audio_mixer),
  12923. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12926. msm_routing_put_audio_mixer),
  12927. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12934. msm_routing_put_audio_mixer),
  12935. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12938. msm_routing_put_audio_mixer),
  12939. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12982. msm_routing_put_audio_mixer),
  12983. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_USB_TX,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. };
  13080. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13081. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13084. msm_routing_put_audio_mixer),
  13085. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13088. msm_routing_put_audio_mixer),
  13089. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_INT_FM_TX,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_AFE_PCM_TX,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_USB_TX,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_MI2S_TX,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_AUXPCM_TX,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13248. msm_routing_put_audio_mixer),
  13249. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13251. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13252. msm_routing_get_audio_mixer,
  13253. msm_routing_put_audio_mixer),
  13254. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13255. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13256. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13257. msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13262. msm_routing_get_audio_mixer,
  13263. msm_routing_put_audio_mixer),
  13264. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13266. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13267. msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13272. msm_routing_get_audio_mixer,
  13273. msm_routing_put_audio_mixer),
  13274. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13275. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13276. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13277. msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. };
  13296. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13297. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13300. msm_routing_put_audio_mixer),
  13301. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13303. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13304. msm_routing_put_audio_mixer),
  13305. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13307. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_INT_FM_TX,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13316. msm_routing_put_audio_mixer),
  13317. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_AFE_PCM_TX,
  13319. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13320. msm_routing_put_audio_mixer),
  13321. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13323. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13324. msm_routing_put_audio_mixer),
  13325. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13327. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13347. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13348. msm_routing_put_audio_mixer),
  13349. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13351. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13352. msm_routing_put_audio_mixer),
  13353. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13355. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13356. msm_routing_put_audio_mixer),
  13357. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13359. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13360. msm_routing_put_audio_mixer),
  13361. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13363. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13364. msm_routing_put_audio_mixer),
  13365. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13367. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13368. msm_routing_put_audio_mixer),
  13369. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13371. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13372. msm_routing_put_audio_mixer),
  13373. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13375. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13376. msm_routing_put_audio_mixer),
  13377. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13379. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13380. msm_routing_put_audio_mixer),
  13381. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13383. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13384. msm_routing_put_audio_mixer),
  13385. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13387. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13388. msm_routing_put_audio_mixer),
  13389. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13390. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13391. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13392. msm_routing_put_audio_mixer),
  13393. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13394. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13395. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13396. msm_routing_put_audio_mixer),
  13397. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13399. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13400. msm_routing_put_audio_mixer),
  13401. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13403. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13404. msm_routing_put_audio_mixer),
  13405. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13407. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13408. msm_routing_put_audio_mixer),
  13409. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13411. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13416. msm_routing_put_audio_mixer),
  13417. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13419. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13420. msm_routing_put_audio_mixer),
  13421. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13423. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13424. msm_routing_put_audio_mixer),
  13425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13427. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13428. msm_routing_put_audio_mixer),
  13429. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13430. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13431. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13432. msm_routing_put_audio_mixer),
  13433. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13434. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13436. msm_routing_put_audio_mixer),
  13437. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13439. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13440. msm_routing_put_audio_mixer),
  13441. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13443. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13444. msm_routing_put_audio_mixer),
  13445. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13447. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13448. msm_routing_put_audio_mixer),
  13449. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13451. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13452. msm_routing_put_audio_mixer),
  13453. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13456. msm_routing_put_audio_mixer),
  13457. };
  13458. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13459. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_INT_FM_TX,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_AFE_PCM_TX,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_USB_TX,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_MI2S_TX,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_AUXPCM_TX,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13594. msm_routing_get_audio_mixer,
  13595. msm_routing_put_audio_mixer),
  13596. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13598. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13599. msm_routing_get_audio_mixer,
  13600. msm_routing_put_audio_mixer),
  13601. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13604. msm_routing_get_audio_mixer,
  13605. msm_routing_put_audio_mixer),
  13606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13608. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13609. msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13614. msm_routing_get_audio_mixer,
  13615. msm_routing_put_audio_mixer),
  13616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13618. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13619. msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13624. msm_routing_put_audio_mixer),
  13625. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. };
  13638. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13639. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13641. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13642. msm_routing_put_audio_mixer),
  13643. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13645. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13646. msm_routing_put_audio_mixer),
  13647. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13649. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13650. msm_routing_put_audio_mixer),
  13651. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13653. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13654. msm_routing_put_audio_mixer),
  13655. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_INT_FM_TX,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_AFE_PCM_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13710. msm_routing_get_audio_mixer,
  13711. msm_routing_put_audio_mixer),
  13712. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13714. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13715. msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13719. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13720. msm_routing_get_audio_mixer,
  13721. msm_routing_put_audio_mixer),
  13722. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13724. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13725. msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13730. msm_routing_get_audio_mixer,
  13731. msm_routing_put_audio_mixer),
  13732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13734. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13735. msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13740. msm_routing_put_audio_mixer),
  13741. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13743. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13744. msm_routing_put_audio_mixer),
  13745. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13747. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13748. msm_routing_put_audio_mixer),
  13749. };
  13750. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13751. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13754. msm_routing_put_audio_mixer),
  13755. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13757. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13758. msm_routing_put_audio_mixer),
  13759. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13761. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13762. msm_routing_put_audio_mixer),
  13763. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13765. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13766. msm_routing_put_audio_mixer),
  13767. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13769. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13770. msm_routing_put_audio_mixer),
  13771. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_INT_FM_TX,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_AFE_PCM_TX,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13809. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13810. msm_routing_put_audio_mixer),
  13811. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13826. msm_routing_get_audio_mixer,
  13827. msm_routing_put_audio_mixer),
  13828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13830. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13831. msm_routing_get_audio_mixer,
  13832. msm_routing_put_audio_mixer),
  13833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13835. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13836. msm_routing_get_audio_mixer,
  13837. msm_routing_put_audio_mixer),
  13838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13840. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13841. msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13846. msm_routing_get_audio_mixer,
  13847. msm_routing_put_audio_mixer),
  13848. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13850. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13851. msm_routing_get_audio_mixer,
  13852. msm_routing_put_audio_mixer),
  13853. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13855. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13856. msm_routing_put_audio_mixer),
  13857. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13859. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13860. msm_routing_put_audio_mixer),
  13861. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13863. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13864. msm_routing_put_audio_mixer),
  13865. };
  13866. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13867. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13881. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13882. msm_routing_put_audio_mixer),
  13883. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_INT_FM_TX,
  13885. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13886. msm_routing_put_audio_mixer),
  13887. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_AFE_PCM_TX,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13941. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13942. msm_routing_get_audio_mixer,
  13943. msm_routing_put_audio_mixer),
  13944. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13945. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13946. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13947. msm_routing_get_audio_mixer,
  13948. msm_routing_put_audio_mixer),
  13949. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13950. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13951. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13952. msm_routing_get_audio_mixer,
  13953. msm_routing_put_audio_mixer),
  13954. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13955. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13956. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13957. msm_routing_get_audio_mixer,
  13958. msm_routing_put_audio_mixer),
  13959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13961. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13962. msm_routing_get_audio_mixer,
  13963. msm_routing_put_audio_mixer),
  13964. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13966. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13967. msm_routing_get_audio_mixer,
  13968. msm_routing_put_audio_mixer),
  13969. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13971. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13972. msm_routing_put_audio_mixer),
  13973. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13975. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13976. msm_routing_put_audio_mixer),
  13977. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13979. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13980. msm_routing_put_audio_mixer),
  13981. };
  13982. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13983. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13989. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13990. msm_routing_put_audio_mixer),
  13991. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13992. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13993. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13994. msm_routing_put_audio_mixer),
  13995. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13996. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13997. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13998. msm_routing_put_audio_mixer),
  13999. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14000. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14001. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14002. msm_routing_put_audio_mixer),
  14003. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14004. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14005. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14006. msm_routing_put_audio_mixer),
  14007. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14008. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14009. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14010. msm_routing_put_audio_mixer),
  14011. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14012. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14013. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14014. msm_routing_put_audio_mixer),
  14015. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14016. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14017. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14018. msm_routing_put_audio_mixer),
  14019. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14021. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14022. msm_routing_put_audio_mixer),
  14023. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14025. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14026. msm_routing_put_audio_mixer),
  14027. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14028. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14029. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14030. msm_routing_put_audio_mixer),
  14031. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14032. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14033. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14034. msm_routing_put_audio_mixer),
  14035. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14037. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14038. msm_routing_put_audio_mixer),
  14039. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14041. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14042. msm_routing_put_audio_mixer),
  14043. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14045. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14046. msm_routing_put_audio_mixer),
  14047. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14049. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14050. msm_routing_put_audio_mixer),
  14051. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14052. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14053. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14054. msm_routing_put_audio_mixer),
  14055. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14056. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14057. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14058. msm_routing_put_audio_mixer),
  14059. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14061. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14062. msm_routing_put_audio_mixer),
  14063. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14065. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14070. msm_routing_put_audio_mixer),
  14071. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14073. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14074. msm_routing_put_audio_mixer),
  14075. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14077. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14078. msm_routing_put_audio_mixer),
  14079. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14081. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14082. msm_routing_put_audio_mixer),
  14083. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14085. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14090. msm_routing_put_audio_mixer),
  14091. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14093. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14101. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14102. msm_routing_put_audio_mixer),
  14103. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14105. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14106. msm_routing_put_audio_mixer),
  14107. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14108. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14109. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14110. msm_routing_put_audio_mixer),
  14111. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14113. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14114. msm_routing_put_audio_mixer),
  14115. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14117. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14118. msm_routing_put_audio_mixer),
  14119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14121. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14122. msm_routing_put_audio_mixer),
  14123. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14133. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14134. msm_routing_put_audio_mixer),
  14135. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14137. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14138. msm_routing_put_audio_mixer),
  14139. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14141. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14142. msm_routing_put_audio_mixer),
  14143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14145. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14146. msm_routing_put_audio_mixer),
  14147. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14149. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14150. msm_routing_put_audio_mixer),
  14151. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. };
  14164. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14165. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_AUXPCM_TX,
  14167. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14168. msm_routing_put_audio_mixer),
  14169. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14171. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14172. msm_routing_put_audio_mixer),
  14173. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14175. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14176. msm_routing_put_audio_mixer),
  14177. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14179. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14180. msm_routing_put_audio_mixer),
  14181. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14183. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14184. msm_routing_put_audio_mixer),
  14185. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14187. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14188. msm_routing_put_audio_mixer),
  14189. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14191. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14192. msm_routing_put_audio_mixer),
  14193. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14195. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14196. msm_routing_put_audio_mixer),
  14197. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14199. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14200. msm_routing_put_audio_mixer),
  14201. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14263. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14264. msm_routing_put_audio_mixer),
  14265. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14267. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14268. msm_routing_put_audio_mixer),
  14269. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14271. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14272. msm_routing_put_audio_mixer),
  14273. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14276. msm_routing_put_audio_mixer),
  14277. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14279. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14280. msm_routing_put_audio_mixer),
  14281. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14283. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14284. msm_routing_put_audio_mixer),
  14285. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14287. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14288. msm_routing_put_audio_mixer),
  14289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14291. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14292. msm_routing_put_audio_mixer),
  14293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14295. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14296. msm_routing_put_audio_mixer),
  14297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14299. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14300. msm_routing_put_audio_mixer),
  14301. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14303. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14304. msm_routing_put_audio_mixer),
  14305. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14307. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14308. msm_routing_put_audio_mixer),
  14309. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14311. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14312. msm_routing_put_audio_mixer),
  14313. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14315. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14316. msm_routing_put_audio_mixer),
  14317. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14319. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14320. msm_routing_put_audio_mixer),
  14321. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14322. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14323. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14324. msm_routing_put_audio_mixer),
  14325. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14327. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14328. msm_routing_put_audio_mixer),
  14329. };
  14330. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14331. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14333. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14334. msm_routing_put_audio_mixer),
  14335. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14337. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14338. msm_routing_put_audio_mixer),
  14339. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14341. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14342. msm_routing_put_audio_mixer),
  14343. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14344. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14345. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14346. msm_routing_put_audio_mixer),
  14347. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14348. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14349. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14350. msm_routing_put_audio_mixer),
  14351. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14353. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14354. msm_routing_put_audio_mixer),
  14355. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14357. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14358. msm_routing_put_audio_mixer),
  14359. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14361. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14362. msm_routing_put_audio_mixer),
  14363. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14365. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14366. msm_routing_put_audio_mixer),
  14367. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14369. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14370. msm_routing_put_audio_mixer),
  14371. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14373. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14374. msm_routing_put_audio_mixer),
  14375. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14377. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14378. msm_routing_put_audio_mixer),
  14379. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14381. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14382. msm_routing_put_audio_mixer),
  14383. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14385. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14386. msm_routing_put_audio_mixer),
  14387. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14389. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14390. msm_routing_put_audio_mixer),
  14391. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14393. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14394. msm_routing_put_audio_mixer),
  14395. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14397. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14398. msm_routing_put_audio_mixer),
  14399. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14401. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14402. msm_routing_put_audio_mixer),
  14403. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14405. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14410. msm_routing_put_audio_mixer),
  14411. };
  14412. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14413. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14414. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14415. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14416. msm_routing_put_audio_mixer),
  14417. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14419. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14420. msm_routing_put_audio_mixer),
  14421. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14423. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14424. msm_routing_put_audio_mixer),
  14425. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14427. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14428. msm_routing_put_audio_mixer),
  14429. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14431. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14432. msm_routing_put_audio_mixer),
  14433. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14434. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14435. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14436. msm_routing_put_audio_mixer),
  14437. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14439. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14440. msm_routing_put_audio_mixer),
  14441. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14443. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14448. msm_routing_put_audio_mixer),
  14449. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14451. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14452. msm_routing_put_audio_mixer),
  14453. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14455. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14456. msm_routing_put_audio_mixer),
  14457. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14468. msm_routing_put_audio_mixer),
  14469. };
  14470. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14471. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14473. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14474. msm_routing_put_audio_mixer),
  14475. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14477. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14478. msm_routing_put_audio_mixer),
  14479. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14481. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14482. msm_routing_put_audio_mixer),
  14483. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14484. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14485. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14486. msm_routing_put_audio_mixer),
  14487. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_INT_FM_TX,
  14489. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14490. msm_routing_put_audio_mixer),
  14491. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14493. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14494. msm_routing_put_audio_mixer),
  14495. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_AFE_PCM_TX,
  14497. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14498. msm_routing_put_audio_mixer),
  14499. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14501. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14502. msm_routing_put_audio_mixer),
  14503. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14504. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14505. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14506. msm_routing_put_audio_mixer),
  14507. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14509. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14510. msm_routing_put_audio_mixer),
  14511. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14513. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14514. msm_routing_put_audio_mixer),
  14515. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14517. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14518. msm_routing_put_audio_mixer),
  14519. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14521. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14522. msm_routing_put_audio_mixer),
  14523. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14526. msm_routing_put_audio_mixer),
  14527. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14529. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14530. msm_routing_put_audio_mixer),
  14531. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14533. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14534. msm_routing_put_audio_mixer),
  14535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14537. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14546. msm_routing_get_audio_mixer,
  14547. msm_routing_put_audio_mixer),
  14548. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14549. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14550. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14551. msm_routing_get_audio_mixer,
  14552. msm_routing_put_audio_mixer),
  14553. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14555. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14556. msm_routing_get_audio_mixer,
  14557. msm_routing_put_audio_mixer),
  14558. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14559. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14560. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14561. msm_routing_get_audio_mixer,
  14562. msm_routing_put_audio_mixer),
  14563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14565. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14566. msm_routing_get_audio_mixer,
  14567. msm_routing_put_audio_mixer),
  14568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14570. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14571. msm_routing_get_audio_mixer,
  14572. msm_routing_put_audio_mixer),
  14573. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14575. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14576. msm_routing_put_audio_mixer),
  14577. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14578. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14579. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14580. msm_routing_put_audio_mixer),
  14581. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14583. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14584. msm_routing_put_audio_mixer),
  14585. };
  14586. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14587. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14589. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14590. msm_routing_put_audio_mixer),
  14591. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14593. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14594. msm_routing_put_audio_mixer),
  14595. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14597. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14598. msm_routing_put_audio_mixer),
  14599. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14601. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14602. msm_routing_put_audio_mixer),
  14603. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_INT_FM_TX,
  14605. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14610. msm_routing_put_audio_mixer),
  14611. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_AFE_PCM_TX,
  14613. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14614. msm_routing_put_audio_mixer),
  14615. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14617. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14618. msm_routing_put_audio_mixer),
  14619. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14620. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14621. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14622. msm_routing_put_audio_mixer),
  14623. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14625. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14626. msm_routing_put_audio_mixer),
  14627. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14629. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14630. msm_routing_put_audio_mixer),
  14631. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14633. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14634. msm_routing_put_audio_mixer),
  14635. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14637. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14638. msm_routing_put_audio_mixer),
  14639. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14641. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14642. msm_routing_put_audio_mixer),
  14643. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14645. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14646. msm_routing_put_audio_mixer),
  14647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14649. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14650. msm_routing_put_audio_mixer),
  14651. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14653. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14654. msm_routing_put_audio_mixer),
  14655. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14657. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14658. msm_routing_put_audio_mixer),
  14659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14661. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14662. msm_routing_get_audio_mixer,
  14663. msm_routing_put_audio_mixer),
  14664. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14666. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14667. msm_routing_get_audio_mixer,
  14668. msm_routing_put_audio_mixer),
  14669. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14671. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14672. msm_routing_get_audio_mixer,
  14673. msm_routing_put_audio_mixer),
  14674. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14675. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14676. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14677. msm_routing_get_audio_mixer,
  14678. msm_routing_put_audio_mixer),
  14679. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14681. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14682. msm_routing_get_audio_mixer,
  14683. msm_routing_put_audio_mixer),
  14684. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14686. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14687. msm_routing_get_audio_mixer,
  14688. msm_routing_put_audio_mixer),
  14689. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14691. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14692. msm_routing_put_audio_mixer),
  14693. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14695. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14696. msm_routing_put_audio_mixer),
  14697. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14699. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14700. msm_routing_put_audio_mixer),
  14701. };
  14702. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14703. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14705. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14706. msm_routing_put_audio_mixer),
  14707. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14709. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14710. msm_routing_put_audio_mixer),
  14711. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14712. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14713. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14714. msm_routing_put_audio_mixer),
  14715. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14717. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14718. msm_routing_put_audio_mixer),
  14719. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_INT_FM_TX,
  14721. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14722. msm_routing_put_audio_mixer),
  14723. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14725. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14726. msm_routing_put_audio_mixer),
  14727. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_AFE_PCM_TX,
  14729. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14730. msm_routing_put_audio_mixer),
  14731. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14733. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14734. msm_routing_put_audio_mixer),
  14735. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14737. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14738. msm_routing_put_audio_mixer),
  14739. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14741. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14742. msm_routing_put_audio_mixer),
  14743. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14745. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14746. msm_routing_put_audio_mixer),
  14747. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14749. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14750. msm_routing_put_audio_mixer),
  14751. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14753. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14754. msm_routing_put_audio_mixer),
  14755. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14757. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14758. msm_routing_put_audio_mixer),
  14759. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14760. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14761. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14762. msm_routing_put_audio_mixer),
  14763. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14764. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14765. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14766. msm_routing_put_audio_mixer),
  14767. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14768. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14769. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14770. msm_routing_put_audio_mixer),
  14771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14773. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14774. msm_routing_get_audio_mixer,
  14775. msm_routing_put_audio_mixer),
  14776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14778. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14779. msm_routing_get_audio_mixer,
  14780. msm_routing_put_audio_mixer),
  14781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14783. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14784. msm_routing_get_audio_mixer,
  14785. msm_routing_put_audio_mixer),
  14786. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14787. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14788. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14789. msm_routing_get_audio_mixer,
  14790. msm_routing_put_audio_mixer),
  14791. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14793. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14794. msm_routing_get_audio_mixer,
  14795. msm_routing_put_audio_mixer),
  14796. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14798. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14799. msm_routing_get_audio_mixer,
  14800. msm_routing_put_audio_mixer),
  14801. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14803. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14804. msm_routing_put_audio_mixer),
  14805. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14807. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14808. msm_routing_put_audio_mixer),
  14809. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14811. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14812. msm_routing_put_audio_mixer),
  14813. };
  14814. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14815. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_PRI_I2S_RX,
  14817. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14818. msm_routing_put_voice_mixer),
  14819. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_PRI_I2S_RX,
  14821. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14822. msm_routing_put_voice_mixer),
  14823. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_PRI_I2S_RX,
  14825. MSM_FRONTEND_DAI_VOICEMMODE2, 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_PRI_I2S_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_PRI_I2S_RX,
  14833. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14834. msm_routing_put_voice_mixer),
  14835. };
  14836. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14837. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_SEC_I2S_RX,
  14839. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14840. msm_routing_put_voice_mixer),
  14841. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14842. MSM_BACKEND_DAI_SEC_I2S_RX,
  14843. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14844. msm_routing_put_voice_mixer),
  14845. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_SEC_I2S_RX,
  14847. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14848. msm_routing_put_voice_mixer),
  14849. };
  14850. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14851. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14852. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14853. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14854. msm_routing_put_voice_mixer),
  14855. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14857. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14858. msm_routing_put_voice_mixer),
  14859. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14860. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14861. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14862. msm_routing_put_voice_mixer),
  14863. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14864. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14865. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14866. msm_routing_put_voice_mixer),
  14867. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14869. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14870. msm_routing_put_voice_mixer),
  14871. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14872. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14873. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14874. msm_routing_put_voice_mixer),
  14875. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14877. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14878. msm_routing_put_voice_mixer),
  14879. };
  14880. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14881. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14883. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14884. msm_routing_put_voice_mixer),
  14885. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14887. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14888. msm_routing_put_voice_mixer),
  14889. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14891. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14892. msm_routing_put_voice_mixer),
  14893. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14895. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14896. msm_routing_put_voice_mixer),
  14897. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14899. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14900. msm_routing_put_voice_mixer),
  14901. };
  14902. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14903. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14905. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14906. msm_routing_put_voice_mixer),
  14907. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14909. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14910. msm_routing_put_voice_mixer),
  14911. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14913. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14914. msm_routing_put_voice_mixer),
  14915. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14917. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14918. msm_routing_put_voice_mixer),
  14919. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14921. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14922. msm_routing_put_voice_mixer),
  14923. };
  14924. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14925. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_USB_RX,
  14927. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14928. msm_routing_put_voice_mixer),
  14929. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_USB_RX,
  14931. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14932. msm_routing_put_voice_mixer),
  14933. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_USB_RX,
  14935. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14936. msm_routing_put_voice_mixer),
  14937. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14938. MSM_BACKEND_DAI_USB_RX,
  14939. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14940. msm_routing_put_voice_mixer),
  14941. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14942. MSM_BACKEND_DAI_USB_RX,
  14943. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14944. msm_routing_put_voice_mixer),
  14945. };
  14946. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14947. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14949. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14950. msm_routing_put_voice_mixer),
  14951. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14953. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14954. msm_routing_put_voice_mixer),
  14955. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14957. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14958. msm_routing_put_voice_mixer),
  14959. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14961. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14962. msm_routing_put_voice_mixer),
  14963. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14965. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14966. msm_routing_put_voice_mixer),
  14967. };
  14968. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14969. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14971. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14972. msm_routing_put_voice_mixer),
  14973. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14975. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14976. msm_routing_put_voice_mixer),
  14977. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14979. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14980. msm_routing_put_voice_mixer),
  14981. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14983. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14984. msm_routing_put_voice_mixer),
  14985. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14987. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14988. msm_routing_put_voice_mixer),
  14989. };
  14990. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14991. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14993. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14994. msm_routing_put_voice_mixer),
  14995. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14997. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14998. msm_routing_put_voice_mixer),
  14999. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15001. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15002. msm_routing_put_voice_mixer),
  15003. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15005. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15006. msm_routing_put_voice_mixer),
  15007. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15009. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15010. msm_routing_put_voice_mixer),
  15011. };
  15012. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15013. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_MI2S_RX,
  15015. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15016. msm_routing_put_voice_mixer),
  15017. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_MI2S_RX,
  15019. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15020. msm_routing_put_voice_mixer),
  15021. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_MI2S_RX,
  15023. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15024. msm_routing_put_voice_mixer),
  15025. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_MI2S_RX,
  15027. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15028. msm_routing_put_voice_mixer),
  15029. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_MI2S_RX,
  15031. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15032. msm_routing_put_voice_mixer),
  15033. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_MI2S_RX,
  15035. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15036. msm_routing_put_voice_mixer),
  15037. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15038. MSM_BACKEND_DAI_MI2S_RX,
  15039. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15040. msm_routing_put_voice_mixer),
  15041. };
  15042. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15043. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15045. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15046. msm_routing_put_voice_mixer),
  15047. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15049. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15050. msm_routing_put_voice_mixer),
  15051. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15053. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15054. msm_routing_put_voice_mixer),
  15055. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15057. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15058. msm_routing_put_voice_mixer),
  15059. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15061. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15062. msm_routing_put_voice_mixer),
  15063. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15065. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15066. msm_routing_put_voice_mixer),
  15067. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15069. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15070. msm_routing_put_voice_mixer),
  15071. };
  15072. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15073. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15074. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15075. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15076. msm_routing_put_voice_mixer),
  15077. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15079. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15080. msm_routing_put_voice_mixer),
  15081. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15083. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15084. msm_routing_put_voice_mixer),
  15085. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15086. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15087. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15088. msm_routing_put_voice_mixer),
  15089. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15091. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15092. msm_routing_put_voice_mixer),
  15093. };
  15094. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15095. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15097. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15098. msm_routing_put_voice_mixer),
  15099. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15101. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15102. msm_routing_put_voice_mixer),
  15103. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15105. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15106. msm_routing_put_voice_mixer),
  15107. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15109. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15110. msm_routing_put_voice_mixer),
  15111. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15113. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15114. msm_routing_put_voice_mixer),
  15115. };
  15116. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15117. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15119. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15120. msm_routing_put_voice_mixer),
  15121. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15123. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15124. msm_routing_put_voice_mixer),
  15125. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15127. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15128. msm_routing_put_voice_mixer),
  15129. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15131. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15132. msm_routing_put_voice_mixer),
  15133. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15135. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15136. msm_routing_put_voice_mixer),
  15137. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15139. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15140. msm_routing_put_voice_mixer),
  15141. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15143. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15144. msm_routing_put_voice_mixer),
  15145. };
  15146. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15147. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15148. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15149. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15150. msm_routing_put_voice_mixer),
  15151. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15152. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15153. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15154. msm_routing_put_voice_mixer),
  15155. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15157. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15158. msm_routing_put_voice_mixer),
  15159. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15161. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15162. msm_routing_put_voice_mixer),
  15163. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15165. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15166. msm_routing_put_voice_mixer),
  15167. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15169. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15170. msm_routing_put_voice_mixer),
  15171. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15173. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15174. msm_routing_put_voice_mixer),
  15175. };
  15176. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15177. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15179. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15180. msm_routing_put_voice_mixer),
  15181. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15183. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15184. msm_routing_put_voice_stub_mixer),
  15185. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15187. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15188. msm_routing_put_voice_stub_mixer),
  15189. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15190. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15191. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15192. msm_routing_put_voice_mixer),
  15193. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15195. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15196. msm_routing_put_voice_mixer),
  15197. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15198. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15199. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15200. msm_routing_put_voice_mixer),
  15201. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15203. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15204. msm_routing_put_voice_mixer),
  15205. };
  15206. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15207. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15209. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15210. msm_routing_put_voice_mixer),
  15211. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15213. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15214. msm_routing_put_voice_mixer),
  15215. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15217. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15218. msm_routing_put_voice_mixer),
  15219. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15221. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15222. msm_routing_put_voice_mixer),
  15223. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15225. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15226. msm_routing_put_voice_mixer),
  15227. };
  15228. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15229. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_AFE_PCM_RX,
  15231. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15232. msm_routing_put_voice_mixer),
  15233. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_AFE_PCM_RX,
  15235. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15236. msm_routing_put_voice_mixer),
  15237. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_AFE_PCM_RX,
  15239. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15240. msm_routing_put_voice_mixer),
  15241. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_AFE_PCM_RX,
  15243. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15244. msm_routing_put_voice_mixer),
  15245. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_AFE_PCM_RX,
  15247. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15248. msm_routing_put_voice_mixer),
  15249. };
  15250. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15251. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_AUXPCM_RX,
  15253. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15254. msm_routing_put_voice_mixer),
  15255. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_AUXPCM_RX,
  15257. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15258. msm_routing_put_voice_mixer),
  15259. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_AUXPCM_RX,
  15261. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15262. msm_routing_put_voice_mixer),
  15263. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_AUXPCM_RX,
  15265. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15266. msm_routing_put_voice_mixer),
  15267. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_AUXPCM_RX,
  15269. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15270. msm_routing_put_voice_mixer),
  15271. };
  15272. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15273. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15275. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15276. msm_routing_put_voice_mixer),
  15277. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15279. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15280. msm_routing_put_voice_mixer),
  15281. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15283. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15284. msm_routing_put_voice_mixer),
  15285. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15287. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15288. msm_routing_put_voice_mixer),
  15289. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15291. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15292. msm_routing_put_voice_mixer),
  15293. };
  15294. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15295. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15297. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15298. msm_routing_put_voice_mixer),
  15299. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15300. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15301. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15302. msm_routing_put_voice_mixer),
  15303. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15305. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15306. msm_routing_put_voice_mixer),
  15307. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15309. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15310. msm_routing_put_voice_mixer),
  15311. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15313. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15314. msm_routing_put_voice_mixer),
  15315. };
  15316. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15317. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15319. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15320. msm_routing_put_voice_mixer),
  15321. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15323. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15324. msm_routing_put_voice_mixer),
  15325. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15327. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15328. msm_routing_put_voice_mixer),
  15329. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15331. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15332. msm_routing_put_voice_mixer),
  15333. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15335. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15336. msm_routing_put_voice_mixer),
  15337. };
  15338. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15339. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15341. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15342. msm_routing_put_voice_mixer),
  15343. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15345. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15346. msm_routing_put_voice_mixer),
  15347. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15349. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15350. msm_routing_put_voice_mixer),
  15351. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15353. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15354. msm_routing_put_voice_mixer),
  15355. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15357. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15358. msm_routing_put_voice_mixer),
  15359. };
  15360. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15361. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15362. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15363. msm_routing_put_voice_mixer),
  15364. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15365. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15366. msm_routing_put_voice_mixer),
  15367. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15368. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15369. msm_routing_put_voice_mixer),
  15370. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15371. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15372. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15373. msm_routing_put_voice_mixer),
  15374. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15375. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15376. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15377. msm_routing_put_voice_mixer),
  15378. };
  15379. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15380. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_HDMI_RX,
  15382. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15383. msm_routing_put_voice_mixer),
  15384. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_HDMI_RX,
  15386. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15387. msm_routing_put_voice_mixer),
  15388. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_HDMI_RX,
  15390. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15391. msm_routing_put_voice_mixer),
  15392. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15393. MSM_BACKEND_DAI_HDMI_RX,
  15394. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15395. msm_routing_put_voice_mixer),
  15396. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15397. MSM_BACKEND_DAI_HDMI_RX,
  15398. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15399. msm_routing_put_voice_mixer),
  15400. };
  15401. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15402. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15404. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15405. msm_routing_put_voice_mixer),
  15406. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15408. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15409. msm_routing_put_voice_mixer),
  15410. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15412. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15413. msm_routing_put_voice_mixer),
  15414. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15416. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15417. msm_routing_put_voice_mixer),
  15418. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15420. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15421. msm_routing_put_voice_mixer),
  15422. };
  15423. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15424. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15426. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15427. msm_routing_put_voice_mixer),
  15428. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15430. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15431. msm_routing_put_voice_mixer),
  15432. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15434. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15435. msm_routing_put_voice_mixer),
  15436. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15438. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15439. msm_routing_put_voice_mixer),
  15440. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15442. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15443. msm_routing_put_voice_mixer),
  15444. };
  15445. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15446. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15447. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15448. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15449. msm_routing_put_voice_mixer),
  15450. };
  15451. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  15452. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15454. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15455. msm_routing_put_voice_mixer),
  15456. };
  15457. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15458. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15459. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15460. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15461. msm_routing_put_voice_mixer),
  15462. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15463. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15464. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15465. msm_routing_put_voice_mixer),
  15466. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15467. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15468. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15469. msm_routing_put_voice_mixer),
  15470. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15472. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15473. msm_routing_put_voice_mixer),
  15474. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15476. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15477. msm_routing_put_voice_mixer),
  15478. };
  15479. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15480. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15482. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15483. msm_routing_put_voice_mixer),
  15484. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15486. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15487. msm_routing_put_voice_mixer),
  15488. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15490. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15491. msm_routing_put_voice_mixer),
  15492. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15494. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15495. msm_routing_put_voice_mixer),
  15496. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15497. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15498. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15499. msm_routing_put_voice_mixer),
  15500. };
  15501. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15502. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15504. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15505. msm_routing_put_voice_mixer),
  15506. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15508. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15509. msm_routing_put_voice_mixer),
  15510. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15512. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15513. msm_routing_put_voice_mixer),
  15514. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15516. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15517. msm_routing_put_voice_mixer),
  15518. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15520. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15521. msm_routing_put_voice_mixer),
  15522. };
  15523. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15524. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15526. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15527. msm_routing_put_voice_mixer),
  15528. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15530. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15531. msm_routing_put_voice_mixer),
  15532. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15534. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15535. msm_routing_put_voice_mixer),
  15536. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15538. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15539. msm_routing_put_voice_mixer),
  15540. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15542. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15543. msm_routing_put_voice_mixer),
  15544. };
  15545. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15546. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15548. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15549. msm_routing_put_voice_mixer),
  15550. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15552. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15553. msm_routing_put_voice_mixer),
  15554. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15556. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15557. msm_routing_put_voice_mixer),
  15558. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15560. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15561. msm_routing_put_voice_mixer),
  15562. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15564. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15565. msm_routing_put_voice_mixer),
  15566. };
  15567. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15568. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15570. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15571. msm_routing_put_voice_mixer),
  15572. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15574. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15575. msm_routing_put_voice_mixer),
  15576. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15578. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15579. msm_routing_put_voice_mixer),
  15580. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15582. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15583. msm_routing_put_voice_mixer),
  15584. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15586. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15587. msm_routing_put_voice_mixer),
  15588. };
  15589. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15590. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15591. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15592. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15593. msm_routing_put_voice_mixer),
  15594. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15595. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15596. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15597. msm_routing_put_voice_mixer),
  15598. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15600. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15601. msm_routing_put_voice_mixer),
  15602. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15604. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15605. msm_routing_put_voice_mixer),
  15606. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15608. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15609. msm_routing_put_voice_mixer),
  15610. };
  15611. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15612. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15614. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15615. msm_routing_put_voice_mixer),
  15616. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15618. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15619. msm_routing_put_voice_mixer),
  15620. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15622. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15623. msm_routing_put_voice_mixer),
  15624. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15626. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15627. msm_routing_put_voice_mixer),
  15628. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15630. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15631. msm_routing_put_voice_mixer),
  15632. };
  15633. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15634. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15636. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15637. msm_routing_put_voice_mixer),
  15638. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15640. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15641. msm_routing_put_voice_mixer),
  15642. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15644. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15645. msm_routing_put_voice_mixer),
  15646. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15648. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15649. msm_routing_put_voice_mixer),
  15650. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15652. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15653. msm_routing_put_voice_mixer),
  15654. };
  15655. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15656. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15657. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15658. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15659. msm_routing_put_voice_mixer),
  15660. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15661. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15662. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15663. msm_routing_put_voice_mixer),
  15664. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15666. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15667. msm_routing_put_voice_mixer),
  15668. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15669. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15670. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15671. msm_routing_put_voice_mixer),
  15672. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15674. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15675. msm_routing_put_voice_mixer),
  15676. };
  15677. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15678. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15679. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15680. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15681. msm_routing_put_voice_mixer),
  15682. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15683. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15684. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15685. msm_routing_put_voice_stub_mixer),
  15686. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15688. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15689. msm_routing_put_voice_stub_mixer),
  15690. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15691. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15692. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15693. msm_routing_put_voice_mixer),
  15694. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15696. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15697. msm_routing_put_voice_mixer),
  15698. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15700. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15701. msm_routing_put_voice_mixer),
  15702. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15704. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15705. msm_routing_put_voice_mixer),
  15706. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15708. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15709. msm_routing_put_voice_mixer),
  15710. };
  15711. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15712. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15713. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15714. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15715. msm_routing_put_voice_mixer),
  15716. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15718. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15719. msm_routing_put_voice_stub_mixer),
  15720. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15721. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15722. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15723. msm_routing_put_voice_stub_mixer),
  15724. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15726. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15727. msm_routing_put_voice_mixer),
  15728. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15730. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15731. msm_routing_put_voice_mixer),
  15732. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15734. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15735. msm_routing_put_voice_mixer),
  15736. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15738. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15739. msm_routing_put_voice_mixer),
  15740. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15741. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15742. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15743. msm_routing_put_voice_mixer),
  15744. };
  15745. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15746. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15748. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15749. msm_routing_put_voice_mixer),
  15750. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15752. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15753. msm_routing_put_voice_stub_mixer),
  15754. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15756. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15757. msm_routing_put_voice_stub_mixer),
  15758. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15760. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15761. msm_routing_put_voice_mixer),
  15762. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15764. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15765. msm_routing_put_voice_mixer),
  15766. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15767. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15768. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15769. msm_routing_put_voice_mixer),
  15770. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15771. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15772. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15773. msm_routing_put_voice_mixer),
  15774. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15775. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15776. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15777. msm_routing_put_voice_mixer),
  15778. };
  15779. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15780. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15782. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15783. msm_routing_put_voice_mixer),
  15784. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15786. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15787. msm_routing_put_voice_stub_mixer),
  15788. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15790. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15791. msm_routing_put_voice_stub_mixer),
  15792. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15794. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15795. msm_routing_put_voice_mixer),
  15796. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15798. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15799. msm_routing_put_voice_mixer),
  15800. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15801. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15802. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15803. msm_routing_put_voice_mixer),
  15804. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15805. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15806. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15807. msm_routing_put_voice_mixer),
  15808. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15809. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15810. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15811. msm_routing_put_voice_mixer),
  15812. };
  15813. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15814. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_EXTPROC_RX,
  15816. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15817. msm_routing_put_voice_mixer),
  15818. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_EXTPROC_RX,
  15820. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15821. msm_routing_put_voice_mixer),
  15822. };
  15823. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15824. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15826. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15827. msm_routing_put_voice_mixer),
  15828. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15830. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15831. msm_routing_put_voice_mixer),
  15832. };
  15833. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15834. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15836. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15837. msm_routing_put_voice_mixer),
  15838. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15840. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15841. msm_routing_put_voice_mixer),
  15842. };
  15843. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15844. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_PRI_I2S_TX,
  15846. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15847. msm_routing_put_voice_mixer),
  15848. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15849. MSM_BACKEND_DAI_MI2S_TX,
  15850. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15851. msm_routing_put_voice_mixer),
  15852. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15854. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15855. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15856. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15857. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15860. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15861. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15862. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15863. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15864. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15865. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15866. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15867. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15868. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15869. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15870. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15872. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15873. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15875. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15876. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15877. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15878. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15879. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15880. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15881. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15882. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15884. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15885. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15886. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15887. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15888. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15889. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15890. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15891. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15892. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15893. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15894. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15896. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15897. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15898. MSM_BACKEND_DAI_USB_TX,
  15899. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15900. msm_routing_put_voice_mixer),
  15901. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15902. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15903. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15904. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15905. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15906. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15909. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15910. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15912. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15913. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15914. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15915. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15916. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15917. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15918. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15919. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15921. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15922. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15924. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15925. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15927. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15928. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15930. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15931. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15932. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15933. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15934. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15935. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15936. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15937. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15938. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15939. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15940. };
  15941. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15942. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_PRI_I2S_TX,
  15944. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15945. msm_routing_put_voice_mixer),
  15946. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15947. MSM_BACKEND_DAI_MI2S_TX,
  15948. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15949. msm_routing_put_voice_mixer),
  15950. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15952. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15953. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15954. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15955. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15956. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15957. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15958. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15959. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15960. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15961. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15962. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15964. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15965. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15967. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15968. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15969. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15970. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15971. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15972. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15973. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15974. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15976. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15977. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15979. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15980. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15982. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15983. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15985. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15986. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15988. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15989. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15990. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15991. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15992. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15994. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15995. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15997. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15998. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16000. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16001. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16002. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16003. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16004. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16005. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16006. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16009. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16010. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16012. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16013. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16015. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16016. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16017. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16018. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16019. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16020. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16021. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16024. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16025. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16027. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16028. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16030. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16031. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16032. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16033. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16034. };
  16035. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16036. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_PRI_I2S_TX,
  16038. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16039. msm_routing_put_voice_mixer),
  16040. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_MI2S_TX,
  16042. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16043. msm_routing_put_voice_mixer),
  16044. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16046. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16047. msm_routing_put_voice_mixer),
  16048. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16051. msm_routing_put_voice_mixer),
  16052. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_AFE_PCM_TX,
  16054. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16055. msm_routing_put_voice_mixer),
  16056. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_AUXPCM_TX,
  16058. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16059. msm_routing_put_voice_mixer),
  16060. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16062. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16063. msm_routing_put_voice_mixer),
  16064. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16066. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16067. msm_routing_put_voice_mixer),
  16068. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16070. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16071. msm_routing_put_voice_mixer),
  16072. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16074. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16075. msm_routing_put_voice_mixer),
  16076. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16078. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16079. msm_routing_put_voice_mixer),
  16080. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16082. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16083. msm_routing_put_voice_mixer),
  16084. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16087. msm_routing_put_voice_mixer),
  16088. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16090. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16091. msm_routing_put_voice_mixer),
  16092. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16094. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16095. msm_routing_put_voice_mixer),
  16096. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16098. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16099. msm_routing_put_voice_mixer),
  16100. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16102. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16103. msm_routing_put_voice_mixer),
  16104. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_USB_TX,
  16106. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16107. msm_routing_put_voice_mixer),
  16108. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16110. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16111. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16112. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16113. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16114. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16116. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16117. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16118. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16119. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16120. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16122. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16123. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16124. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16125. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16126. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16127. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16128. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16131. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16132. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16134. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16135. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16136. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16137. msm_routing_put_voice_mixer),
  16138. };
  16139. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16140. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_EXTPROC_TX,
  16142. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16143. msm_routing_put_voice_stub_mixer),
  16144. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16145. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16146. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16147. msm_routing_put_voice_stub_mixer),
  16148. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16149. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16151. msm_routing_put_voice_stub_mixer),
  16152. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16153. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16154. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16155. msm_routing_put_voice_stub_mixer),
  16156. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16157. MSM_BACKEND_DAI_MI2S_TX,
  16158. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16159. msm_routing_put_voice_stub_mixer),
  16160. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16161. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16162. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16163. msm_routing_put_voice_stub_mixer),
  16164. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16165. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16166. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16167. msm_routing_put_voice_stub_mixer),
  16168. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16169. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16170. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16171. msm_routing_put_voice_stub_mixer),
  16172. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16173. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16174. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16175. msm_routing_put_voice_stub_mixer),
  16176. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16177. MSM_BACKEND_DAI_AUXPCM_TX,
  16178. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16179. msm_routing_put_voice_stub_mixer),
  16180. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16182. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16183. msm_routing_put_voice_stub_mixer),
  16184. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16185. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16186. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16187. msm_routing_put_voice_stub_mixer),
  16188. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16189. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16190. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16191. msm_routing_put_voice_stub_mixer),
  16192. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16194. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16195. msm_routing_put_voice_stub_mixer),
  16196. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16197. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16198. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16199. msm_routing_put_voice_stub_mixer),
  16200. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16201. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16202. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16203. msm_routing_put_voice_stub_mixer),
  16204. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16206. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16207. msm_routing_put_voice_stub_mixer),
  16208. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16209. MSM_BACKEND_DAI_AFE_PCM_TX,
  16210. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16211. msm_routing_put_voice_stub_mixer),
  16212. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16213. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16214. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16215. msm_routing_put_voice_stub_mixer),
  16216. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16218. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16219. msm_routing_put_voice_stub_mixer),
  16220. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16221. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16222. 1, 0, msm_routing_get_voice_stub_mixer,
  16223. msm_routing_put_voice_stub_mixer),
  16224. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16225. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_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_2", SND_SOC_NOPM,
  16229. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16230. 1, 0, msm_routing_get_voice_stub_mixer,
  16231. msm_routing_put_voice_stub_mixer),
  16232. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16233. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_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_1", SND_SOC_NOPM,
  16237. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_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_2", SND_SOC_NOPM,
  16241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_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_3", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_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_4", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_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_5", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16254. 1, 0, msm_routing_get_voice_stub_mixer,
  16255. msm_routing_put_voice_stub_mixer),
  16256. };
  16257. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16258. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16259. MSM_BACKEND_DAI_EXTPROC_TX,
  16260. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16261. msm_routing_put_voice_stub_mixer),
  16262. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16263. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16264. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16265. msm_routing_put_voice_stub_mixer),
  16266. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16267. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16268. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16269. msm_routing_put_voice_stub_mixer),
  16270. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16271. MSM_BACKEND_DAI_AUXPCM_TX,
  16272. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16273. msm_routing_put_voice_stub_mixer),
  16274. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16275. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16276. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16277. msm_routing_put_voice_stub_mixer),
  16278. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16279. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16280. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16281. msm_routing_put_voice_stub_mixer),
  16282. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16283. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16284. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16285. msm_routing_put_voice_stub_mixer),
  16286. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16288. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16289. msm_routing_put_voice_stub_mixer),
  16290. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16291. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16292. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16293. msm_routing_put_voice_stub_mixer),
  16294. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16295. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16296. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16297. msm_routing_put_voice_stub_mixer),
  16298. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16299. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16300. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16301. msm_routing_put_voice_stub_mixer),
  16302. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16303. MSM_BACKEND_DAI_AFE_PCM_TX,
  16304. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16305. msm_routing_put_voice_stub_mixer),
  16306. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16308. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16309. msm_routing_put_voice_stub_mixer),
  16310. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16312. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16313. msm_routing_put_voice_stub_mixer),
  16314. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16316. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16317. msm_routing_put_voice_stub_mixer),
  16318. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16319. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16320. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16321. msm_routing_put_voice_stub_mixer),
  16322. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16324. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16325. msm_routing_put_voice_stub_mixer),
  16326. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16328. 1, 0, msm_routing_get_voice_stub_mixer,
  16329. msm_routing_put_voice_stub_mixer),
  16330. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16331. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16332. 1, 0, msm_routing_get_voice_stub_mixer,
  16333. msm_routing_put_voice_stub_mixer),
  16334. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16335. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16336. 1, 0, msm_routing_get_voice_stub_mixer,
  16337. msm_routing_put_voice_stub_mixer),
  16338. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16339. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16340. 1, 0, msm_routing_get_voice_stub_mixer,
  16341. msm_routing_put_voice_stub_mixer),
  16342. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16343. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16344. 1, 0, msm_routing_get_voice_stub_mixer,
  16345. msm_routing_put_voice_stub_mixer),
  16346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16347. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16348. 1, 0, msm_routing_get_voice_stub_mixer,
  16349. msm_routing_put_voice_stub_mixer),
  16350. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16351. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16352. 1, 0, msm_routing_get_voice_stub_mixer,
  16353. msm_routing_put_voice_stub_mixer),
  16354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16356. 1, 0, msm_routing_get_voice_stub_mixer,
  16357. msm_routing_put_voice_stub_mixer),
  16358. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16360. 1, 0, msm_routing_get_voice_stub_mixer,
  16361. msm_routing_put_voice_stub_mixer),
  16362. };
  16363. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16364. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16365. MSM_BACKEND_DAI_EXTPROC_TX,
  16366. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16367. msm_routing_put_voice_stub_mixer),
  16368. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16369. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16370. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16371. msm_routing_put_voice_stub_mixer),
  16372. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16373. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16374. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16375. msm_routing_put_voice_stub_mixer),
  16376. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16377. MSM_BACKEND_DAI_AUXPCM_TX,
  16378. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16379. msm_routing_put_voice_stub_mixer),
  16380. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16381. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16382. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16383. msm_routing_put_voice_stub_mixer),
  16384. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16385. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16386. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16387. msm_routing_put_voice_stub_mixer),
  16388. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16390. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16391. msm_routing_put_voice_stub_mixer),
  16392. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16393. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16394. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16395. msm_routing_put_voice_stub_mixer),
  16396. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16398. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16399. msm_routing_put_voice_stub_mixer),
  16400. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16401. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16402. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16403. msm_routing_put_voice_stub_mixer),
  16404. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16405. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16406. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16407. msm_routing_put_voice_stub_mixer),
  16408. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16409. MSM_BACKEND_DAI_AFE_PCM_TX,
  16410. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16411. msm_routing_put_voice_stub_mixer),
  16412. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16413. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16414. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16415. msm_routing_put_voice_stub_mixer),
  16416. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16417. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16418. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16419. msm_routing_put_voice_stub_mixer),
  16420. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16421. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16422. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16423. msm_routing_put_voice_stub_mixer),
  16424. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16425. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16426. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16427. msm_routing_put_voice_stub_mixer),
  16428. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16430. 1, 0, msm_routing_get_voice_stub_mixer,
  16431. msm_routing_put_voice_stub_mixer),
  16432. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16433. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16434. 1, 0, msm_routing_get_voice_stub_mixer,
  16435. msm_routing_put_voice_stub_mixer),
  16436. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16437. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16438. 1, 0, msm_routing_get_voice_stub_mixer,
  16439. msm_routing_put_voice_stub_mixer),
  16440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16442. 1, 0, msm_routing_get_voice_stub_mixer,
  16443. msm_routing_put_voice_stub_mixer),
  16444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16446. 1, 0, msm_routing_get_voice_stub_mixer,
  16447. msm_routing_put_voice_stub_mixer),
  16448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16450. 1, 0, msm_routing_get_voice_stub_mixer,
  16451. msm_routing_put_voice_stub_mixer),
  16452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16454. 1, 0, msm_routing_get_voice_stub_mixer,
  16455. msm_routing_put_voice_stub_mixer),
  16456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16458. 1, 0, msm_routing_get_voice_stub_mixer,
  16459. msm_routing_put_voice_stub_mixer),
  16460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16462. 1, 0, msm_routing_get_voice_stub_mixer,
  16463. msm_routing_put_voice_stub_mixer),
  16464. };
  16465. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16466. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16467. MSM_BACKEND_DAI_PRI_I2S_TX,
  16468. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16469. msm_routing_put_voice_mixer),
  16470. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16472. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16473. msm_routing_put_voice_mixer),
  16474. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16475. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16476. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16477. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16478. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16479. MSM_BACKEND_DAI_AFE_PCM_TX,
  16480. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16481. msm_routing_put_voice_mixer),
  16482. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16483. MSM_BACKEND_DAI_AUXPCM_TX,
  16484. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16485. msm_routing_put_voice_mixer),
  16486. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16487. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16488. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16489. msm_routing_put_voice_mixer),
  16490. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16491. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16492. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16493. msm_routing_put_voice_mixer),
  16494. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16495. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16496. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16497. msm_routing_put_voice_mixer),
  16498. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16500. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16501. msm_routing_put_voice_mixer),
  16502. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16503. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16504. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16505. msm_routing_put_voice_mixer),
  16506. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16507. MSM_BACKEND_DAI_MI2S_TX,
  16508. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16509. msm_routing_put_voice_mixer),
  16510. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16512. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16513. msm_routing_put_voice_mixer),
  16514. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16515. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16516. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16517. msm_routing_put_voice_mixer),
  16518. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16519. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16520. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16521. msm_routing_put_voice_mixer),
  16522. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16524. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16525. msm_routing_put_voice_mixer),
  16526. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16527. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16528. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16529. msm_routing_put_voice_mixer),
  16530. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16531. MSM_BACKEND_DAI_USB_TX,
  16532. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16533. msm_routing_put_voice_mixer),
  16534. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16535. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16536. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16537. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16539. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16540. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16541. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16542. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16543. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16544. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16545. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16546. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16547. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16548. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16551. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16552. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16553. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16554. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16557. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16558. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16559. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16560. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16561. };
  16562. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16563. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16564. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16565. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16566. msm_routing_put_port_mixer),
  16567. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16568. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16569. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16570. msm_routing_put_port_mixer),
  16571. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16572. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16573. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16574. msm_routing_put_port_mixer),
  16575. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16577. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16578. msm_routing_put_port_mixer),
  16579. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16581. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16582. msm_routing_put_port_mixer),
  16583. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16585. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16586. msm_routing_put_port_mixer),
  16587. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16589. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16590. msm_routing_put_port_mixer),
  16591. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16592. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16593. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16594. msm_routing_put_port_mixer),
  16595. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16597. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16598. msm_routing_put_port_mixer),
  16599. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16601. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16602. msm_routing_put_port_mixer),
  16603. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16604. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16605. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16606. msm_routing_put_port_mixer),
  16607. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16609. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16610. msm_routing_put_port_mixer),
  16611. };
  16612. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16613. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16615. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16616. msm_routing_put_port_mixer),
  16617. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16619. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16620. msm_routing_put_port_mixer),
  16621. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16622. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16623. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16624. msm_routing_put_port_mixer),
  16625. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16627. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16628. msm_routing_put_port_mixer),
  16629. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16631. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16632. msm_routing_put_port_mixer),
  16633. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16634. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16635. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16636. msm_routing_put_port_mixer),
  16637. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16638. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16639. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16640. msm_routing_put_port_mixer),
  16641. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16642. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16643. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16644. msm_routing_put_port_mixer),
  16645. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16646. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16647. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16648. msm_routing_put_port_mixer),
  16649. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16651. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16652. msm_routing_put_port_mixer),
  16653. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16655. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16656. msm_routing_put_port_mixer),
  16657. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16659. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16660. msm_routing_put_port_mixer),
  16661. };
  16662. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16663. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16664. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16665. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16666. msm_routing_put_port_mixer),
  16667. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16669. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16670. msm_routing_put_port_mixer),
  16671. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16673. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16674. msm_routing_put_port_mixer),
  16675. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16676. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16677. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16678. msm_routing_put_port_mixer),
  16679. };
  16680. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16681. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16683. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16684. msm_routing_put_port_mixer),
  16685. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16687. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16688. msm_routing_put_port_mixer),
  16689. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16691. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16692. msm_routing_put_port_mixer),
  16693. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16695. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16696. msm_routing_put_port_mixer),
  16697. };
  16698. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16699. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16701. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16702. msm_routing_put_port_mixer),
  16703. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16704. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16705. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16706. msm_routing_put_port_mixer),
  16707. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16708. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16709. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16710. msm_routing_put_port_mixer),
  16711. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16712. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16713. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16714. msm_routing_put_port_mixer),
  16715. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16717. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16718. msm_routing_put_port_mixer),
  16719. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16720. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16721. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16722. msm_routing_put_port_mixer),
  16723. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16724. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16725. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16726. msm_routing_put_port_mixer),
  16727. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16729. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16730. msm_routing_put_port_mixer),
  16731. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16732. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16733. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16734. msm_routing_put_port_mixer),
  16735. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16737. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16738. msm_routing_put_port_mixer),
  16739. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16741. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16742. msm_routing_put_port_mixer),
  16743. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16745. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16746. msm_routing_put_port_mixer),
  16747. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16749. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16750. msm_routing_put_port_mixer),
  16751. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16753. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16754. msm_routing_put_port_mixer),
  16755. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16757. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16758. msm_routing_put_port_mixer),
  16759. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16761. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16762. msm_routing_put_port_mixer),
  16763. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16765. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16766. msm_routing_put_port_mixer),
  16767. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16769. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16770. msm_routing_put_port_mixer),
  16771. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16773. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16774. msm_routing_put_port_mixer),
  16775. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16776. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16777. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16778. msm_routing_put_port_mixer),
  16779. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16781. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16782. msm_routing_put_port_mixer),
  16783. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16784. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16785. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16786. msm_routing_put_port_mixer),
  16787. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16788. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16789. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16790. msm_routing_put_port_mixer),
  16791. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16793. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16794. msm_routing_put_port_mixer),
  16795. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16796. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16797. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16798. msm_routing_put_port_mixer),
  16799. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16801. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16802. msm_routing_put_port_mixer),
  16803. };
  16804. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16805. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16806. MSM_BACKEND_DAI_AUXPCM_RX,
  16807. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16808. msm_routing_put_port_mixer),
  16809. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16810. MSM_BACKEND_DAI_AUXPCM_RX,
  16811. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16812. msm_routing_put_port_mixer),
  16813. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_AUXPCM_RX,
  16815. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16816. msm_routing_put_port_mixer),
  16817. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_AUXPCM_RX,
  16819. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16820. msm_routing_put_port_mixer),
  16821. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_AUXPCM_RX,
  16823. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16824. msm_routing_put_port_mixer),
  16825. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_AUXPCM_RX,
  16827. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_AUXPCM_RX,
  16831. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16832. msm_routing_put_port_mixer),
  16833. };
  16834. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16835. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16836. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16837. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16838. msm_routing_put_port_mixer),
  16839. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16841. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16842. msm_routing_put_port_mixer),
  16843. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16844. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16845. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16846. msm_routing_put_port_mixer),
  16847. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16849. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. };
  16852. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16853. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16854. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16855. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16856. msm_routing_put_port_mixer),
  16857. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16859. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16860. msm_routing_put_port_mixer),
  16861. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16863. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16864. msm_routing_put_port_mixer),
  16865. };
  16866. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16867. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16869. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16873. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16874. msm_routing_put_port_mixer),
  16875. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16877. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. };
  16880. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16881. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16883. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16884. msm_routing_put_port_mixer),
  16885. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16887. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16888. msm_routing_put_port_mixer),
  16889. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16891. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16892. msm_routing_put_port_mixer),
  16893. };
  16894. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16895. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16896. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16897. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16898. msm_routing_put_port_mixer),
  16899. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16900. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16901. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16905. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16906. msm_routing_put_port_mixer),
  16907. };
  16908. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16909. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16910. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16911. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16912. msm_routing_put_port_mixer),
  16913. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16915. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16916. msm_routing_put_port_mixer),
  16917. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16918. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16919. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16920. msm_routing_put_port_mixer),
  16921. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16923. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16924. msm_routing_put_port_mixer),
  16925. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16927. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16928. msm_routing_put_port_mixer),
  16929. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16931. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. };
  16934. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16935. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16936. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16937. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16938. msm_routing_put_port_mixer),
  16939. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16940. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16941. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16942. msm_routing_put_port_mixer),
  16943. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16944. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16945. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16946. msm_routing_put_port_mixer),
  16947. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16948. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16949. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16950. msm_routing_put_port_mixer),
  16951. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16952. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16953. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16954. msm_routing_put_port_mixer),
  16955. };
  16956. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16957. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16959. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16960. msm_routing_put_port_mixer),
  16961. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16963. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16964. msm_routing_put_port_mixer),
  16965. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16967. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16968. msm_routing_put_port_mixer),
  16969. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16971. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16975. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16976. msm_routing_put_port_mixer),
  16977. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16978. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16979. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16980. msm_routing_put_port_mixer),
  16981. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16982. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16983. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16984. msm_routing_put_port_mixer),
  16985. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16987. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16988. msm_routing_put_port_mixer),
  16989. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16990. MSM_BACKEND_DAI_SLIMBUS_6_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_SLIMBUS_6_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("QUAT_MI2S_TX", SND_SOC_NOPM,
  16998. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16999. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17000. msm_routing_put_port_mixer),
  17001. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17002. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17003. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17004. msm_routing_put_port_mixer),
  17005. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17006. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17007. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17008. msm_routing_put_port_mixer),
  17009. };
  17010. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17011. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17013. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17014. msm_routing_put_port_mixer),
  17015. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17017. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17018. msm_routing_put_port_mixer),
  17019. };
  17020. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17021. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17022. MSM_BACKEND_DAI_AFE_PCM_RX,
  17023. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17024. msm_routing_put_port_mixer),
  17025. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17026. MSM_BACKEND_DAI_AFE_PCM_RX,
  17027. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17028. msm_routing_put_port_mixer),
  17029. };
  17030. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17031. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17032. MSM_BACKEND_DAI_HDMI_RX,
  17033. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17034. msm_routing_put_port_mixer),
  17035. };
  17036. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17037. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17038. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17039. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17040. msm_routing_put_port_mixer),
  17041. };
  17042. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17043. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17045. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17046. msm_routing_put_port_mixer),
  17047. };
  17048. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17049. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17050. MSM_BACKEND_DAI_SEC_I2S_RX,
  17051. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17052. msm_routing_put_port_mixer),
  17053. };
  17054. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17055. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_MI2S_RX,
  17057. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17058. msm_routing_put_port_mixer),
  17059. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_MI2S_RX,
  17061. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17062. msm_routing_put_port_mixer),
  17063. };
  17064. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17065. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17066. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17067. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17068. msm_routing_put_port_mixer),
  17069. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17070. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17071. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17072. msm_routing_put_port_mixer),
  17073. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17074. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17075. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17076. msm_routing_put_port_mixer),
  17077. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17078. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17079. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17080. msm_routing_put_port_mixer),
  17081. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17082. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17083. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17084. msm_routing_put_port_mixer),
  17085. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17086. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17087. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17088. msm_routing_put_port_mixer),
  17089. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17090. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17091. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17092. msm_routing_put_port_mixer),
  17093. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17094. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17095. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17096. msm_routing_put_port_mixer),
  17097. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17098. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17099. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17100. msm_routing_put_port_mixer),
  17101. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17102. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17103. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17104. msm_routing_put_port_mixer),
  17105. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17106. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17107. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17108. msm_routing_put_port_mixer),
  17109. };
  17110. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17111. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17112. MSM_BACKEND_DAI_USB_RX,
  17113. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17114. msm_routing_put_port_mixer),
  17115. };
  17116. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17117. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17118. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17119. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17120. msm_routing_put_port_mixer),
  17121. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17122. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17123. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17124. msm_routing_put_port_mixer),
  17125. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17127. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17128. msm_routing_put_port_mixer),
  17129. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17130. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17131. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17132. msm_routing_put_port_mixer),
  17133. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17134. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17135. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17136. msm_routing_put_port_mixer),
  17137. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17139. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17140. msm_routing_put_port_mixer),
  17141. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17142. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17143. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17144. msm_routing_put_port_mixer),
  17145. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17147. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17148. msm_routing_put_port_mixer),
  17149. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17150. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17151. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17152. msm_routing_put_port_mixer),
  17153. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17154. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17155. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17156. msm_routing_put_port_mixer),
  17157. };
  17158. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17159. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17160. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17161. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17162. msm_routing_put_port_mixer),
  17163. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17164. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17165. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17166. msm_routing_put_port_mixer),
  17167. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17168. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17169. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17170. msm_routing_put_port_mixer),
  17171. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17172. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17173. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17174. msm_routing_put_port_mixer),
  17175. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17177. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17178. msm_routing_put_port_mixer),
  17179. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17180. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17181. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17182. msm_routing_put_port_mixer),
  17183. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17185. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17189. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17190. msm_routing_put_port_mixer),
  17191. };
  17192. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17193. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17194. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17195. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17196. msm_routing_put_port_mixer),
  17197. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17198. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17199. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17200. msm_routing_put_port_mixer),
  17201. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17202. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17203. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17204. msm_routing_put_port_mixer),
  17205. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17206. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17207. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17208. msm_routing_put_port_mixer),
  17209. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17210. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17211. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17212. msm_routing_put_port_mixer),
  17213. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17214. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17215. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17216. msm_routing_put_port_mixer),
  17217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17218. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17220. msm_routing_put_port_mixer),
  17221. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17222. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17223. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17224. msm_routing_put_port_mixer),
  17225. };
  17226. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17227. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17228. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17229. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17230. msm_routing_get_port_mixer,
  17231. msm_routing_put_port_mixer),
  17232. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17233. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17234. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17235. msm_routing_get_port_mixer,
  17236. msm_routing_put_port_mixer),
  17237. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17238. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17239. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17240. msm_routing_get_port_mixer,
  17241. msm_routing_put_port_mixer),
  17242. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17243. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17244. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17245. msm_routing_get_port_mixer,
  17246. msm_routing_put_port_mixer),
  17247. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17249. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17250. msm_routing_get_port_mixer,
  17251. msm_routing_put_port_mixer),
  17252. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17253. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17254. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17255. msm_routing_get_port_mixer,
  17256. msm_routing_put_port_mixer),
  17257. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17258. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17259. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17260. msm_routing_get_port_mixer,
  17261. msm_routing_put_port_mixer),
  17262. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17263. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17264. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17265. msm_routing_get_port_mixer,
  17266. msm_routing_put_port_mixer),
  17267. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17269. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17270. msm_routing_get_port_mixer,
  17271. msm_routing_put_port_mixer),
  17272. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17273. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17274. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17275. msm_routing_get_port_mixer,
  17276. msm_routing_put_port_mixer),
  17277. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17278. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17279. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17280. msm_routing_get_port_mixer,
  17281. msm_routing_put_port_mixer),
  17282. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17283. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17284. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17285. msm_routing_get_port_mixer,
  17286. msm_routing_put_port_mixer),
  17287. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17288. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17289. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17290. msm_routing_get_port_mixer,
  17291. msm_routing_put_port_mixer),
  17292. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17293. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17294. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17295. msm_routing_get_port_mixer,
  17296. msm_routing_put_port_mixer),
  17297. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17298. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17299. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17300. msm_routing_get_port_mixer,
  17301. msm_routing_put_port_mixer),
  17302. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17303. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17304. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17305. msm_routing_get_port_mixer,
  17306. msm_routing_put_port_mixer),
  17307. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17308. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17309. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17310. msm_routing_get_port_mixer,
  17311. msm_routing_put_port_mixer),
  17312. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17313. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17314. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17315. msm_routing_get_port_mixer,
  17316. msm_routing_put_port_mixer),
  17317. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17318. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17319. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17320. msm_routing_get_port_mixer,
  17321. msm_routing_put_port_mixer),
  17322. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17323. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17324. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17325. msm_routing_get_port_mixer,
  17326. msm_routing_put_port_mixer),
  17327. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17328. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17329. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17330. msm_routing_get_port_mixer,
  17331. msm_routing_put_port_mixer),
  17332. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17333. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17334. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17335. msm_routing_get_port_mixer,
  17336. msm_routing_put_port_mixer),
  17337. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17339. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17340. msm_routing_get_port_mixer,
  17341. msm_routing_put_port_mixer),
  17342. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17343. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17344. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17345. msm_routing_get_port_mixer,
  17346. msm_routing_put_port_mixer),
  17347. };
  17348. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17349. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17350. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17351. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17352. msm_routing_get_port_mixer,
  17353. msm_routing_put_port_mixer),
  17354. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17356. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17357. msm_routing_get_port_mixer,
  17358. msm_routing_put_port_mixer),
  17359. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17360. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17361. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17362. msm_routing_get_port_mixer,
  17363. msm_routing_put_port_mixer),
  17364. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17365. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17366. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17367. msm_routing_get_port_mixer,
  17368. msm_routing_put_port_mixer),
  17369. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17371. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17372. msm_routing_get_port_mixer,
  17373. msm_routing_put_port_mixer),
  17374. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17375. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17376. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17377. msm_routing_get_port_mixer,
  17378. msm_routing_put_port_mixer),
  17379. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17380. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17381. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17382. msm_routing_get_port_mixer,
  17383. msm_routing_put_port_mixer),
  17384. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17385. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17386. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17387. msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17391. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17392. msm_routing_get_port_mixer,
  17393. msm_routing_put_port_mixer),
  17394. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17395. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17396. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17397. msm_routing_get_port_mixer,
  17398. msm_routing_put_port_mixer),
  17399. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17400. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17401. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17402. msm_routing_get_port_mixer,
  17403. msm_routing_put_port_mixer),
  17404. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17405. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17406. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17407. msm_routing_get_port_mixer,
  17408. msm_routing_put_port_mixer),
  17409. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17410. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17411. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17412. msm_routing_get_port_mixer,
  17413. msm_routing_put_port_mixer),
  17414. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17415. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17416. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17417. msm_routing_get_port_mixer,
  17418. msm_routing_put_port_mixer),
  17419. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17420. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17421. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17422. msm_routing_get_port_mixer,
  17423. msm_routing_put_port_mixer),
  17424. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17425. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17426. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17427. msm_routing_get_port_mixer,
  17428. msm_routing_put_port_mixer),
  17429. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17430. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17431. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17432. msm_routing_get_port_mixer,
  17433. msm_routing_put_port_mixer),
  17434. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17435. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17436. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17437. msm_routing_get_port_mixer,
  17438. msm_routing_put_port_mixer),
  17439. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17441. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17442. msm_routing_get_port_mixer,
  17443. msm_routing_put_port_mixer),
  17444. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17445. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17446. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17447. msm_routing_get_port_mixer,
  17448. msm_routing_put_port_mixer),
  17449. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17450. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17451. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17452. msm_routing_get_port_mixer,
  17453. msm_routing_put_port_mixer),
  17454. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17455. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17456. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17457. msm_routing_get_port_mixer,
  17458. msm_routing_put_port_mixer),
  17459. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17460. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17461. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17462. msm_routing_get_port_mixer,
  17463. msm_routing_put_port_mixer),
  17464. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17465. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17466. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17467. msm_routing_get_port_mixer,
  17468. msm_routing_put_port_mixer),
  17469. };
  17470. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17471. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17472. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17473. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17474. msm_routing_get_port_mixer,
  17475. msm_routing_put_port_mixer),
  17476. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17477. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17478. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17479. msm_routing_get_port_mixer,
  17480. msm_routing_put_port_mixer),
  17481. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17482. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17483. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17484. msm_routing_get_port_mixer,
  17485. msm_routing_put_port_mixer),
  17486. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17487. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17488. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17489. msm_routing_get_port_mixer,
  17490. msm_routing_put_port_mixer),
  17491. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17492. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17493. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17494. msm_routing_get_port_mixer,
  17495. msm_routing_put_port_mixer),
  17496. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17497. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17498. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17499. msm_routing_get_port_mixer,
  17500. msm_routing_put_port_mixer),
  17501. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17502. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17503. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17504. msm_routing_get_port_mixer,
  17505. msm_routing_put_port_mixer),
  17506. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17507. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17508. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17509. msm_routing_get_port_mixer,
  17510. msm_routing_put_port_mixer),
  17511. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17512. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17513. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17514. msm_routing_get_port_mixer,
  17515. msm_routing_put_port_mixer),
  17516. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17517. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17518. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17519. msm_routing_get_port_mixer,
  17520. msm_routing_put_port_mixer),
  17521. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17523. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17524. msm_routing_get_port_mixer,
  17525. msm_routing_put_port_mixer),
  17526. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17527. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17528. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17529. msm_routing_get_port_mixer,
  17530. msm_routing_put_port_mixer),
  17531. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17532. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17533. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17534. msm_routing_get_port_mixer,
  17535. msm_routing_put_port_mixer),
  17536. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17537. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17538. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17539. msm_routing_get_port_mixer,
  17540. msm_routing_put_port_mixer),
  17541. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17542. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17543. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17544. msm_routing_get_port_mixer,
  17545. msm_routing_put_port_mixer),
  17546. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17547. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17548. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17549. msm_routing_get_port_mixer,
  17550. msm_routing_put_port_mixer),
  17551. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17552. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17553. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17554. msm_routing_get_port_mixer,
  17555. msm_routing_put_port_mixer),
  17556. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17557. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17558. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17559. msm_routing_get_port_mixer,
  17560. msm_routing_put_port_mixer),
  17561. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17562. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17563. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17564. msm_routing_get_port_mixer,
  17565. msm_routing_put_port_mixer),
  17566. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17567. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17568. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17569. msm_routing_get_port_mixer,
  17570. msm_routing_put_port_mixer),
  17571. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17572. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17573. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17574. msm_routing_get_port_mixer,
  17575. msm_routing_put_port_mixer),
  17576. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17577. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17578. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17579. msm_routing_get_port_mixer,
  17580. msm_routing_put_port_mixer),
  17581. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17582. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17583. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17584. msm_routing_get_port_mixer,
  17585. msm_routing_put_port_mixer),
  17586. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17587. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17588. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17589. msm_routing_get_port_mixer,
  17590. msm_routing_put_port_mixer),
  17591. };
  17592. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17593. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17594. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17595. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17596. msm_routing_get_port_mixer,
  17597. msm_routing_put_port_mixer),
  17598. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17599. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17600. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17601. msm_routing_get_port_mixer,
  17602. msm_routing_put_port_mixer),
  17603. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17604. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17605. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17606. msm_routing_get_port_mixer,
  17607. msm_routing_put_port_mixer),
  17608. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17609. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17610. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17611. msm_routing_get_port_mixer,
  17612. msm_routing_put_port_mixer),
  17613. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17614. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17615. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17616. msm_routing_get_port_mixer,
  17617. msm_routing_put_port_mixer),
  17618. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17619. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17620. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17621. msm_routing_get_port_mixer,
  17622. msm_routing_put_port_mixer),
  17623. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17624. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17625. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17626. msm_routing_get_port_mixer,
  17627. msm_routing_put_port_mixer),
  17628. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17629. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17630. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17631. msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17635. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17636. msm_routing_get_port_mixer,
  17637. msm_routing_put_port_mixer),
  17638. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17639. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17640. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17641. msm_routing_get_port_mixer,
  17642. msm_routing_put_port_mixer),
  17643. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17644. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17645. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17646. msm_routing_get_port_mixer,
  17647. msm_routing_put_port_mixer),
  17648. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17649. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17650. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17651. msm_routing_get_port_mixer,
  17652. msm_routing_put_port_mixer),
  17653. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17655. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17656. msm_routing_get_port_mixer,
  17657. msm_routing_put_port_mixer),
  17658. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17659. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17660. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17661. msm_routing_get_port_mixer,
  17662. msm_routing_put_port_mixer),
  17663. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17664. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17665. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17666. msm_routing_get_port_mixer,
  17667. msm_routing_put_port_mixer),
  17668. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17669. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17670. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17671. msm_routing_get_port_mixer,
  17672. msm_routing_put_port_mixer),
  17673. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17674. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17675. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17676. msm_routing_get_port_mixer,
  17677. msm_routing_put_port_mixer),
  17678. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17679. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17680. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17681. msm_routing_get_port_mixer,
  17682. msm_routing_put_port_mixer),
  17683. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17685. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17686. msm_routing_get_port_mixer,
  17687. msm_routing_put_port_mixer),
  17688. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17689. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17690. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17691. msm_routing_get_port_mixer,
  17692. msm_routing_put_port_mixer),
  17693. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17694. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17695. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17696. msm_routing_get_port_mixer,
  17697. msm_routing_put_port_mixer),
  17698. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17699. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17700. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17701. msm_routing_get_port_mixer,
  17702. msm_routing_put_port_mixer),
  17703. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17704. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17705. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17706. msm_routing_get_port_mixer,
  17707. msm_routing_put_port_mixer),
  17708. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17709. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17710. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17711. msm_routing_get_port_mixer,
  17712. msm_routing_put_port_mixer),
  17713. };
  17714. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17715. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17716. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17717. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17718. msm_routing_get_port_mixer,
  17719. msm_routing_put_port_mixer),
  17720. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17721. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17722. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17723. msm_routing_get_port_mixer,
  17724. msm_routing_put_port_mixer),
  17725. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17726. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17727. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17728. msm_routing_get_port_mixer,
  17729. msm_routing_put_port_mixer),
  17730. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17731. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17732. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17733. msm_routing_get_port_mixer,
  17734. msm_routing_put_port_mixer),
  17735. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17736. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17737. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17738. msm_routing_get_port_mixer,
  17739. msm_routing_put_port_mixer),
  17740. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17741. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17742. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17743. msm_routing_get_port_mixer,
  17744. msm_routing_put_port_mixer),
  17745. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17746. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17747. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17748. msm_routing_get_port_mixer,
  17749. msm_routing_put_port_mixer),
  17750. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17751. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17752. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17753. msm_routing_get_port_mixer,
  17754. msm_routing_put_port_mixer),
  17755. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17756. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17757. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17758. msm_routing_get_port_mixer,
  17759. msm_routing_put_port_mixer),
  17760. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17761. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17762. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17763. msm_routing_get_port_mixer,
  17764. msm_routing_put_port_mixer),
  17765. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17766. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17767. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17768. msm_routing_get_port_mixer,
  17769. msm_routing_put_port_mixer),
  17770. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17771. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17772. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17773. msm_routing_get_port_mixer,
  17774. msm_routing_put_port_mixer),
  17775. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17776. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17777. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17778. msm_routing_get_port_mixer,
  17779. msm_routing_put_port_mixer),
  17780. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17781. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17782. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17783. msm_routing_get_port_mixer,
  17784. msm_routing_put_port_mixer),
  17785. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17786. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17787. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17788. msm_routing_get_port_mixer,
  17789. msm_routing_put_port_mixer),
  17790. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17791. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17792. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17793. msm_routing_get_port_mixer,
  17794. msm_routing_put_port_mixer),
  17795. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17796. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17797. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17798. msm_routing_get_port_mixer,
  17799. msm_routing_put_port_mixer),
  17800. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17801. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17802. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17803. msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17807. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17808. msm_routing_get_port_mixer,
  17809. msm_routing_put_port_mixer),
  17810. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17811. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17812. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17813. msm_routing_get_port_mixer,
  17814. msm_routing_put_port_mixer),
  17815. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17816. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17817. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17818. msm_routing_get_port_mixer,
  17819. msm_routing_put_port_mixer),
  17820. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17821. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17822. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17823. msm_routing_get_port_mixer,
  17824. msm_routing_put_port_mixer),
  17825. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17826. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17827. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17828. msm_routing_get_port_mixer,
  17829. msm_routing_put_port_mixer),
  17830. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17831. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17832. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17833. msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. };
  17836. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17837. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17838. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17839. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17840. msm_routing_get_port_mixer,
  17841. msm_routing_put_port_mixer),
  17842. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17843. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17844. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17845. msm_routing_get_port_mixer,
  17846. msm_routing_put_port_mixer),
  17847. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17848. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17849. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17850. msm_routing_get_port_mixer,
  17851. msm_routing_put_port_mixer),
  17852. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17853. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17854. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17855. msm_routing_get_port_mixer,
  17856. msm_routing_put_port_mixer),
  17857. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17858. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17859. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17860. msm_routing_get_port_mixer,
  17861. msm_routing_put_port_mixer),
  17862. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17863. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17864. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17865. msm_routing_get_port_mixer,
  17866. msm_routing_put_port_mixer),
  17867. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17868. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17869. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17870. msm_routing_get_port_mixer,
  17871. msm_routing_put_port_mixer),
  17872. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17873. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17874. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17875. msm_routing_get_port_mixer,
  17876. msm_routing_put_port_mixer),
  17877. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17878. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17879. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17880. msm_routing_get_port_mixer,
  17881. msm_routing_put_port_mixer),
  17882. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17883. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17884. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17885. msm_routing_get_port_mixer,
  17886. msm_routing_put_port_mixer),
  17887. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17888. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17889. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17890. msm_routing_get_port_mixer,
  17891. msm_routing_put_port_mixer),
  17892. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17893. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17894. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17895. msm_routing_get_port_mixer,
  17896. msm_routing_put_port_mixer),
  17897. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17898. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17899. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17900. msm_routing_get_port_mixer,
  17901. msm_routing_put_port_mixer),
  17902. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17903. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17904. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17905. msm_routing_get_port_mixer,
  17906. msm_routing_put_port_mixer),
  17907. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17908. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17909. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17910. msm_routing_get_port_mixer,
  17911. msm_routing_put_port_mixer),
  17912. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17913. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17914. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17915. msm_routing_get_port_mixer,
  17916. msm_routing_put_port_mixer),
  17917. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17918. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17919. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17920. msm_routing_get_port_mixer,
  17921. msm_routing_put_port_mixer),
  17922. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17923. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17924. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17925. msm_routing_get_port_mixer,
  17926. msm_routing_put_port_mixer),
  17927. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17928. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17929. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17930. msm_routing_get_port_mixer,
  17931. msm_routing_put_port_mixer),
  17932. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17933. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17934. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17935. msm_routing_get_port_mixer,
  17936. msm_routing_put_port_mixer),
  17937. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17938. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17939. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17940. msm_routing_get_port_mixer,
  17941. msm_routing_put_port_mixer),
  17942. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17943. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17944. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17945. msm_routing_get_port_mixer,
  17946. msm_routing_put_port_mixer),
  17947. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17948. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17949. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17950. msm_routing_get_port_mixer,
  17951. msm_routing_put_port_mixer),
  17952. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17953. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17954. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17955. msm_routing_get_port_mixer,
  17956. msm_routing_put_port_mixer),
  17957. };
  17958. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17959. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17960. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17961. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17962. msm_routing_get_port_mixer,
  17963. msm_routing_put_port_mixer),
  17964. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17965. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17966. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17967. msm_routing_get_port_mixer,
  17968. msm_routing_put_port_mixer),
  17969. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17970. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17971. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17972. msm_routing_get_port_mixer,
  17973. msm_routing_put_port_mixer),
  17974. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17975. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17976. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17977. msm_routing_get_port_mixer,
  17978. msm_routing_put_port_mixer),
  17979. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17980. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17981. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17982. msm_routing_get_port_mixer,
  17983. msm_routing_put_port_mixer),
  17984. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17985. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17986. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17987. msm_routing_get_port_mixer,
  17988. msm_routing_put_port_mixer),
  17989. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17990. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17991. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17992. msm_routing_get_port_mixer,
  17993. msm_routing_put_port_mixer),
  17994. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17995. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17996. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17997. msm_routing_get_port_mixer,
  17998. msm_routing_put_port_mixer),
  17999. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18000. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18001. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18002. msm_routing_get_port_mixer,
  18003. msm_routing_put_port_mixer),
  18004. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18005. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18006. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18007. msm_routing_get_port_mixer,
  18008. msm_routing_put_port_mixer),
  18009. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18010. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18011. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18012. msm_routing_get_port_mixer,
  18013. msm_routing_put_port_mixer),
  18014. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18015. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18016. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18017. msm_routing_get_port_mixer,
  18018. msm_routing_put_port_mixer),
  18019. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18020. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18021. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18022. msm_routing_get_port_mixer,
  18023. msm_routing_put_port_mixer),
  18024. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18025. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18026. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18027. msm_routing_get_port_mixer,
  18028. msm_routing_put_port_mixer),
  18029. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18030. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18031. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18032. msm_routing_get_port_mixer,
  18033. msm_routing_put_port_mixer),
  18034. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18035. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18036. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18037. msm_routing_get_port_mixer,
  18038. msm_routing_put_port_mixer),
  18039. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18040. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18041. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18042. msm_routing_get_port_mixer,
  18043. msm_routing_put_port_mixer),
  18044. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18045. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18046. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18047. msm_routing_get_port_mixer,
  18048. msm_routing_put_port_mixer),
  18049. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18050. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18051. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18052. msm_routing_get_port_mixer,
  18053. msm_routing_put_port_mixer),
  18054. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18055. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18056. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18057. msm_routing_get_port_mixer,
  18058. msm_routing_put_port_mixer),
  18059. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18060. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18061. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18062. msm_routing_get_port_mixer,
  18063. msm_routing_put_port_mixer),
  18064. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18065. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18066. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18067. msm_routing_get_port_mixer,
  18068. msm_routing_put_port_mixer),
  18069. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18070. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18071. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18072. msm_routing_get_port_mixer,
  18073. msm_routing_put_port_mixer),
  18074. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18075. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18076. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18077. msm_routing_get_port_mixer,
  18078. msm_routing_put_port_mixer),
  18079. };
  18080. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18081. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18083. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18084. msm_routing_get_port_mixer,
  18085. msm_routing_put_port_mixer),
  18086. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18087. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18088. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18089. msm_routing_get_port_mixer,
  18090. msm_routing_put_port_mixer),
  18091. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18092. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18093. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18094. msm_routing_get_port_mixer,
  18095. msm_routing_put_port_mixer),
  18096. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18097. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18098. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18099. msm_routing_get_port_mixer,
  18100. msm_routing_put_port_mixer),
  18101. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18102. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18103. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18104. msm_routing_get_port_mixer,
  18105. msm_routing_put_port_mixer),
  18106. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18107. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18108. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18109. msm_routing_get_port_mixer,
  18110. msm_routing_put_port_mixer),
  18111. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18112. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18113. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18114. msm_routing_get_port_mixer,
  18115. msm_routing_put_port_mixer),
  18116. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18117. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18118. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18119. msm_routing_get_port_mixer,
  18120. msm_routing_put_port_mixer),
  18121. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18122. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18123. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18124. msm_routing_get_port_mixer,
  18125. msm_routing_put_port_mixer),
  18126. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18127. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18128. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18129. msm_routing_get_port_mixer,
  18130. msm_routing_put_port_mixer),
  18131. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18132. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18133. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18134. msm_routing_get_port_mixer,
  18135. msm_routing_put_port_mixer),
  18136. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18137. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18138. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18139. msm_routing_get_port_mixer,
  18140. msm_routing_put_port_mixer),
  18141. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18142. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18143. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18144. msm_routing_get_port_mixer,
  18145. msm_routing_put_port_mixer),
  18146. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18147. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18148. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18149. msm_routing_get_port_mixer,
  18150. msm_routing_put_port_mixer),
  18151. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18152. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18153. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18154. msm_routing_get_port_mixer,
  18155. msm_routing_put_port_mixer),
  18156. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18157. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18158. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18159. msm_routing_get_port_mixer,
  18160. msm_routing_put_port_mixer),
  18161. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18162. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18163. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18164. msm_routing_get_port_mixer,
  18165. msm_routing_put_port_mixer),
  18166. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18167. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18168. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18169. msm_routing_get_port_mixer,
  18170. msm_routing_put_port_mixer),
  18171. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18172. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18173. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18174. msm_routing_get_port_mixer,
  18175. msm_routing_put_port_mixer),
  18176. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18177. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18178. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18179. msm_routing_get_port_mixer,
  18180. msm_routing_put_port_mixer),
  18181. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18182. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18183. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18184. msm_routing_get_port_mixer,
  18185. msm_routing_put_port_mixer),
  18186. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18187. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18188. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18189. msm_routing_get_port_mixer,
  18190. msm_routing_put_port_mixer),
  18191. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18192. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18193. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18194. msm_routing_get_port_mixer,
  18195. msm_routing_put_port_mixer),
  18196. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18197. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18198. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18199. msm_routing_get_port_mixer,
  18200. msm_routing_put_port_mixer),
  18201. };
  18202. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18203. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18205. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18206. msm_routing_get_port_mixer,
  18207. msm_routing_put_port_mixer),
  18208. };
  18209. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18210. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18211. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18212. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18213. msm_routing_get_port_mixer,
  18214. msm_routing_put_port_mixer),
  18215. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18216. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18217. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18218. msm_routing_get_port_mixer,
  18219. msm_routing_put_port_mixer),
  18220. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18221. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18222. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18223. msm_routing_get_port_mixer,
  18224. msm_routing_put_port_mixer),
  18225. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18226. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18227. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18228. msm_routing_get_port_mixer,
  18229. msm_routing_put_port_mixer),
  18230. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18232. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18233. msm_routing_get_port_mixer,
  18234. msm_routing_put_port_mixer),
  18235. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18236. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18237. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18238. msm_routing_get_port_mixer,
  18239. msm_routing_put_port_mixer),
  18240. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18242. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18243. msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18247. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18248. msm_routing_get_port_mixer,
  18249. msm_routing_put_port_mixer),
  18250. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18252. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18253. msm_routing_get_port_mixer,
  18254. msm_routing_put_port_mixer),
  18255. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18257. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18258. msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18262. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18263. msm_routing_get_port_mixer,
  18264. msm_routing_put_port_mixer),
  18265. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18266. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18267. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18268. msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18272. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18277. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18282. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18287. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18291. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18292. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18293. msm_routing_get_port_mixer,
  18294. msm_routing_put_port_mixer),
  18295. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18296. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18297. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18298. msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18302. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18303. msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18306. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18307. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18308. msm_routing_get_port_mixer,
  18309. msm_routing_put_port_mixer),
  18310. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18311. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18312. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18313. msm_routing_get_port_mixer,
  18314. msm_routing_put_port_mixer),
  18315. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18316. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18317. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18318. msm_routing_get_port_mixer,
  18319. msm_routing_put_port_mixer),
  18320. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18321. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18322. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18323. msm_routing_get_port_mixer,
  18324. msm_routing_put_port_mixer),
  18325. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18326. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18327. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18328. msm_routing_get_port_mixer,
  18329. msm_routing_put_port_mixer),
  18330. };
  18331. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18332. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18333. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18334. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18335. msm_routing_get_port_mixer,
  18336. msm_routing_put_port_mixer),
  18337. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18338. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18339. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18340. msm_routing_get_port_mixer,
  18341. msm_routing_put_port_mixer),
  18342. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18343. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18344. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18345. msm_routing_get_port_mixer,
  18346. msm_routing_put_port_mixer),
  18347. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18348. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18349. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18350. msm_routing_get_port_mixer,
  18351. msm_routing_put_port_mixer),
  18352. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18354. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18355. msm_routing_get_port_mixer,
  18356. msm_routing_put_port_mixer),
  18357. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18358. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18359. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18360. msm_routing_get_port_mixer,
  18361. msm_routing_put_port_mixer),
  18362. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18364. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18369. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18370. msm_routing_get_port_mixer,
  18371. msm_routing_put_port_mixer),
  18372. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18374. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18379. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18384. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18389. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18394. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18399. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18404. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18409. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18413. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18414. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18415. msm_routing_get_port_mixer,
  18416. msm_routing_put_port_mixer),
  18417. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18419. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18420. msm_routing_get_port_mixer,
  18421. msm_routing_put_port_mixer),
  18422. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18424. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18425. msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18428. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18429. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18430. msm_routing_get_port_mixer,
  18431. msm_routing_put_port_mixer),
  18432. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18433. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18434. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18435. msm_routing_get_port_mixer,
  18436. msm_routing_put_port_mixer),
  18437. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18438. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18439. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18440. msm_routing_get_port_mixer,
  18441. msm_routing_put_port_mixer),
  18442. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18443. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18444. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18445. msm_routing_get_port_mixer,
  18446. msm_routing_put_port_mixer),
  18447. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18448. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18449. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18450. msm_routing_get_port_mixer,
  18451. msm_routing_put_port_mixer),
  18452. };
  18453. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18454. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18455. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18456. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18457. msm_routing_get_port_mixer,
  18458. msm_routing_put_port_mixer),
  18459. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18460. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18461. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18462. msm_routing_get_port_mixer,
  18463. msm_routing_put_port_mixer),
  18464. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18465. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18466. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18467. msm_routing_get_port_mixer,
  18468. msm_routing_put_port_mixer),
  18469. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18470. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18471. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18472. msm_routing_get_port_mixer,
  18473. msm_routing_put_port_mixer),
  18474. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18475. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18476. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18477. msm_routing_get_port_mixer,
  18478. msm_routing_put_port_mixer),
  18479. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18480. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18481. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18482. msm_routing_get_port_mixer,
  18483. msm_routing_put_port_mixer),
  18484. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18485. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18486. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18487. msm_routing_get_port_mixer,
  18488. msm_routing_put_port_mixer),
  18489. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18490. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18491. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18492. msm_routing_get_port_mixer,
  18493. msm_routing_put_port_mixer),
  18494. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18495. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18496. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18497. msm_routing_get_port_mixer,
  18498. msm_routing_put_port_mixer),
  18499. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18500. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18501. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18502. msm_routing_get_port_mixer,
  18503. msm_routing_put_port_mixer),
  18504. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18505. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18506. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18507. msm_routing_get_port_mixer,
  18508. msm_routing_put_port_mixer),
  18509. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18510. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18511. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18512. msm_routing_get_port_mixer,
  18513. msm_routing_put_port_mixer),
  18514. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18516. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18517. msm_routing_get_port_mixer,
  18518. msm_routing_put_port_mixer),
  18519. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18520. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18521. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18522. msm_routing_get_port_mixer,
  18523. msm_routing_put_port_mixer),
  18524. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18525. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18526. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18527. msm_routing_get_port_mixer,
  18528. msm_routing_put_port_mixer),
  18529. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18530. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18531. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18532. msm_routing_get_port_mixer,
  18533. msm_routing_put_port_mixer),
  18534. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18535. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18536. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18537. msm_routing_get_port_mixer,
  18538. msm_routing_put_port_mixer),
  18539. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18540. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18541. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18542. msm_routing_get_port_mixer,
  18543. msm_routing_put_port_mixer),
  18544. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18545. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18546. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18547. msm_routing_get_port_mixer,
  18548. msm_routing_put_port_mixer),
  18549. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18550. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18551. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18552. msm_routing_get_port_mixer,
  18553. msm_routing_put_port_mixer),
  18554. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18555. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18556. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18557. msm_routing_get_port_mixer,
  18558. msm_routing_put_port_mixer),
  18559. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18560. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18561. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18562. msm_routing_get_port_mixer,
  18563. msm_routing_put_port_mixer),
  18564. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18565. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18566. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18567. msm_routing_get_port_mixer,
  18568. msm_routing_put_port_mixer),
  18569. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18570. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18571. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18572. msm_routing_get_port_mixer,
  18573. msm_routing_put_port_mixer),
  18574. };
  18575. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18576. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18577. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18578. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18579. msm_routing_get_port_mixer,
  18580. msm_routing_put_port_mixer),
  18581. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18582. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18583. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18584. msm_routing_get_port_mixer,
  18585. msm_routing_put_port_mixer),
  18586. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18587. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18588. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18589. msm_routing_get_port_mixer,
  18590. msm_routing_put_port_mixer),
  18591. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18592. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18593. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18594. msm_routing_get_port_mixer,
  18595. msm_routing_put_port_mixer),
  18596. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18597. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18598. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18599. msm_routing_get_port_mixer,
  18600. msm_routing_put_port_mixer),
  18601. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18602. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18603. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18604. msm_routing_get_port_mixer,
  18605. msm_routing_put_port_mixer),
  18606. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18607. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18608. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18609. msm_routing_get_port_mixer,
  18610. msm_routing_put_port_mixer),
  18611. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18612. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18613. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18614. msm_routing_get_port_mixer,
  18615. msm_routing_put_port_mixer),
  18616. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18618. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18619. msm_routing_get_port_mixer,
  18620. msm_routing_put_port_mixer),
  18621. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18623. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18624. msm_routing_get_port_mixer,
  18625. msm_routing_put_port_mixer),
  18626. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18627. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18628. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18629. msm_routing_get_port_mixer,
  18630. msm_routing_put_port_mixer),
  18631. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18632. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18633. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18634. msm_routing_get_port_mixer,
  18635. msm_routing_put_port_mixer),
  18636. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18638. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18639. msm_routing_get_port_mixer,
  18640. msm_routing_put_port_mixer),
  18641. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18643. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18644. msm_routing_get_port_mixer,
  18645. msm_routing_put_port_mixer),
  18646. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18647. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18648. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18649. msm_routing_get_port_mixer,
  18650. msm_routing_put_port_mixer),
  18651. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18652. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18653. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18654. msm_routing_get_port_mixer,
  18655. msm_routing_put_port_mixer),
  18656. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18658. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18659. msm_routing_get_port_mixer,
  18660. msm_routing_put_port_mixer),
  18661. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18662. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18663. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18664. msm_routing_get_port_mixer,
  18665. msm_routing_put_port_mixer),
  18666. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18667. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18668. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18669. msm_routing_get_port_mixer,
  18670. msm_routing_put_port_mixer),
  18671. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18672. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18673. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18674. msm_routing_get_port_mixer,
  18675. msm_routing_put_port_mixer),
  18676. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18677. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18678. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18679. msm_routing_get_port_mixer,
  18680. msm_routing_put_port_mixer),
  18681. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18682. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18683. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18684. msm_routing_get_port_mixer,
  18685. msm_routing_put_port_mixer),
  18686. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18688. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18689. msm_routing_get_port_mixer,
  18690. msm_routing_put_port_mixer),
  18691. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18692. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18693. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18694. msm_routing_get_port_mixer,
  18695. msm_routing_put_port_mixer),
  18696. };
  18697. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18698. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18699. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18700. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18701. msm_routing_get_port_mixer,
  18702. msm_routing_put_port_mixer),
  18703. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18704. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18705. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18706. msm_routing_get_port_mixer,
  18707. msm_routing_put_port_mixer),
  18708. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18709. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18710. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18711. msm_routing_get_port_mixer,
  18712. msm_routing_put_port_mixer),
  18713. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18714. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18715. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18716. msm_routing_get_port_mixer,
  18717. msm_routing_put_port_mixer),
  18718. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18719. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18720. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18721. msm_routing_get_port_mixer,
  18722. msm_routing_put_port_mixer),
  18723. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18724. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18725. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18726. msm_routing_get_port_mixer,
  18727. msm_routing_put_port_mixer),
  18728. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18729. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18730. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18731. msm_routing_get_port_mixer,
  18732. msm_routing_put_port_mixer),
  18733. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18734. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18735. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18736. msm_routing_get_port_mixer,
  18737. msm_routing_put_port_mixer),
  18738. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18739. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18740. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18741. msm_routing_get_port_mixer,
  18742. msm_routing_put_port_mixer),
  18743. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18744. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18745. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18746. msm_routing_get_port_mixer,
  18747. msm_routing_put_port_mixer),
  18748. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18750. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18751. msm_routing_get_port_mixer,
  18752. msm_routing_put_port_mixer),
  18753. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18755. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18756. msm_routing_get_port_mixer,
  18757. msm_routing_put_port_mixer),
  18758. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18760. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18761. msm_routing_get_port_mixer,
  18762. msm_routing_put_port_mixer),
  18763. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18764. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18765. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18766. msm_routing_get_port_mixer,
  18767. msm_routing_put_port_mixer),
  18768. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18769. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18770. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18771. msm_routing_get_port_mixer,
  18772. msm_routing_put_port_mixer),
  18773. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18774. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18775. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18776. msm_routing_get_port_mixer,
  18777. msm_routing_put_port_mixer),
  18778. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18780. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18781. msm_routing_get_port_mixer,
  18782. msm_routing_put_port_mixer),
  18783. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18784. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18785. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18786. msm_routing_get_port_mixer,
  18787. msm_routing_put_port_mixer),
  18788. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18789. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18790. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18791. msm_routing_get_port_mixer,
  18792. msm_routing_put_port_mixer),
  18793. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18794. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18795. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18796. msm_routing_get_port_mixer,
  18797. msm_routing_put_port_mixer),
  18798. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18800. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18801. msm_routing_get_port_mixer,
  18802. msm_routing_put_port_mixer),
  18803. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18804. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18805. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18806. msm_routing_get_port_mixer,
  18807. msm_routing_put_port_mixer),
  18808. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18809. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18810. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18811. msm_routing_get_port_mixer,
  18812. msm_routing_put_port_mixer),
  18813. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18814. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18815. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18816. msm_routing_get_port_mixer,
  18817. msm_routing_put_port_mixer),
  18818. };
  18819. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18820. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18821. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18822. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18823. msm_routing_get_port_mixer,
  18824. msm_routing_put_port_mixer),
  18825. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18826. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18827. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18828. msm_routing_get_port_mixer,
  18829. msm_routing_put_port_mixer),
  18830. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18831. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18832. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18833. msm_routing_get_port_mixer,
  18834. msm_routing_put_port_mixer),
  18835. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18836. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18837. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18838. msm_routing_get_port_mixer,
  18839. msm_routing_put_port_mixer),
  18840. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18841. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18842. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18843. msm_routing_get_port_mixer,
  18844. msm_routing_put_port_mixer),
  18845. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18846. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18847. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18848. msm_routing_get_port_mixer,
  18849. msm_routing_put_port_mixer),
  18850. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18851. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18852. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18853. msm_routing_get_port_mixer,
  18854. msm_routing_put_port_mixer),
  18855. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18856. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18857. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18858. msm_routing_get_port_mixer,
  18859. msm_routing_put_port_mixer),
  18860. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18861. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18862. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18863. msm_routing_get_port_mixer,
  18864. msm_routing_put_port_mixer),
  18865. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18866. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18867. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18868. msm_routing_get_port_mixer,
  18869. msm_routing_put_port_mixer),
  18870. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18871. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18872. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18873. msm_routing_get_port_mixer,
  18874. msm_routing_put_port_mixer),
  18875. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18876. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18877. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18878. msm_routing_get_port_mixer,
  18879. msm_routing_put_port_mixer),
  18880. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18882. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18883. msm_routing_get_port_mixer,
  18884. msm_routing_put_port_mixer),
  18885. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18886. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18887. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18888. msm_routing_get_port_mixer,
  18889. msm_routing_put_port_mixer),
  18890. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18891. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18892. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18893. msm_routing_get_port_mixer,
  18894. msm_routing_put_port_mixer),
  18895. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18896. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18897. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18898. msm_routing_get_port_mixer,
  18899. msm_routing_put_port_mixer),
  18900. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18901. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18902. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18903. msm_routing_get_port_mixer,
  18904. msm_routing_put_port_mixer),
  18905. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18906. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18907. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18908. msm_routing_get_port_mixer,
  18909. msm_routing_put_port_mixer),
  18910. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18911. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18912. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18913. msm_routing_get_port_mixer,
  18914. msm_routing_put_port_mixer),
  18915. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18916. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18917. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18918. msm_routing_get_port_mixer,
  18919. msm_routing_put_port_mixer),
  18920. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18921. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18922. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18923. msm_routing_get_port_mixer,
  18924. msm_routing_put_port_mixer),
  18925. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18926. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18927. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18928. msm_routing_get_port_mixer,
  18929. msm_routing_put_port_mixer),
  18930. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18931. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18932. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18933. msm_routing_get_port_mixer,
  18934. msm_routing_put_port_mixer),
  18935. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18936. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18937. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18938. msm_routing_get_port_mixer,
  18939. msm_routing_put_port_mixer),
  18940. };
  18941. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18942. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18943. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18944. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18945. msm_routing_get_port_mixer,
  18946. msm_routing_put_port_mixer),
  18947. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18948. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18949. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18950. msm_routing_get_port_mixer,
  18951. msm_routing_put_port_mixer),
  18952. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18953. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18954. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18955. msm_routing_get_port_mixer,
  18956. msm_routing_put_port_mixer),
  18957. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18958. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18959. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18960. msm_routing_get_port_mixer,
  18961. msm_routing_put_port_mixer),
  18962. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18963. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18964. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18965. msm_routing_get_port_mixer,
  18966. msm_routing_put_port_mixer),
  18967. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18968. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18969. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18970. msm_routing_get_port_mixer,
  18971. msm_routing_put_port_mixer),
  18972. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18973. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18974. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18975. msm_routing_get_port_mixer,
  18976. msm_routing_put_port_mixer),
  18977. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18978. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18979. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18980. msm_routing_get_port_mixer,
  18981. msm_routing_put_port_mixer),
  18982. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18983. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18984. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18985. msm_routing_get_port_mixer,
  18986. msm_routing_put_port_mixer),
  18987. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18988. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18989. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18990. msm_routing_get_port_mixer,
  18991. msm_routing_put_port_mixer),
  18992. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18993. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18994. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18995. msm_routing_get_port_mixer,
  18996. msm_routing_put_port_mixer),
  18997. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18998. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18999. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19000. msm_routing_get_port_mixer,
  19001. msm_routing_put_port_mixer),
  19002. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19003. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19004. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19005. msm_routing_get_port_mixer,
  19006. msm_routing_put_port_mixer),
  19007. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19008. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19009. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19010. msm_routing_get_port_mixer,
  19011. msm_routing_put_port_mixer),
  19012. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19013. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19014. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19015. msm_routing_get_port_mixer,
  19016. msm_routing_put_port_mixer),
  19017. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19018. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19019. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19020. msm_routing_get_port_mixer,
  19021. msm_routing_put_port_mixer),
  19022. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19023. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19024. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19025. msm_routing_get_port_mixer,
  19026. msm_routing_put_port_mixer),
  19027. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19028. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19029. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19030. msm_routing_get_port_mixer,
  19031. msm_routing_put_port_mixer),
  19032. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19033. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19034. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19035. msm_routing_get_port_mixer,
  19036. msm_routing_put_port_mixer),
  19037. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19038. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19039. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19040. msm_routing_get_port_mixer,
  19041. msm_routing_put_port_mixer),
  19042. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19043. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19044. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19045. msm_routing_get_port_mixer,
  19046. msm_routing_put_port_mixer),
  19047. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19048. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19049. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19050. msm_routing_get_port_mixer,
  19051. msm_routing_put_port_mixer),
  19052. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19053. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19054. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19055. msm_routing_get_port_mixer,
  19056. msm_routing_put_port_mixer),
  19057. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19058. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19059. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19060. msm_routing_get_port_mixer,
  19061. msm_routing_put_port_mixer),
  19062. };
  19063. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19064. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19065. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19066. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19067. msm_routing_get_port_mixer,
  19068. msm_routing_put_port_mixer),
  19069. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19070. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19071. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19072. msm_routing_get_port_mixer,
  19073. msm_routing_put_port_mixer),
  19074. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19075. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19076. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19077. msm_routing_get_port_mixer,
  19078. msm_routing_put_port_mixer),
  19079. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19080. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19081. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19082. msm_routing_get_port_mixer,
  19083. msm_routing_put_port_mixer),
  19084. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19085. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19086. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19087. msm_routing_get_port_mixer,
  19088. msm_routing_put_port_mixer),
  19089. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19090. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19091. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19092. msm_routing_get_port_mixer,
  19093. msm_routing_put_port_mixer),
  19094. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19095. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19096. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19097. msm_routing_get_port_mixer,
  19098. msm_routing_put_port_mixer),
  19099. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19100. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19101. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19102. msm_routing_get_port_mixer,
  19103. msm_routing_put_port_mixer),
  19104. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19105. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19106. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19107. msm_routing_get_port_mixer,
  19108. msm_routing_put_port_mixer),
  19109. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19110. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19111. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19112. msm_routing_get_port_mixer,
  19113. msm_routing_put_port_mixer),
  19114. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19115. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19116. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19117. msm_routing_get_port_mixer,
  19118. msm_routing_put_port_mixer),
  19119. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19120. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19121. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19122. msm_routing_get_port_mixer,
  19123. msm_routing_put_port_mixer),
  19124. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19125. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19126. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19127. msm_routing_get_port_mixer,
  19128. msm_routing_put_port_mixer),
  19129. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19130. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19131. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19132. msm_routing_get_port_mixer,
  19133. msm_routing_put_port_mixer),
  19134. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19135. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19136. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19137. msm_routing_get_port_mixer,
  19138. msm_routing_put_port_mixer),
  19139. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19140. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19141. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19142. msm_routing_get_port_mixer,
  19143. msm_routing_put_port_mixer),
  19144. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19145. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19146. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19147. msm_routing_get_port_mixer,
  19148. msm_routing_put_port_mixer),
  19149. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19151. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19152. msm_routing_get_port_mixer,
  19153. msm_routing_put_port_mixer),
  19154. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19155. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19156. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19157. msm_routing_get_port_mixer,
  19158. msm_routing_put_port_mixer),
  19159. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19160. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19161. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19162. msm_routing_get_port_mixer,
  19163. msm_routing_put_port_mixer),
  19164. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19165. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19166. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19167. msm_routing_get_port_mixer,
  19168. msm_routing_put_port_mixer),
  19169. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19171. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19172. msm_routing_get_port_mixer,
  19173. msm_routing_put_port_mixer),
  19174. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19175. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19176. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19177. msm_routing_get_port_mixer,
  19178. msm_routing_put_port_mixer),
  19179. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19180. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19181. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19182. msm_routing_get_port_mixer,
  19183. msm_routing_put_port_mixer),
  19184. };
  19185. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19186. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19187. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19188. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19189. msm_routing_get_port_mixer,
  19190. msm_routing_put_port_mixer),
  19191. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19192. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19193. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19194. msm_routing_get_port_mixer,
  19195. msm_routing_put_port_mixer),
  19196. };
  19197. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19198. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19199. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19200. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19201. msm_routing_get_port_mixer,
  19202. msm_routing_put_port_mixer),
  19203. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19204. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19205. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19206. msm_routing_get_port_mixer,
  19207. msm_routing_put_port_mixer),
  19208. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19209. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19210. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19211. msm_routing_get_port_mixer,
  19212. msm_routing_put_port_mixer),
  19213. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19214. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19215. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19216. msm_routing_get_port_mixer,
  19217. msm_routing_put_port_mixer),
  19218. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19219. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19220. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19221. msm_routing_get_port_mixer,
  19222. msm_routing_put_port_mixer),
  19223. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19224. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19225. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19226. msm_routing_get_port_mixer,
  19227. msm_routing_put_port_mixer),
  19228. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19229. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19230. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19231. msm_routing_get_port_mixer,
  19232. msm_routing_put_port_mixer),
  19233. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19234. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19235. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19236. msm_routing_get_port_mixer,
  19237. msm_routing_put_port_mixer),
  19238. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19239. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19240. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19241. msm_routing_get_port_mixer,
  19242. msm_routing_put_port_mixer),
  19243. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19244. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19245. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19246. msm_routing_get_port_mixer,
  19247. msm_routing_put_port_mixer),
  19248. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19249. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19250. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19251. msm_routing_get_port_mixer,
  19252. msm_routing_put_port_mixer),
  19253. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19255. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19256. msm_routing_get_port_mixer,
  19257. msm_routing_put_port_mixer),
  19258. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19260. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19264. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19265. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19266. msm_routing_get_port_mixer,
  19267. msm_routing_put_port_mixer),
  19268. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19269. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19270. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19271. msm_routing_get_port_mixer,
  19272. msm_routing_put_port_mixer),
  19273. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19275. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19276. msm_routing_get_port_mixer,
  19277. msm_routing_put_port_mixer),
  19278. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19279. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19280. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19281. msm_routing_get_port_mixer,
  19282. msm_routing_put_port_mixer),
  19283. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19284. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19285. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19286. msm_routing_get_port_mixer,
  19287. msm_routing_put_port_mixer),
  19288. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19289. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19290. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19291. msm_routing_get_port_mixer,
  19292. msm_routing_put_port_mixer),
  19293. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19294. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19295. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19296. msm_routing_get_port_mixer,
  19297. msm_routing_put_port_mixer),
  19298. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19299. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19300. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19301. msm_routing_get_port_mixer,
  19302. msm_routing_put_port_mixer),
  19303. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19304. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19305. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19306. msm_routing_get_port_mixer,
  19307. msm_routing_put_port_mixer),
  19308. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19309. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19310. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19311. msm_routing_get_port_mixer,
  19312. msm_routing_put_port_mixer),
  19313. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19314. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19315. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19316. msm_routing_get_port_mixer,
  19317. msm_routing_put_port_mixer),
  19318. };
  19319. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19320. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19321. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19322. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19323. msm_routing_get_port_mixer,
  19324. msm_routing_put_port_mixer),
  19325. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19326. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19327. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19328. msm_routing_get_port_mixer,
  19329. msm_routing_put_port_mixer),
  19330. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19331. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19332. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19333. msm_routing_get_port_mixer,
  19334. msm_routing_put_port_mixer),
  19335. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19336. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19337. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19338. msm_routing_get_port_mixer,
  19339. msm_routing_put_port_mixer),
  19340. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19341. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19342. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19343. msm_routing_get_port_mixer,
  19344. msm_routing_put_port_mixer),
  19345. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19346. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19347. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19348. msm_routing_get_port_mixer,
  19349. msm_routing_put_port_mixer),
  19350. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19351. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19352. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19353. msm_routing_get_port_mixer,
  19354. msm_routing_put_port_mixer),
  19355. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19356. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19357. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19358. msm_routing_get_port_mixer,
  19359. msm_routing_put_port_mixer),
  19360. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19361. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19362. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19363. msm_routing_get_port_mixer,
  19364. msm_routing_put_port_mixer),
  19365. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19366. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19367. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19368. msm_routing_get_port_mixer,
  19369. msm_routing_put_port_mixer),
  19370. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19372. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19373. msm_routing_get_port_mixer,
  19374. msm_routing_put_port_mixer),
  19375. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19377. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19382. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19386. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19387. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19388. msm_routing_get_port_mixer,
  19389. msm_routing_put_port_mixer),
  19390. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19392. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19393. msm_routing_get_port_mixer,
  19394. msm_routing_put_port_mixer),
  19395. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19397. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19398. msm_routing_get_port_mixer,
  19399. msm_routing_put_port_mixer),
  19400. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19401. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19402. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19403. msm_routing_get_port_mixer,
  19404. msm_routing_put_port_mixer),
  19405. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19406. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19407. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19408. msm_routing_get_port_mixer,
  19409. msm_routing_put_port_mixer),
  19410. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19411. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19412. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19413. msm_routing_get_port_mixer,
  19414. msm_routing_put_port_mixer),
  19415. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19416. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19417. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19418. msm_routing_get_port_mixer,
  19419. msm_routing_put_port_mixer),
  19420. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19421. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19422. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19423. msm_routing_get_port_mixer,
  19424. msm_routing_put_port_mixer),
  19425. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19426. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19427. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19428. msm_routing_get_port_mixer,
  19429. msm_routing_put_port_mixer),
  19430. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19431. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19432. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19433. msm_routing_get_port_mixer,
  19434. msm_routing_put_port_mixer),
  19435. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19436. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19437. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19438. msm_routing_get_port_mixer,
  19439. msm_routing_put_port_mixer),
  19440. };
  19441. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19442. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19443. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19444. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19445. msm_routing_get_port_mixer,
  19446. msm_routing_put_port_mixer),
  19447. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19448. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19449. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19450. msm_routing_get_port_mixer,
  19451. msm_routing_put_port_mixer),
  19452. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19453. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19454. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19455. msm_routing_get_port_mixer,
  19456. msm_routing_put_port_mixer),
  19457. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19458. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19459. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19460. msm_routing_get_port_mixer,
  19461. msm_routing_put_port_mixer),
  19462. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19463. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19464. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19465. msm_routing_get_port_mixer,
  19466. msm_routing_put_port_mixer),
  19467. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19468. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19469. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19470. msm_routing_get_port_mixer,
  19471. msm_routing_put_port_mixer),
  19472. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19473. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19474. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19475. msm_routing_get_port_mixer,
  19476. msm_routing_put_port_mixer),
  19477. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19478. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19479. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19480. msm_routing_get_port_mixer,
  19481. msm_routing_put_port_mixer),
  19482. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19483. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19484. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19485. msm_routing_get_port_mixer,
  19486. msm_routing_put_port_mixer),
  19487. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19488. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19489. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19490. msm_routing_get_port_mixer,
  19491. msm_routing_put_port_mixer),
  19492. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19493. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19494. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19495. msm_routing_get_port_mixer,
  19496. msm_routing_put_port_mixer),
  19497. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19498. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19499. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19500. msm_routing_get_port_mixer,
  19501. msm_routing_put_port_mixer),
  19502. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19503. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19504. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19505. msm_routing_get_port_mixer,
  19506. msm_routing_put_port_mixer),
  19507. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19508. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19509. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19510. msm_routing_get_port_mixer,
  19511. msm_routing_put_port_mixer),
  19512. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19513. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19514. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19515. msm_routing_get_port_mixer,
  19516. msm_routing_put_port_mixer),
  19517. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19518. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19519. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19520. msm_routing_get_port_mixer,
  19521. msm_routing_put_port_mixer),
  19522. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19523. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19524. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19525. msm_routing_get_port_mixer,
  19526. msm_routing_put_port_mixer),
  19527. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19528. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19529. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19530. msm_routing_get_port_mixer,
  19531. msm_routing_put_port_mixer),
  19532. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19533. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19534. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19535. msm_routing_get_port_mixer,
  19536. msm_routing_put_port_mixer),
  19537. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19538. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19539. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19540. msm_routing_get_port_mixer,
  19541. msm_routing_put_port_mixer),
  19542. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19543. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19544. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19545. msm_routing_get_port_mixer,
  19546. msm_routing_put_port_mixer),
  19547. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19548. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19549. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19550. msm_routing_get_port_mixer,
  19551. msm_routing_put_port_mixer),
  19552. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19553. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19554. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19555. msm_routing_get_port_mixer,
  19556. msm_routing_put_port_mixer),
  19557. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19558. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19559. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19560. msm_routing_get_port_mixer,
  19561. msm_routing_put_port_mixer),
  19562. };
  19563. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19564. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19565. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19566. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19567. msm_routing_get_port_mixer,
  19568. msm_routing_put_port_mixer),
  19569. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19570. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19571. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19572. msm_routing_get_port_mixer,
  19573. msm_routing_put_port_mixer),
  19574. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19575. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19576. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19577. msm_routing_get_port_mixer,
  19578. msm_routing_put_port_mixer),
  19579. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19580. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19581. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19582. msm_routing_get_port_mixer,
  19583. msm_routing_put_port_mixer),
  19584. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19585. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19586. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19587. msm_routing_get_port_mixer,
  19588. msm_routing_put_port_mixer),
  19589. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19590. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19591. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19592. msm_routing_get_port_mixer,
  19593. msm_routing_put_port_mixer),
  19594. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19595. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19596. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19597. msm_routing_get_port_mixer,
  19598. msm_routing_put_port_mixer),
  19599. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19600. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19601. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19602. msm_routing_get_port_mixer,
  19603. msm_routing_put_port_mixer),
  19604. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19605. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19606. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19607. msm_routing_get_port_mixer,
  19608. msm_routing_put_port_mixer),
  19609. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19610. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19611. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19612. msm_routing_get_port_mixer,
  19613. msm_routing_put_port_mixer),
  19614. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19615. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19616. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19617. msm_routing_get_port_mixer,
  19618. msm_routing_put_port_mixer),
  19619. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19620. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19621. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19622. msm_routing_get_port_mixer,
  19623. msm_routing_put_port_mixer),
  19624. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19625. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19626. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19627. msm_routing_get_port_mixer,
  19628. msm_routing_put_port_mixer),
  19629. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19630. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19631. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19632. msm_routing_get_port_mixer,
  19633. msm_routing_put_port_mixer),
  19634. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19636. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19637. msm_routing_get_port_mixer,
  19638. msm_routing_put_port_mixer),
  19639. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19640. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19641. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19642. msm_routing_get_port_mixer,
  19643. msm_routing_put_port_mixer),
  19644. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19646. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19647. msm_routing_get_port_mixer,
  19648. msm_routing_put_port_mixer),
  19649. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19650. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19651. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19652. msm_routing_get_port_mixer,
  19653. msm_routing_put_port_mixer),
  19654. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19655. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19656. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19657. msm_routing_get_port_mixer,
  19658. msm_routing_put_port_mixer),
  19659. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19660. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19661. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19662. msm_routing_get_port_mixer,
  19663. msm_routing_put_port_mixer),
  19664. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19666. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19667. msm_routing_get_port_mixer,
  19668. msm_routing_put_port_mixer),
  19669. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19670. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19671. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19672. msm_routing_get_port_mixer,
  19673. msm_routing_put_port_mixer),
  19674. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19675. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19676. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19677. msm_routing_get_port_mixer,
  19678. msm_routing_put_port_mixer),
  19679. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19680. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19681. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19682. msm_routing_get_port_mixer,
  19683. msm_routing_put_port_mixer),
  19684. };
  19685. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19686. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19687. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19688. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19689. msm_routing_get_port_mixer,
  19690. msm_routing_put_port_mixer),
  19691. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19692. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19693. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19694. msm_routing_get_port_mixer,
  19695. msm_routing_put_port_mixer),
  19696. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19697. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19698. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19699. msm_routing_get_port_mixer,
  19700. msm_routing_put_port_mixer),
  19701. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19702. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19703. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19704. msm_routing_get_port_mixer,
  19705. msm_routing_put_port_mixer),
  19706. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19707. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19708. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19709. msm_routing_get_port_mixer,
  19710. msm_routing_put_port_mixer),
  19711. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19712. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19713. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19714. msm_routing_get_port_mixer,
  19715. msm_routing_put_port_mixer),
  19716. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19717. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19718. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19719. msm_routing_get_port_mixer,
  19720. msm_routing_put_port_mixer),
  19721. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19722. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19723. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19724. msm_routing_get_port_mixer,
  19725. msm_routing_put_port_mixer),
  19726. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19727. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19728. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19729. msm_routing_get_port_mixer,
  19730. msm_routing_put_port_mixer),
  19731. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19732. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19733. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19734. msm_routing_get_port_mixer,
  19735. msm_routing_put_port_mixer),
  19736. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19737. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19738. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19739. msm_routing_get_port_mixer,
  19740. msm_routing_put_port_mixer),
  19741. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19742. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19743. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19744. msm_routing_get_port_mixer,
  19745. msm_routing_put_port_mixer),
  19746. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19747. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19748. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19749. msm_routing_get_port_mixer,
  19750. msm_routing_put_port_mixer),
  19751. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19752. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19753. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19754. msm_routing_get_port_mixer,
  19755. msm_routing_put_port_mixer),
  19756. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19757. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19758. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19759. msm_routing_get_port_mixer,
  19760. msm_routing_put_port_mixer),
  19761. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19762. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19763. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19764. msm_routing_get_port_mixer,
  19765. msm_routing_put_port_mixer),
  19766. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19767. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19768. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19769. msm_routing_get_port_mixer,
  19770. msm_routing_put_port_mixer),
  19771. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19772. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19773. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19774. msm_routing_get_port_mixer,
  19775. msm_routing_put_port_mixer),
  19776. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19777. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19778. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19779. msm_routing_get_port_mixer,
  19780. msm_routing_put_port_mixer),
  19781. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19782. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19783. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19784. msm_routing_get_port_mixer,
  19785. msm_routing_put_port_mixer),
  19786. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19787. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19788. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19789. msm_routing_get_port_mixer,
  19790. msm_routing_put_port_mixer),
  19791. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19792. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19793. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19794. msm_routing_get_port_mixer,
  19795. msm_routing_put_port_mixer),
  19796. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19797. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19798. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19799. msm_routing_get_port_mixer,
  19800. msm_routing_put_port_mixer),
  19801. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19803. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19804. msm_routing_get_port_mixer,
  19805. msm_routing_put_port_mixer),
  19806. };
  19807. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19808. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19809. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19810. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19811. msm_routing_get_port_mixer,
  19812. msm_routing_put_port_mixer),
  19813. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19814. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19815. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19816. msm_routing_get_port_mixer,
  19817. msm_routing_put_port_mixer),
  19818. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19819. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19820. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19821. msm_routing_get_port_mixer,
  19822. msm_routing_put_port_mixer),
  19823. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19824. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19825. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19826. msm_routing_get_port_mixer,
  19827. msm_routing_put_port_mixer),
  19828. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19829. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19830. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19831. msm_routing_get_port_mixer,
  19832. msm_routing_put_port_mixer),
  19833. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19834. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19835. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19836. msm_routing_get_port_mixer,
  19837. msm_routing_put_port_mixer),
  19838. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19839. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19840. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19841. msm_routing_get_port_mixer,
  19842. msm_routing_put_port_mixer),
  19843. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19844. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19845. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19846. msm_routing_get_port_mixer,
  19847. msm_routing_put_port_mixer),
  19848. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19849. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19850. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19851. msm_routing_get_port_mixer,
  19852. msm_routing_put_port_mixer),
  19853. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19854. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19855. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19856. msm_routing_get_port_mixer,
  19857. msm_routing_put_port_mixer),
  19858. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19859. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19860. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19861. msm_routing_get_port_mixer,
  19862. msm_routing_put_port_mixer),
  19863. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19864. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19865. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19866. msm_routing_get_port_mixer,
  19867. msm_routing_put_port_mixer),
  19868. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19869. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19870. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19871. msm_routing_get_port_mixer,
  19872. msm_routing_put_port_mixer),
  19873. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19874. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19875. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19876. msm_routing_get_port_mixer,
  19877. msm_routing_put_port_mixer),
  19878. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19879. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19880. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19881. msm_routing_get_port_mixer,
  19882. msm_routing_put_port_mixer),
  19883. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19884. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19885. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19886. msm_routing_get_port_mixer,
  19887. msm_routing_put_port_mixer),
  19888. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19889. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19890. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19891. msm_routing_get_port_mixer,
  19892. msm_routing_put_port_mixer),
  19893. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19894. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19895. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19896. msm_routing_get_port_mixer,
  19897. msm_routing_put_port_mixer),
  19898. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19899. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19900. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19901. msm_routing_get_port_mixer,
  19902. msm_routing_put_port_mixer),
  19903. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19904. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19905. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19906. msm_routing_get_port_mixer,
  19907. msm_routing_put_port_mixer),
  19908. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19909. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19910. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19911. msm_routing_get_port_mixer,
  19912. msm_routing_put_port_mixer),
  19913. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19914. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19915. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19916. msm_routing_get_port_mixer,
  19917. msm_routing_put_port_mixer),
  19918. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19919. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19920. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19921. msm_routing_get_port_mixer,
  19922. msm_routing_put_port_mixer),
  19923. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19924. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19925. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19926. msm_routing_get_port_mixer,
  19927. msm_routing_put_port_mixer),
  19928. };
  19929. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19930. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19931. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19932. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19933. msm_routing_get_port_mixer,
  19934. msm_routing_put_port_mixer),
  19935. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19936. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19937. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19938. msm_routing_get_port_mixer,
  19939. msm_routing_put_port_mixer),
  19940. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19941. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19942. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19943. msm_routing_get_port_mixer,
  19944. msm_routing_put_port_mixer),
  19945. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19946. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19947. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19948. msm_routing_get_port_mixer,
  19949. msm_routing_put_port_mixer),
  19950. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19951. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19952. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19953. msm_routing_get_port_mixer,
  19954. msm_routing_put_port_mixer),
  19955. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19956. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19957. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19958. msm_routing_get_port_mixer,
  19959. msm_routing_put_port_mixer),
  19960. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19961. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19962. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19963. msm_routing_get_port_mixer,
  19964. msm_routing_put_port_mixer),
  19965. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19966. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19967. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19968. msm_routing_get_port_mixer,
  19969. msm_routing_put_port_mixer),
  19970. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19971. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19972. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19973. msm_routing_get_port_mixer,
  19974. msm_routing_put_port_mixer),
  19975. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19976. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19977. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19978. msm_routing_get_port_mixer,
  19979. msm_routing_put_port_mixer),
  19980. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19981. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19982. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19983. msm_routing_get_port_mixer,
  19984. msm_routing_put_port_mixer),
  19985. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19986. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19987. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19988. msm_routing_get_port_mixer,
  19989. msm_routing_put_port_mixer),
  19990. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19991. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19992. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19993. msm_routing_get_port_mixer,
  19994. msm_routing_put_port_mixer),
  19995. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19996. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19997. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19998. msm_routing_get_port_mixer,
  19999. msm_routing_put_port_mixer),
  20000. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20001. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20002. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20003. msm_routing_get_port_mixer,
  20004. msm_routing_put_port_mixer),
  20005. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20006. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20007. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20008. msm_routing_get_port_mixer,
  20009. msm_routing_put_port_mixer),
  20010. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20011. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20012. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20013. msm_routing_get_port_mixer,
  20014. msm_routing_put_port_mixer),
  20015. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20016. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20017. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20018. msm_routing_get_port_mixer,
  20019. msm_routing_put_port_mixer),
  20020. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20021. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20022. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20023. msm_routing_get_port_mixer,
  20024. msm_routing_put_port_mixer),
  20025. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20026. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20027. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20028. msm_routing_get_port_mixer,
  20029. msm_routing_put_port_mixer),
  20030. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20031. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20032. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20033. msm_routing_get_port_mixer,
  20034. msm_routing_put_port_mixer),
  20035. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20036. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20037. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20038. msm_routing_get_port_mixer,
  20039. msm_routing_put_port_mixer),
  20040. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20041. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20042. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20043. msm_routing_get_port_mixer,
  20044. msm_routing_put_port_mixer),
  20045. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20046. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20047. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20048. msm_routing_get_port_mixer,
  20049. msm_routing_put_port_mixer),
  20050. };
  20051. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20052. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20053. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20054. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20055. msm_routing_get_port_mixer,
  20056. msm_routing_put_port_mixer),
  20057. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20059. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20060. msm_routing_get_port_mixer,
  20061. msm_routing_put_port_mixer),
  20062. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20063. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20064. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20065. msm_routing_get_port_mixer,
  20066. msm_routing_put_port_mixer),
  20067. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20068. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20069. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20070. msm_routing_get_port_mixer,
  20071. msm_routing_put_port_mixer),
  20072. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20073. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20074. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20075. msm_routing_get_port_mixer,
  20076. msm_routing_put_port_mixer),
  20077. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20078. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20079. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20080. msm_routing_get_port_mixer,
  20081. msm_routing_put_port_mixer),
  20082. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20083. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20084. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20085. msm_routing_get_port_mixer,
  20086. msm_routing_put_port_mixer),
  20087. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20088. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20089. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20090. msm_routing_get_port_mixer,
  20091. msm_routing_put_port_mixer),
  20092. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20093. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20094. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20095. msm_routing_get_port_mixer,
  20096. msm_routing_put_port_mixer),
  20097. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20098. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20099. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20100. msm_routing_get_port_mixer,
  20101. msm_routing_put_port_mixer),
  20102. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20103. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20104. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20105. msm_routing_get_port_mixer,
  20106. msm_routing_put_port_mixer),
  20107. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20108. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20109. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20110. msm_routing_get_port_mixer,
  20111. msm_routing_put_port_mixer),
  20112. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20113. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20114. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20115. msm_routing_get_port_mixer,
  20116. msm_routing_put_port_mixer),
  20117. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20118. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20119. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20120. msm_routing_get_port_mixer,
  20121. msm_routing_put_port_mixer),
  20122. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20123. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20124. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20125. msm_routing_get_port_mixer,
  20126. msm_routing_put_port_mixer),
  20127. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20128. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20129. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20130. msm_routing_get_port_mixer,
  20131. msm_routing_put_port_mixer),
  20132. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20133. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20134. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20135. msm_routing_get_port_mixer,
  20136. msm_routing_put_port_mixer),
  20137. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20138. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20139. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20140. msm_routing_get_port_mixer,
  20141. msm_routing_put_port_mixer),
  20142. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20143. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20144. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20145. msm_routing_get_port_mixer,
  20146. msm_routing_put_port_mixer),
  20147. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20148. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20149. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20150. msm_routing_get_port_mixer,
  20151. msm_routing_put_port_mixer),
  20152. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20153. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20154. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20155. msm_routing_get_port_mixer,
  20156. msm_routing_put_port_mixer),
  20157. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20158. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20159. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20160. msm_routing_get_port_mixer,
  20161. msm_routing_put_port_mixer),
  20162. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20163. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20164. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20165. msm_routing_get_port_mixer,
  20166. msm_routing_put_port_mixer),
  20167. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20168. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20169. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20170. msm_routing_get_port_mixer,
  20171. msm_routing_put_port_mixer),
  20172. };
  20173. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20174. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20175. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20176. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20177. msm_routing_get_port_mixer,
  20178. msm_routing_put_port_mixer),
  20179. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20180. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20181. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20182. msm_routing_get_port_mixer,
  20183. msm_routing_put_port_mixer),
  20184. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20185. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20186. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20187. msm_routing_get_port_mixer,
  20188. msm_routing_put_port_mixer),
  20189. };
  20190. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20191. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20192. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20193. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20194. msm_routing_put_port_mixer),
  20195. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20196. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20197. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20198. msm_routing_put_port_mixer),
  20199. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20200. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20201. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20202. msm_routing_put_port_mixer),
  20203. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20204. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20205. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20206. msm_routing_put_port_mixer),
  20207. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20208. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20209. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20210. msm_routing_put_port_mixer),
  20211. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20213. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20214. msm_routing_put_port_mixer),
  20215. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20216. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20217. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20218. msm_routing_put_port_mixer),
  20219. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20220. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20221. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20222. msm_routing_put_port_mixer),
  20223. };
  20224. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20225. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20226. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20227. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20228. msm_routing_put_port_mixer),
  20229. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20230. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20231. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20232. msm_routing_put_port_mixer),
  20233. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20234. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20235. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20236. msm_routing_put_port_mixer),
  20237. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20238. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20239. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20240. msm_routing_put_port_mixer),
  20241. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20242. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20243. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20244. msm_routing_put_port_mixer),
  20245. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20246. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20247. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20248. msm_routing_put_port_mixer),
  20249. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20250. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20251. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20252. msm_routing_put_port_mixer),
  20253. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20254. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20255. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20256. msm_routing_put_port_mixer),
  20257. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20258. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20259. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20260. msm_routing_put_port_mixer),
  20261. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20262. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20263. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20264. msm_routing_put_port_mixer),
  20265. };
  20266. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20267. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20268. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20269. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20270. msm_routing_put_listen_mixer),
  20271. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20272. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20273. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20274. msm_routing_put_listen_mixer),
  20275. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20276. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20277. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20278. msm_routing_put_listen_mixer),
  20279. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20280. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20281. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20282. msm_routing_put_listen_mixer),
  20283. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20284. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20285. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20286. msm_routing_put_listen_mixer),
  20287. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20288. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20289. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20290. msm_routing_put_listen_mixer),
  20291. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20292. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20293. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20294. msm_routing_put_listen_mixer),
  20295. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20296. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20297. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20298. msm_routing_put_listen_mixer),
  20299. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20300. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20301. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20302. msm_routing_put_listen_mixer),
  20303. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20304. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20305. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20306. msm_routing_put_listen_mixer),
  20307. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20308. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20309. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20310. msm_routing_put_listen_mixer),
  20311. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20312. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20313. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20314. msm_routing_put_listen_mixer),
  20315. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20316. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20317. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20318. msm_routing_put_listen_mixer),
  20319. };
  20320. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20321. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20322. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20323. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20324. msm_routing_put_listen_mixer),
  20325. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20326. SND_SOC_NOPM,
  20327. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20328. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20329. msm_routing_put_listen_mixer),
  20330. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20331. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20332. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20333. msm_routing_put_listen_mixer),
  20334. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20335. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20336. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20337. msm_routing_put_listen_mixer),
  20338. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20339. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20340. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20341. msm_routing_put_listen_mixer),
  20342. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20343. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20344. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20345. msm_routing_put_listen_mixer),
  20346. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20347. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20348. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20349. msm_routing_put_listen_mixer),
  20350. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20351. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20352. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20353. msm_routing_put_listen_mixer),
  20354. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20355. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20356. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20357. msm_routing_put_listen_mixer),
  20358. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20359. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20360. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20361. msm_routing_put_listen_mixer),
  20362. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20364. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20365. msm_routing_put_listen_mixer),
  20366. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20367. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20368. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20369. msm_routing_put_listen_mixer),
  20370. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20371. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20372. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20373. msm_routing_put_listen_mixer),
  20374. };
  20375. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20376. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20377. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20378. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20379. msm_routing_put_listen_mixer),
  20380. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20381. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20382. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20383. msm_routing_put_listen_mixer),
  20384. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20385. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20386. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20387. msm_routing_put_listen_mixer),
  20388. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20389. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20390. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20391. msm_routing_put_listen_mixer),
  20392. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20393. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20394. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20395. msm_routing_put_listen_mixer),
  20396. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20397. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20398. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20399. msm_routing_put_listen_mixer),
  20400. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20401. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20402. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20403. msm_routing_put_listen_mixer),
  20404. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20405. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20406. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20407. msm_routing_put_listen_mixer),
  20408. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20409. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20410. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20411. msm_routing_put_listen_mixer),
  20412. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20413. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20414. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20415. msm_routing_put_listen_mixer),
  20416. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20417. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20418. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20419. msm_routing_put_listen_mixer),
  20420. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20421. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20422. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20423. msm_routing_put_listen_mixer),
  20424. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20425. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20426. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20427. msm_routing_put_listen_mixer),
  20428. };
  20429. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20430. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20431. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20432. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20433. msm_routing_put_listen_mixer),
  20434. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20435. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20436. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20437. msm_routing_put_listen_mixer),
  20438. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20439. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20440. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20441. msm_routing_put_listen_mixer),
  20442. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20443. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20444. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20445. msm_routing_put_listen_mixer),
  20446. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20447. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20448. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20449. msm_routing_put_listen_mixer),
  20450. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20451. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20452. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20453. msm_routing_put_listen_mixer),
  20454. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20455. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20456. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20457. msm_routing_put_listen_mixer),
  20458. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20459. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20460. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20461. msm_routing_put_listen_mixer),
  20462. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20463. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20464. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20465. msm_routing_put_listen_mixer),
  20466. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20467. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20468. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20469. msm_routing_put_listen_mixer),
  20470. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20471. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20472. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20473. msm_routing_put_listen_mixer),
  20474. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20475. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20476. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20477. msm_routing_put_listen_mixer),
  20478. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20479. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20480. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20481. msm_routing_put_listen_mixer),
  20482. };
  20483. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20484. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20485. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20486. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20487. msm_routing_put_listen_mixer),
  20488. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20489. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20490. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20491. msm_routing_put_listen_mixer),
  20492. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20493. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20494. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20495. msm_routing_put_listen_mixer),
  20496. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20497. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20498. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20499. msm_routing_put_listen_mixer),
  20500. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20501. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20502. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20503. msm_routing_put_listen_mixer),
  20504. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20505. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20506. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20507. msm_routing_put_listen_mixer),
  20508. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20509. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20510. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20511. msm_routing_put_listen_mixer),
  20512. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20513. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20514. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20515. msm_routing_put_listen_mixer),
  20516. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20517. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20518. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20519. msm_routing_put_listen_mixer),
  20520. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20521. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20522. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20523. msm_routing_put_listen_mixer),
  20524. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20525. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20526. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20527. msm_routing_put_listen_mixer),
  20528. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20529. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20530. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20531. msm_routing_put_listen_mixer),
  20532. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20533. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20534. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20535. msm_routing_put_listen_mixer),
  20536. };
  20537. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20538. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20539. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20540. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20541. msm_routing_put_listen_mixer),
  20542. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20543. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20544. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20545. msm_routing_put_listen_mixer),
  20546. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20547. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20548. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20549. msm_routing_put_listen_mixer),
  20550. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20551. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20552. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20553. msm_routing_put_listen_mixer),
  20554. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20555. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20556. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20557. msm_routing_put_listen_mixer),
  20558. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20559. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20560. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20561. msm_routing_put_listen_mixer),
  20562. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20563. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20564. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20565. msm_routing_put_listen_mixer),
  20566. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20567. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20568. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20569. msm_routing_put_listen_mixer),
  20570. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20571. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20572. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20573. msm_routing_put_listen_mixer),
  20574. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20575. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20576. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20577. msm_routing_put_listen_mixer),
  20578. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20579. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20580. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20581. msm_routing_put_listen_mixer),
  20582. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20583. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20584. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20585. msm_routing_put_listen_mixer),
  20586. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20587. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20588. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20589. msm_routing_put_listen_mixer),
  20590. };
  20591. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20592. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20593. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20594. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20595. msm_routing_put_listen_mixer),
  20596. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20597. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20598. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20599. msm_routing_put_listen_mixer),
  20600. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20601. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20602. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20603. msm_routing_put_listen_mixer),
  20604. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20605. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20606. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20607. msm_routing_put_listen_mixer),
  20608. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20609. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20610. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20611. msm_routing_put_listen_mixer),
  20612. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20613. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20614. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20615. msm_routing_put_listen_mixer),
  20616. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20617. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20618. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20619. msm_routing_put_listen_mixer),
  20620. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20621. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20622. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20623. msm_routing_put_listen_mixer),
  20624. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20625. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20626. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20627. msm_routing_put_listen_mixer),
  20628. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20629. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20630. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20631. msm_routing_put_listen_mixer),
  20632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20634. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20635. msm_routing_put_listen_mixer),
  20636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20638. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20639. msm_routing_put_listen_mixer),
  20640. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20641. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20642. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20643. msm_routing_put_listen_mixer),
  20644. };
  20645. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20646. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20647. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20648. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20649. msm_routing_put_listen_mixer),
  20650. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20651. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20652. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20653. msm_routing_put_listen_mixer),
  20654. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20655. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20656. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20657. msm_routing_put_listen_mixer),
  20658. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20659. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20660. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20661. msm_routing_put_listen_mixer),
  20662. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20663. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20664. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20665. msm_routing_put_listen_mixer),
  20666. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20667. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20668. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20669. msm_routing_put_listen_mixer),
  20670. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20671. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20672. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20673. msm_routing_put_listen_mixer),
  20674. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20675. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20676. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20677. msm_routing_put_listen_mixer),
  20678. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20679. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20680. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20681. msm_routing_put_listen_mixer),
  20682. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20683. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20684. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20685. msm_routing_put_listen_mixer),
  20686. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20687. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20688. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20689. msm_routing_put_listen_mixer),
  20690. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20691. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20692. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20693. msm_routing_put_listen_mixer),
  20694. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20695. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20696. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20697. msm_routing_put_listen_mixer),
  20698. };
  20699. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20700. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20701. 0, 1, 0, msm_routing_get_switch_mixer,
  20702. msm_routing_put_switch_mixer);
  20703. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20704. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20705. 0, 1, 0, msm_routing_get_switch_mixer,
  20706. msm_routing_put_switch_mixer);
  20707. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20708. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20709. 0, 1, 0, msm_routing_get_switch_mixer,
  20710. msm_routing_put_switch_mixer);
  20711. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20712. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20713. 0, 1, 0, msm_routing_get_switch_mixer,
  20714. msm_routing_put_switch_mixer);
  20715. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20716. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20717. 0, 1, 0, msm_routing_get_switch_mixer,
  20718. msm_routing_put_switch_mixer);
  20719. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20720. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20721. 0, 1, 0, msm_routing_get_switch_mixer,
  20722. msm_routing_put_switch_mixer);
  20723. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20724. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20725. 0, 1, 0, msm_routing_get_switch_mixer,
  20726. msm_routing_put_switch_mixer);
  20727. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20728. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20729. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20730. msm_routing_put_fm_pcmrx_switch_mixer);
  20731. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20732. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20733. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20734. msm_routing_put_int0_mi2s_switch_mixer);
  20735. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20736. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20737. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20738. msm_routing_put_int4_mi2s_switch_mixer);
  20739. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20740. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20741. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20742. msm_routing_put_pri_mi2s_switch_mixer);
  20743. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20744. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20745. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20746. msm_routing_put_sec_mi2s_switch_mixer);
  20747. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20748. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20749. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20750. msm_routing_put_tert_mi2s_switch_mixer);
  20751. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20752. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20753. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20754. msm_routing_put_quat_mi2s_switch_mixer);
  20755. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20756. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20757. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20758. msm_routing_put_quin_mi2s_switch_mixer);
  20759. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20760. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20761. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20762. msm_routing_put_sen_mi2s_switch_mixer);
  20763. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20764. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20765. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20766. msm_routing_put_hfp_switch_mixer);
  20767. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20768. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20769. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20770. msm_routing_put_hfp_switch_mixer);
  20771. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20772. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20773. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20774. msm_routing_put_hfp_switch_mixer);
  20775. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20776. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20777. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20778. msm_routing_put_hfp_switch_mixer);
  20779. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20780. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20781. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20782. msm_routing_put_usb_switch_mixer);
  20783. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20784. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20785. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20786. msm_routing_a2dp_switch_mixer_put);
  20787. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20788. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20789. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20790. msm_routing_sco_switch_mixer_put);
  20791. static const struct soc_enum lsm_port_enum =
  20792. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20793. static const char * const lsm_func_text[] = {
  20794. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20795. };
  20796. static const struct soc_enum lsm_func_enum =
  20797. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20798. static const struct snd_kcontrol_new lsm_controls[] = {
  20799. /* kcontrol of lsm_function */
  20800. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20801. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20802. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20803. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20804. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20805. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20806. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20807. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20808. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20809. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20810. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20811. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20812. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20813. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20814. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20815. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20816. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20817. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20818. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20819. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20820. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20821. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20822. /* kcontrol of lsm_port */
  20823. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20824. msm_routing_lsm_port_get,
  20825. msm_routing_lsm_port_put),
  20826. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20827. msm_routing_lsm_port_get,
  20828. msm_routing_lsm_port_put),
  20829. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20830. msm_routing_lsm_port_get,
  20831. msm_routing_lsm_port_put),
  20832. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20833. msm_routing_lsm_port_get,
  20834. msm_routing_lsm_port_put),
  20835. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20836. msm_routing_lsm_port_get,
  20837. msm_routing_lsm_port_put),
  20838. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20839. msm_routing_lsm_port_get,
  20840. msm_routing_lsm_port_put),
  20841. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20842. msm_routing_lsm_port_get,
  20843. msm_routing_lsm_port_put),
  20844. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20845. msm_routing_lsm_port_get,
  20846. msm_routing_lsm_port_put),
  20847. };
  20848. static const char * const aanc_slim_0_rx_text[] = {
  20849. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20850. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20851. };
  20852. static const struct soc_enum aanc_slim_0_rx_enum =
  20853. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20854. aanc_slim_0_rx_text);
  20855. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20856. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20857. msm_routing_slim_0_rx_aanc_mux_get,
  20858. msm_routing_slim_0_rx_aanc_mux_put)
  20859. };
  20860. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20861. struct snd_ctl_elem_value *ucontrol)
  20862. {
  20863. ucontrol->value.integer.value[0] = aanc_level;
  20864. return 0;
  20865. }
  20866. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20867. struct snd_ctl_elem_value *ucontrol)
  20868. {
  20869. int ret = 0;
  20870. mutex_lock(&routing_lock);
  20871. aanc_level = ucontrol->value.integer.value[0];
  20872. pr_debug("%s: value: %ld\n",
  20873. __func__, ucontrol->value.integer.value[0]);
  20874. ret = afe_set_aanc_noise_level(aanc_level);
  20875. mutex_unlock(&routing_lock);
  20876. return ret;
  20877. }
  20878. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20879. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20880. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20881. };
  20882. static int msm_routing_get_stereo_to_custom_stereo_control(
  20883. struct snd_kcontrol *kcontrol,
  20884. struct snd_ctl_elem_value *ucontrol)
  20885. {
  20886. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20887. return 0;
  20888. }
  20889. static int msm_routing_put_stereo_to_custom_stereo_control(
  20890. struct snd_kcontrol *kcontrol,
  20891. struct snd_ctl_elem_value *ucontrol)
  20892. {
  20893. int flag = 0, i = 0, rc = 0, idx = 0;
  20894. int be_index = 0, port_id, topo_id;
  20895. unsigned int session_id = 0;
  20896. uint16_t op_FL_ip_FL_weight = 0;
  20897. uint16_t op_FL_ip_FR_weight = 0;
  20898. uint16_t op_FR_ip_FL_weight = 0;
  20899. uint16_t op_FR_ip_FR_weight = 0;
  20900. flag = ucontrol->value.integer.value[0];
  20901. pr_debug("%s E flag %d\n", __func__, flag);
  20902. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20903. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20904. __func__, is_custom_stereo_on, flag);
  20905. return 0;
  20906. }
  20907. is_custom_stereo_on = flag ? true : false;
  20908. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20909. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20910. port_id = msm_bedais[be_index].port_id;
  20911. if (!msm_bedais[be_index].active)
  20912. continue;
  20913. if ((port_id != SLIMBUS_0_RX) &&
  20914. (port_id != RT_PROXY_PORT_001_RX) &&
  20915. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20916. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20917. continue;
  20918. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20919. MSM_FRONTEND_DAI_MM_SIZE) {
  20920. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20921. LEGACY_PCM_MODE)
  20922. goto skip_send_custom_stereo;
  20923. session_id =
  20924. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20925. if (is_custom_stereo_on) {
  20926. op_FL_ip_FL_weight =
  20927. Q14_GAIN_ZERO_POINT_FIVE;
  20928. op_FL_ip_FR_weight =
  20929. Q14_GAIN_ZERO_POINT_FIVE;
  20930. op_FR_ip_FL_weight =
  20931. Q14_GAIN_ZERO_POINT_FIVE;
  20932. op_FR_ip_FR_weight =
  20933. Q14_GAIN_ZERO_POINT_FIVE;
  20934. } else {
  20935. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20936. op_FL_ip_FR_weight = 0;
  20937. op_FR_ip_FL_weight = 0;
  20938. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20939. }
  20940. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20941. unsigned long copp =
  20942. session_copp_map[i]
  20943. [SESSION_TYPE_RX][be_index];
  20944. if (!test_bit(idx, &copp))
  20945. goto skip_send_custom_stereo;
  20946. topo_id = adm_get_topology_for_port_copp_idx(
  20947. msm_bedais[be_index].port_id, idx);
  20948. if (topo_id < 0)
  20949. pr_debug("%s:Err:custom stereo topo %d",
  20950. __func__, topo_id);
  20951. pr_debug("idx %d\n", idx);
  20952. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20953. rc = msm_ds2_dap_set_custom_stereo_onoff
  20954. (msm_bedais[be_index].port_id,
  20955. idx, is_custom_stereo_on);
  20956. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20957. rc = dolby_dap_set_custom_stereo_onoff(
  20958. msm_bedais[be_index].port_id,
  20959. idx, is_custom_stereo_on);
  20960. else
  20961. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20962. (msm_bedais[be_index].port_id,
  20963. idx, session_id,
  20964. op_FL_ip_FL_weight,
  20965. op_FL_ip_FR_weight,
  20966. op_FR_ip_FL_weight,
  20967. op_FR_ip_FR_weight);
  20968. if (rc < 0)
  20969. skip_send_custom_stereo:
  20970. pr_err("%s: err setting custom stereo\n",
  20971. __func__);
  20972. }
  20973. }
  20974. }
  20975. return 0;
  20976. }
  20977. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20978. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20979. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20980. msm_routing_put_stereo_to_custom_stereo_control),
  20981. };
  20982. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20983. struct snd_ctl_elem_value *ucontrol)
  20984. {
  20985. return 0;
  20986. }
  20987. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20988. struct snd_ctl_elem_value *ucontrol)
  20989. {
  20990. int i = 0, j;
  20991. int num_app_types = ucontrol->value.integer.value[i++];
  20992. pr_debug("%s\n", __func__);
  20993. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20994. sizeof(struct msm_pcm_routing_app_type_data));
  20995. if (num_app_types > MAX_APP_TYPES) {
  20996. pr_err("%s: number of app types exceed the max supported\n",
  20997. __func__);
  20998. return -EINVAL;
  20999. }
  21000. for (j = 0; j < num_app_types; j++) {
  21001. app_type_cfg[j].app_type =
  21002. ucontrol->value.integer.value[i++];
  21003. app_type_cfg[j].sample_rate =
  21004. ucontrol->value.integer.value[i++];
  21005. app_type_cfg[j].bit_width =
  21006. ucontrol->value.integer.value[i++];
  21007. }
  21008. return 0;
  21009. }
  21010. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21011. struct snd_ctl_elem_value *ucontrol)
  21012. {
  21013. int j, fe_id, be_id, port_type;
  21014. int ret = 0;
  21015. unsigned long copp;
  21016. struct msm_pcm_routing_bdai_data *bedai;
  21017. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21018. SESSION_TYPE_RX;
  21019. int app_type = ucontrol->value.integer.value[1];
  21020. int gain = (ucontrol->value.integer.value[2] +
  21021. ucontrol->value.integer.value[3])/2;
  21022. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21023. MSM_AFE_PORT_TYPE_TX;
  21024. mutex_lock(&routing_lock);
  21025. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21026. if (is_be_dai_extproc(be_id))
  21027. continue;
  21028. bedai = &msm_bedais[be_id];
  21029. if (afe_get_port_type(bedai->port_id) != port_type)
  21030. continue;
  21031. if (!bedai->active)
  21032. continue;
  21033. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21034. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21035. continue;
  21036. if (app_type !=
  21037. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21038. continue;
  21039. copp = session_copp_map[fe_id][dir][be_id];
  21040. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21041. if (!test_bit(j, &copp))
  21042. continue;
  21043. ret |= adm_set_volume(bedai->port_id, j, gain);
  21044. }
  21045. }
  21046. }
  21047. mutex_unlock(&routing_lock);
  21048. return ret ? -EINVAL : 0;
  21049. }
  21050. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21051. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21052. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21053. msm_routing_put_app_type_cfg_control),
  21054. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21055. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21056. };
  21057. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21058. struct snd_ctl_elem_value *ucontrol)
  21059. {
  21060. int copp_idx, fe_id, be_id, port_type;
  21061. int ret = 0;
  21062. unsigned long copp;
  21063. struct msm_pcm_routing_bdai_data *bedai;
  21064. u8 *packed_params = NULL;
  21065. struct param_hdr_v3 param_hdr;
  21066. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21067. sizeof(uint32_t));
  21068. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21069. SESSION_TYPE_RX;
  21070. int app_type = ucontrol->value.integer.value[1];
  21071. int module_id = ucontrol->value.integer.value[2];
  21072. int instance_id = ucontrol->value.integer.value[3];
  21073. int param_id = ucontrol->value.integer.value[4];
  21074. int param_value = ucontrol->value.integer.value[5];
  21075. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21076. MSM_AFE_PORT_TYPE_TX;
  21077. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21078. __func__, app_type, module_id,
  21079. instance_id, param_id, param_value);
  21080. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21081. if (!packed_params)
  21082. return -ENOMEM;
  21083. memset(&param_hdr, 0, sizeof(param_hdr));
  21084. param_hdr.module_id = module_id;
  21085. param_hdr.instance_id = instance_id;
  21086. param_hdr.param_id = param_id;
  21087. param_hdr.param_size = sizeof(uint32_t);
  21088. packed_param_size = 0;
  21089. mutex_lock(&routing_lock);
  21090. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21091. if (is_be_dai_extproc(be_id))
  21092. continue;
  21093. bedai = &msm_bedais[be_id];
  21094. if (afe_get_port_type(bedai->port_id) != port_type)
  21095. continue;
  21096. if (!bedai->active)
  21097. continue;
  21098. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21099. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21100. continue;
  21101. if (app_type !=
  21102. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21103. continue;
  21104. copp = session_copp_map[fe_id][dir][be_id];
  21105. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21106. copp_idx++) {
  21107. if (!test_bit(copp_idx, &copp))
  21108. continue;
  21109. ret = q6common_pack_pp_params(packed_params,
  21110. &param_hdr,
  21111. (u8 *) &param_value,
  21112. &packed_param_size);
  21113. if (ret) {
  21114. pr_err("%s: Failed to pack params, error %d\n",
  21115. __func__, ret);
  21116. goto done;
  21117. }
  21118. ret = adm_set_pp_params(bedai->port_id,
  21119. copp_idx, NULL,
  21120. packed_params,
  21121. packed_param_size);
  21122. if (ret) {
  21123. pr_err("%s: Setting param failed with err=%d\n",
  21124. __func__, ret);
  21125. ret = -EINVAL;
  21126. goto done;
  21127. }
  21128. }
  21129. }
  21130. }
  21131. done:
  21132. mutex_unlock(&routing_lock);
  21133. kfree(packed_params);
  21134. return ret;
  21135. }
  21136. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21137. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21138. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21139. };
  21140. static int msm_routing_get_lsm_app_type_cfg_control(
  21141. struct snd_kcontrol *kcontrol,
  21142. struct snd_ctl_elem_value *ucontrol)
  21143. {
  21144. int shift = ((struct soc_multi_mixer_control *)
  21145. kcontrol->private_value)->shift;
  21146. int i = 0, j = 0;
  21147. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21148. for (j = 0; j < num_app_cfg_types; ++j) {
  21149. ucontrol->value.integer.value[++i] =
  21150. lsm_app_type_cfg[j].app_type;
  21151. ucontrol->value.integer.value[++i] =
  21152. lsm_app_type_cfg[j].sample_rate;
  21153. ucontrol->value.integer.value[++i] =
  21154. lsm_app_type_cfg[j].bit_width;
  21155. if (shift == 1)
  21156. ucontrol->value.integer.value[++i] =
  21157. lsm_app_type_cfg[j].num_out_channels;
  21158. }
  21159. return 0;
  21160. }
  21161. static int msm_routing_put_lsm_app_type_cfg_control(
  21162. struct snd_kcontrol *kcontrol,
  21163. struct snd_ctl_elem_value *ucontrol)
  21164. {
  21165. int shift = ((struct soc_multi_mixer_control *)
  21166. kcontrol->private_value)->shift;
  21167. int i = 0, j;
  21168. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21169. pr_err("%s: number of app types exceed the max supported\n",
  21170. __func__);
  21171. return -EINVAL;
  21172. }
  21173. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21174. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21175. sizeof(struct msm_pcm_routing_app_type_data));
  21176. for (j = 0; j < num_app_cfg_types; j++) {
  21177. lsm_app_type_cfg[j].app_type =
  21178. ucontrol->value.integer.value[i++];
  21179. lsm_app_type_cfg[j].sample_rate =
  21180. ucontrol->value.integer.value[i++];
  21181. lsm_app_type_cfg[j].bit_width =
  21182. ucontrol->value.integer.value[i++];
  21183. /* Shift of 1 indicates this is V2 mixer control */
  21184. if (shift == 1)
  21185. lsm_app_type_cfg[j].num_out_channels =
  21186. ucontrol->value.integer.value[i++];
  21187. }
  21188. return 0;
  21189. }
  21190. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21191. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21192. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21193. msm_routing_put_lsm_app_type_cfg_control),
  21194. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21195. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21196. msm_routing_put_lsm_app_type_cfg_control),
  21197. };
  21198. static int msm_routing_get_use_ds1_or_ds2_control(
  21199. struct snd_kcontrol *kcontrol,
  21200. struct snd_ctl_elem_value *ucontrol)
  21201. {
  21202. ucontrol->value.integer.value[0] = is_ds2_on;
  21203. return 0;
  21204. }
  21205. static int msm_routing_put_use_ds1_or_ds2_control(
  21206. struct snd_kcontrol *kcontrol,
  21207. struct snd_ctl_elem_value *ucontrol)
  21208. {
  21209. is_ds2_on = ucontrol->value.integer.value[0];
  21210. return 0;
  21211. }
  21212. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21213. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21214. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21215. msm_routing_put_use_ds1_or_ds2_control),
  21216. };
  21217. static int msm_routing_get_hifi_filter_control(
  21218. struct snd_kcontrol *kcontrol,
  21219. struct snd_ctl_elem_value *ucontrol)
  21220. {
  21221. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21222. return 0;
  21223. }
  21224. static int msm_routing_put_hifi_filter_control(
  21225. struct snd_kcontrol *kcontrol,
  21226. struct snd_ctl_elem_value *ucontrol)
  21227. {
  21228. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21229. return 0;
  21230. }
  21231. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21232. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21233. 1, 0, msm_routing_get_hifi_filter_control,
  21234. msm_routing_put_hifi_filter_control),
  21235. };
  21236. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21237. struct snd_ctl_elem_value *ucontrol) {
  21238. int rc = 0;
  21239. int be_idx = 0;
  21240. char *param_value;
  21241. int *update_param_value;
  21242. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21243. struct param_hdr_v3 param_hdr;
  21244. param_value = kzalloc(param_size, GFP_KERNEL);
  21245. if (!param_value)
  21246. return -ENOMEM;
  21247. memset(&param_hdr, 0, sizeof(param_hdr));
  21248. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21249. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21250. break;
  21251. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21252. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21253. param_hdr.instance_id = INSTANCE_ID_0;
  21254. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21255. param_hdr.param_size = param_size;
  21256. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21257. NULL, &param_hdr, (u8 *) param_value);
  21258. if (rc) {
  21259. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21260. kfree(param_value);
  21261. return -EINVAL;
  21262. }
  21263. update_param_value = (int *)param_value;
  21264. ucontrol->value.integer.value[0] = update_param_value[0];
  21265. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21266. __func__, update_param_value[0]);
  21267. }
  21268. kfree(param_value);
  21269. return 0;
  21270. }
  21271. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21272. struct snd_ctl_elem_value *ucontrol)
  21273. {
  21274. voc_session_id = ucontrol->value.integer.value[0];
  21275. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21276. return 0;
  21277. }
  21278. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21279. struct snd_ctl_elem_value *ucontrol)
  21280. {
  21281. ucontrol->value.integer.value[0] = voc_session_id;
  21282. return 0;
  21283. }
  21284. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21285. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21286. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21287. msm_voc_session_id_put),
  21288. };
  21289. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21290. struct snd_ctl_elem_info *uinfo)
  21291. {
  21292. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21293. uinfo->count = sizeof(struct sound_focus_param);
  21294. return 0;
  21295. }
  21296. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21297. struct snd_ctl_elem_value *ucontrol)
  21298. {
  21299. int ret = 0;
  21300. struct sound_focus_param soundFocusData;
  21301. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21302. sizeof(struct sound_focus_param));
  21303. ret = voc_set_sound_focus(soundFocusData);
  21304. if (ret) {
  21305. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21306. __func__, ret);
  21307. ret = -EINVAL;
  21308. }
  21309. return ret;
  21310. }
  21311. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21312. struct snd_ctl_elem_value *ucontrol)
  21313. {
  21314. int ret = 0;
  21315. struct sound_focus_param soundFocusData;
  21316. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21317. ret = voc_get_sound_focus(&soundFocusData);
  21318. if (ret) {
  21319. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21320. __func__, ret);
  21321. ret = -EINVAL;
  21322. goto done;
  21323. }
  21324. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21325. sizeof(struct sound_focus_param));
  21326. done:
  21327. return ret;
  21328. }
  21329. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21330. struct snd_ctl_elem_info *uinfo)
  21331. {
  21332. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21333. uinfo->count = sizeof(struct source_tracking_param);
  21334. return 0;
  21335. }
  21336. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21337. struct snd_ctl_elem_value *ucontrol)
  21338. {
  21339. int ret = 0;
  21340. struct source_tracking_param sourceTrackingData;
  21341. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21342. ret = voc_get_source_tracking(&sourceTrackingData);
  21343. if (ret) {
  21344. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21345. __func__, ret);
  21346. ret = -EINVAL;
  21347. goto done;
  21348. }
  21349. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21350. sizeof(struct source_tracking_param));
  21351. done:
  21352. return ret;
  21353. }
  21354. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21355. int *copp_idx)
  21356. {
  21357. int i, idx, be_idx;
  21358. int ret = 0;
  21359. unsigned long copp;
  21360. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21361. ret = q6audio_validate_port(port_id);
  21362. if (ret < 0) {
  21363. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21364. __func__, port_id, ret);
  21365. ret = -EINVAL;
  21366. goto done;
  21367. }
  21368. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21369. if (msm_bedais[be_idx].port_id == port_id)
  21370. break;
  21371. }
  21372. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21373. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21374. ret = -EINVAL;
  21375. goto done;
  21376. }
  21377. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21378. MSM_FRONTEND_DAI_MAX) {
  21379. if (!(is_mm_lsm_fe_id(i) &&
  21380. route_check_fe_id_adm_support(i)))
  21381. continue;
  21382. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21383. copp = session_copp_map[i]
  21384. [session_type][be_idx];
  21385. if (test_bit(idx, &copp))
  21386. break;
  21387. }
  21388. if (idx >= MAX_COPPS_PER_PORT)
  21389. continue;
  21390. else
  21391. break;
  21392. }
  21393. if (i >= MSM_FRONTEND_DAI_MAX) {
  21394. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21395. ret = -EINVAL;
  21396. goto done;
  21397. }
  21398. *copp_idx = idx;
  21399. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21400. done:
  21401. return ret;
  21402. }
  21403. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21404. const char *prefix, int *port_id)
  21405. {
  21406. int ret = 0;
  21407. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21408. /*
  21409. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21410. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21411. * and compare the string with the backend name to derive the port id.
  21412. */
  21413. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21414. "SLIMBUS_0")) {
  21415. *port_id = SLIMBUS_0_TX;
  21416. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21417. "TERT_MI2S")) {
  21418. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21419. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21420. "INT3_MI2S")) {
  21421. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21422. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21423. "VA_CDC_DMA_TX_0")) {
  21424. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21425. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21426. "TX_CDC_DMA_TX_3")) {
  21427. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21428. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21429. "QUIN_TDM_TX_0")) {
  21430. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21431. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21432. "PRIMARY_TDM")) {
  21433. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21434. } else {
  21435. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21436. __func__, kcontrol->id.name);
  21437. ret = -EINVAL;
  21438. goto done;
  21439. }
  21440. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21441. __func__, kcontrol->id.name, *port_id);
  21442. done:
  21443. return ret;
  21444. }
  21445. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21446. struct snd_ctl_elem_value *ucontrol)
  21447. {
  21448. int ret = 0;
  21449. struct sound_focus_param soundFocusData;
  21450. int port_id, copp_idx;
  21451. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21452. "Sound Focus Audio Tx ", &port_id);
  21453. if (ret != 0) {
  21454. pr_err("%s: Error in deriving port id, err=%d\n",
  21455. __func__, ret);
  21456. ret = -EINVAL;
  21457. goto done;
  21458. }
  21459. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21460. &copp_idx);
  21461. if (ret) {
  21462. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21463. __func__, port_id);
  21464. ret = -EINVAL;
  21465. goto done;
  21466. }
  21467. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21468. sizeof(struct sound_focus_param));
  21469. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21470. if (ret) {
  21471. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21472. __func__, ret);
  21473. ret = -EINVAL;
  21474. goto done;
  21475. }
  21476. done:
  21477. return ret;
  21478. }
  21479. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21480. struct snd_ctl_elem_value *ucontrol)
  21481. {
  21482. int ret = 0;
  21483. struct sound_focus_param soundFocusData;
  21484. int port_id, copp_idx;
  21485. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21486. "Sound Focus Audio Tx ", &port_id);
  21487. if (ret) {
  21488. pr_err("%s: Error in deriving port id, err=%d\n",
  21489. __func__, ret);
  21490. ret = -EINVAL;
  21491. goto done;
  21492. }
  21493. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21494. &copp_idx);
  21495. if (ret) {
  21496. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21497. __func__, port_id);
  21498. ret = -EINVAL;
  21499. goto done;
  21500. }
  21501. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21502. if (ret) {
  21503. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21504. __func__, ret);
  21505. ret = -EINVAL;
  21506. goto done;
  21507. }
  21508. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21509. sizeof(struct sound_focus_param));
  21510. done:
  21511. return ret;
  21512. }
  21513. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21514. struct snd_ctl_elem_value *ucontrol)
  21515. {
  21516. int ret = 0;
  21517. struct source_tracking_param sourceTrackingData;
  21518. int port_id, copp_idx;
  21519. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21520. "Source Tracking Audio Tx ", &port_id);
  21521. if (ret) {
  21522. pr_err("%s: Error in deriving port id, err=%d\n",
  21523. __func__, ret);
  21524. ret = -EINVAL;
  21525. goto done;
  21526. }
  21527. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21528. &copp_idx);
  21529. if (ret) {
  21530. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21531. __func__, port_id);
  21532. ret = -EINVAL;
  21533. goto done;
  21534. }
  21535. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21536. if (ret) {
  21537. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21538. __func__, ret);
  21539. ret = -EINVAL;
  21540. goto done;
  21541. }
  21542. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21543. sizeof(struct source_tracking_param));
  21544. done:
  21545. return ret;
  21546. }
  21547. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21548. struct snd_ctl_elem_info *uinfo)
  21549. {
  21550. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21551. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21552. return 0;
  21553. }
  21554. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21555. struct snd_ctl_elem_value *ucontrol)
  21556. {
  21557. int ret = 0;
  21558. struct doa_tracking_mon_param doa_tracking_data;
  21559. int port_id, copp_idx;
  21560. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21561. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21562. "Doa Tracking Monitor Listen ", &port_id);
  21563. if (ret) {
  21564. pr_err("%s: Error in deriving port id, err=%d\n",
  21565. __func__, ret);
  21566. ret = -EINVAL;
  21567. goto done;
  21568. }
  21569. /*
  21570. * If copp id exists for given port id, query adm to get doa data.
  21571. * Else query afe for doa tracking params.
  21572. * This is to support in cases where LSM directly connects to
  21573. * AFE for FFNS.
  21574. */
  21575. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21576. &copp_idx);
  21577. if (!ret)
  21578. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21579. &doa_tracking_data);
  21580. else
  21581. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21582. if (ret) {
  21583. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21584. __func__, ret);
  21585. ret = -EINVAL;
  21586. goto done;
  21587. }
  21588. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21589. sizeof(struct doa_tracking_mon_param));
  21590. done:
  21591. return ret;
  21592. }
  21593. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21594. {
  21595. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21596. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21597. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21598. .info = msm_sound_focus_info,
  21599. .get = msm_voice_sound_focus_get,
  21600. .put = msm_voice_sound_focus_put,
  21601. },
  21602. {
  21603. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21604. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21605. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21606. .info = msm_source_tracking_info,
  21607. .get = msm_voice_source_tracking_get,
  21608. },
  21609. {
  21610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21612. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21613. .info = msm_sound_focus_info,
  21614. .get = msm_audio_sound_focus_get,
  21615. .put = msm_audio_sound_focus_put,
  21616. },
  21617. {
  21618. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21620. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21621. .info = msm_source_tracking_info,
  21622. .get = msm_audio_source_tracking_get,
  21623. },
  21624. {
  21625. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21626. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21627. .name = "Sound Focus Voice Tx TERT_MI2S",
  21628. .info = msm_sound_focus_info,
  21629. .get = msm_voice_sound_focus_get,
  21630. .put = msm_voice_sound_focus_put,
  21631. },
  21632. {
  21633. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21634. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21635. .name = "Source Tracking Voice Tx TERT_MI2S",
  21636. .info = msm_source_tracking_info,
  21637. .get = msm_voice_source_tracking_get,
  21638. },
  21639. {
  21640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21642. .name = "Sound Focus Audio Tx TERT_MI2S",
  21643. .info = msm_sound_focus_info,
  21644. .get = msm_audio_sound_focus_get,
  21645. .put = msm_audio_sound_focus_put,
  21646. },
  21647. {
  21648. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21650. .name = "Source Tracking Audio Tx TERT_MI2S",
  21651. .info = msm_source_tracking_info,
  21652. .get = msm_audio_source_tracking_get,
  21653. },
  21654. {
  21655. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21656. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21657. .name = "Sound Focus Voice Tx INT3_MI2S",
  21658. .info = msm_sound_focus_info,
  21659. .get = msm_voice_sound_focus_get,
  21660. .put = msm_voice_sound_focus_put,
  21661. },
  21662. {
  21663. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21664. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21665. .name = "Source Tracking Voice Tx INT3_MI2S",
  21666. .info = msm_source_tracking_info,
  21667. .get = msm_voice_source_tracking_get,
  21668. },
  21669. {
  21670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21672. .name = "Sound Focus Audio Tx INT3_MI2S",
  21673. .info = msm_sound_focus_info,
  21674. .get = msm_audio_sound_focus_get,
  21675. .put = msm_audio_sound_focus_put,
  21676. },
  21677. {
  21678. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21680. .name = "Source Tracking Audio Tx INT3_MI2S",
  21681. .info = msm_source_tracking_info,
  21682. .get = msm_audio_source_tracking_get,
  21683. },
  21684. {
  21685. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21686. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21687. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21688. .info = msm_sound_focus_info,
  21689. .get = msm_voice_sound_focus_get,
  21690. .put = msm_voice_sound_focus_put,
  21691. },
  21692. {
  21693. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21694. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21695. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21696. .info = msm_source_tracking_info,
  21697. .get = msm_voice_source_tracking_get,
  21698. },
  21699. {
  21700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21702. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21703. .info = msm_sound_focus_info,
  21704. .get = msm_audio_sound_focus_get,
  21705. .put = msm_audio_sound_focus_put,
  21706. },
  21707. {
  21708. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21710. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21711. .info = msm_source_tracking_info,
  21712. .get = msm_audio_source_tracking_get,
  21713. },
  21714. {
  21715. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21716. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21717. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21718. .info = msm_sound_focus_info,
  21719. .get = msm_voice_sound_focus_get,
  21720. .put = msm_voice_sound_focus_put,
  21721. },
  21722. {
  21723. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21724. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21725. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21726. .info = msm_source_tracking_info,
  21727. .get = msm_voice_source_tracking_get,
  21728. },
  21729. {
  21730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21731. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21732. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21733. .info = msm_sound_focus_info,
  21734. .get = msm_audio_sound_focus_get,
  21735. .put = msm_audio_sound_focus_put,
  21736. },
  21737. {
  21738. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21740. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21741. .info = msm_source_tracking_info,
  21742. .get = msm_audio_source_tracking_get,
  21743. },
  21744. {
  21745. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21746. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21747. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21748. .info = msm_sound_focus_info,
  21749. .get = msm_voice_sound_focus_get,
  21750. .put = msm_voice_sound_focus_put,
  21751. },
  21752. {
  21753. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21754. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21755. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21756. .info = msm_source_tracking_info,
  21757. .get = msm_voice_source_tracking_get,
  21758. },
  21759. {
  21760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21761. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21762. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21763. .info = msm_sound_focus_info,
  21764. .get = msm_audio_sound_focus_get,
  21765. .put = msm_audio_sound_focus_put,
  21766. },
  21767. {
  21768. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21770. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21771. .info = msm_source_tracking_info,
  21772. .get = msm_audio_source_tracking_get,
  21773. },
  21774. {
  21775. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21776. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21777. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21778. .info = msm_sound_focus_info,
  21779. .get = msm_audio_sound_focus_get,
  21780. .put = msm_audio_sound_focus_put,
  21781. },
  21782. {
  21783. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21784. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21785. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21786. .info = msm_source_tracking_info,
  21787. .get = msm_audio_source_tracking_get,
  21788. },
  21789. {
  21790. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21791. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21792. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21793. .info = msm_doa_tracking_mon_info,
  21794. .get = msm_doa_tracking_mon_get,
  21795. },
  21796. };
  21797. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21798. struct snd_ctl_elem_value *ucontrol)
  21799. {
  21800. int ret = 0;
  21801. int item;
  21802. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21803. pr_debug("%s item is %d\n", __func__,
  21804. ucontrol->value.enumerated.item[0]);
  21805. mutex_lock(&routing_lock);
  21806. item = ucontrol->value.enumerated.item[0];
  21807. if (item < e->items) {
  21808. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21809. __func__, e->shift_l, e->values[item]);
  21810. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21811. e->values[item] < MSM_BACKEND_DAI_MAX)
  21812. /* Enable feedback TX path */
  21813. ret = afe_spk_prot_feed_back_cfg(
  21814. msm_bedais[e->values[item]].port_id,
  21815. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21816. else {
  21817. pr_debug("%s values are out of range item %d\n",
  21818. __func__, e->values[item]);
  21819. /* Disable feedback TX path */
  21820. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21821. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21822. else
  21823. ret = -EINVAL;
  21824. }
  21825. } else {
  21826. pr_err("%s item value is out of range item\n", __func__);
  21827. ret = -EINVAL;
  21828. }
  21829. mutex_unlock(&routing_lock);
  21830. return ret;
  21831. }
  21832. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21833. struct snd_ctl_elem_value *ucontrol)
  21834. {
  21835. int ret = 0;
  21836. int item;
  21837. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21838. pr_debug("%s item is %d\n", __func__,
  21839. ucontrol->value.enumerated.item[0]);
  21840. mutex_lock(&routing_lock);
  21841. item = ucontrol->value.enumerated.item[0];
  21842. if (item < e->items) {
  21843. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21844. __func__, e->shift_l, e->values[item]);
  21845. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21846. e->values[item] < MSM_BACKEND_DAI_MAX)
  21847. /* Enable feedback TX path */
  21848. ret = afe_spk_prot_feed_back_cfg(
  21849. msm_bedais[e->values[item]].port_id,
  21850. msm_bedais[e->shift_l].port_id,
  21851. 1, 1, 1);
  21852. else {
  21853. pr_debug("%s values are out of range item %d\n",
  21854. __func__, e->values[item]);
  21855. /* Disable feedback TX path */
  21856. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21857. ret = afe_spk_prot_feed_back_cfg(0,
  21858. 0, 0, 0, 0);
  21859. else
  21860. ret = -EINVAL;
  21861. }
  21862. } else {
  21863. pr_err("%s item value is out of range item\n", __func__);
  21864. ret = -EINVAL;
  21865. }
  21866. mutex_unlock(&routing_lock);
  21867. return ret;
  21868. }
  21869. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21870. struct snd_ctl_elem_value *ucontrol)
  21871. {
  21872. pr_debug("%s\n", __func__);
  21873. return 0;
  21874. }
  21875. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21876. struct snd_ctl_elem_value *ucontrol)
  21877. {
  21878. pr_debug("%s\n", __func__);
  21879. ucontrol->value.enumerated.item[0] = 0;
  21880. return 0;
  21881. }
  21882. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21883. "ZERO", "SLIM4_TX"
  21884. };
  21885. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21886. "ZERO", "SLIM4_TX"
  21887. };
  21888. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21889. "ZERO", "WSA_CDC_DMA_TX_0"
  21890. };
  21891. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21892. "ZERO", "WSA_CDC_DMA_TX_0"
  21893. };
  21894. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21895. "ZERO", "SENARY_TX"
  21896. };
  21897. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21898. "ZERO", "INT5_MI2S_TX"
  21899. };
  21900. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21901. "ZERO", "INT5_MI2S_TX"
  21902. };
  21903. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21904. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21905. };
  21906. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21907. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21908. };
  21909. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21910. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21911. };
  21912. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21913. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21914. };
  21915. static const int mi2s_rx_vi_fb_tx_value[] = {
  21916. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21917. };
  21918. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21919. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21920. };
  21921. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21922. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21923. };
  21924. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21925. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21926. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21927. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21928. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21929. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21930. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21931. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21932. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21933. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21934. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21935. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21936. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21937. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21938. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21939. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21940. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21941. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21942. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21943. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21944. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21945. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21946. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21947. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21948. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21949. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21950. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21951. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21952. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21953. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21954. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21955. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21956. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21957. spkr_prot_put_vi_lch_port);
  21958. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21959. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21960. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21961. spkr_prot_put_vi_rch_port);
  21962. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21963. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21964. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21965. spkr_prot_put_vi_lch_port);
  21966. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21967. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21968. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21969. spkr_prot_put_vi_rch_port);
  21970. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21971. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21972. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21973. spkr_prot_put_vi_lch_port);
  21974. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21975. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21976. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21977. spkr_prot_put_vi_lch_port);
  21978. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21979. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21980. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21981. spkr_prot_put_vi_rch_port);
  21982. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21983. /* Frontend AIF */
  21984. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21985. * Stream name must contains substring of front-end dai name
  21986. */
  21987. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21988. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21989. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21990. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21991. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21992. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21993. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21994. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21995. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21996. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21997. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21998. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21999. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22000. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22001. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22002. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22003. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22004. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22005. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22006. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22007. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22008. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22009. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22010. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22011. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22012. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22013. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22014. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22015. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22016. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22017. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22018. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22019. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22020. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22021. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22022. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22023. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22024. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22025. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22026. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22027. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22028. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22029. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22030. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22031. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22032. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22033. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22034. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22035. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22036. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22037. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22038. 0, 0, 0, 0),
  22039. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22040. 0, 0, 0, 0),
  22041. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22042. 0, 0, 0, 0),
  22043. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22044. 0, 0, 0, 0),
  22045. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22046. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22047. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22048. 0, 0, 0, 0),
  22049. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22050. 0, 0, 0, 0),
  22051. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22052. 0, 0, 0, 0),
  22053. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22054. 0, 0, 0, 0),
  22055. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22056. 0, 0, 0, 0),
  22057. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22058. 0, 0, 0, 0),
  22059. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22060. 0, 0, 0, 0),
  22061. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22062. 0, 0, 0, 0),
  22063. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22064. 0, 0, 0, 0),
  22065. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22066. 0, 0, 0, 0),
  22067. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22068. 0, 0, 0, 0),
  22069. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22070. 0, 0, 0, 0),
  22071. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22072. 0, 0, 0, 0),
  22073. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22074. 0, 0, 0, 0),
  22075. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22076. 0, 0, 0, 0),
  22077. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22078. 0, 0, 0, 0),
  22079. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22080. 0, 0, 0, 0),
  22081. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22082. 0, 0, 0, 0),
  22083. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22084. 0, 0, 0, 0),
  22085. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22086. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22087. 0, 0, 0, 0),
  22088. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22089. "INT0 MI2S_RX Hostless Playback",
  22090. 0, 0, 0, 0),
  22091. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22092. "INT4 MI2S_RX Hostless Playback",
  22093. 0, 0, 0, 0),
  22094. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22095. "Primary MI2S_RX Hostless Playback",
  22096. 0, 0, 0, 0),
  22097. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22098. "Secondary MI2S_RX Hostless Playback",
  22099. 0, 0, 0, 0),
  22100. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22101. "Tertiary MI2S_RX Hostless Playback",
  22102. 0, 0, 0, 0),
  22103. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22104. "Quaternary MI2S_RX Hostless Playback",
  22105. 0, 0, 0, 0),
  22106. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22107. "Quinary MI2S_RX Hostless Playback",
  22108. 0, 0, 0, 0),
  22109. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22110. "Senary MI2S_RX Hostless Playback",
  22111. 0, 0, 0, 0),
  22112. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22113. 0, 0, 0, 0),
  22114. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22115. 0, 0, 0, 0),
  22116. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22117. 0, 0, 0, 0),
  22118. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22119. 0, 0, 0, 0),
  22120. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22121. 0, 0, 0, 0),
  22122. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22123. "INT3 MI2S_TX Hostless Capture",
  22124. 0, 0, 0, 0),
  22125. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22126. "Tertiary MI2S_TX Hostless Capture",
  22127. 0, 0, 0, 0),
  22128. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22129. "Secondary MI2S_TX Hostless Capture",
  22130. 0, 0, 0, 0),
  22131. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22132. "Primary MI2S_TX Hostless Capture",
  22133. 0, 0, 0, 0),
  22134. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22135. 0, 0, 0, 0),
  22136. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22137. 0, 0, 0, 0),
  22138. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22139. "Quaternary MI2S_TX Hostless Capture",
  22140. 0, 0, 0, 0),
  22141. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22142. "Quinary MI2S_TX Hostless Capture",
  22143. 0, 0, 0, 0),
  22144. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22145. "Senary MI2S_TX Hostless Capture",
  22146. 0, 0, 0, 0),
  22147. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22148. "Primary TDM0 Hostless Playback",
  22149. 0, 0, 0, 0),
  22150. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22151. "Primary TDM0 Hostless Capture",
  22152. 0, 0, 0, 0),
  22153. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22154. "Primary TDM1 Hostless Playback",
  22155. 0, 0, 0, 0),
  22156. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22157. "Primary TDM1 Hostless Capture",
  22158. 0, 0, 0, 0),
  22159. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22160. "Primary TDM2 Hostless Playback",
  22161. 0, 0, 0, 0),
  22162. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22163. "Primary TDM2 Hostless Capture",
  22164. 0, 0, 0, 0),
  22165. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22166. "Primary TDM3 Hostless Playback",
  22167. 0, 0, 0, 0),
  22168. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22169. "Primary TDM3 Hostless Capture",
  22170. 0, 0, 0, 0),
  22171. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22172. "Primary TDM4 Hostless Playback",
  22173. 0, 0, 0, 0),
  22174. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22175. "Primary TDM4 Hostless Capture",
  22176. 0, 0, 0, 0),
  22177. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22178. "Primary TDM5 Hostless Playback",
  22179. 0, 0, 0, 0),
  22180. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22181. "Primary TDM5 Hostless Capture",
  22182. 0, 0, 0, 0),
  22183. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  22184. "Primary TDM6 Hostless Playback",
  22185. 0, 0, 0, 0),
  22186. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  22187. "Primary TDM6 Hostless Capture",
  22188. 0, 0, 0, 0),
  22189. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  22190. "Primary TDM7 Hostless Playback",
  22191. 0, 0, 0, 0),
  22192. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  22193. "Primary TDM7 Hostless Capture",
  22194. 0, 0, 0, 0),
  22195. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  22196. "Secondary TDM0 Hostless Playback",
  22197. 0, 0, 0, 0),
  22198. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  22199. "Secondary TDM0 Hostless Capture",
  22200. 0, 0, 0, 0),
  22201. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  22202. "Secondary TDM1 Hostless Playback",
  22203. 0, 0, 0, 0),
  22204. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22205. "Secondary TDM1 Hostless Capture",
  22206. 0, 0, 0, 0),
  22207. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22208. "Secondary TDM2 Hostless Playback",
  22209. 0, 0, 0, 0),
  22210. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22211. "Secondary TDM2 Hostless Capture",
  22212. 0, 0, 0, 0),
  22213. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22214. "Secondary TDM3 Hostless Playback",
  22215. 0, 0, 0, 0),
  22216. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22217. "Secondary TDM3 Hostless Capture",
  22218. 0, 0, 0, 0),
  22219. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22220. "Secondary TDM4 Hostless Playback",
  22221. 0, 0, 0, 0),
  22222. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22223. "Secondary TDM4 Hostless Capture",
  22224. 0, 0, 0, 0),
  22225. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22226. "Secondary TDM5 Hostless Playback",
  22227. 0, 0, 0, 0),
  22228. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22229. "Secondary TDM5 Hostless Capture",
  22230. 0, 0, 0, 0),
  22231. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22232. "Secondary TDM6 Hostless Playback",
  22233. 0, 0, 0, 0),
  22234. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22235. "Secondary TDM6 Hostless Capture",
  22236. 0, 0, 0, 0),
  22237. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22238. "Secondary TDM7 Hostless Playback",
  22239. 0, 0, 0, 0),
  22240. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22241. "Secondary TDM7 Hostless Capture",
  22242. 0, 0, 0, 0),
  22243. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22244. "Tertiary TDM0 Hostless Playback",
  22245. 0, 0, 0, 0),
  22246. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22247. "Tertiary TDM0 Hostless Capture",
  22248. 0, 0, 0, 0),
  22249. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22250. "Tertiary TDM1 Hostless Playback",
  22251. 0, 0, 0, 0),
  22252. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22253. "Tertiary TDM1 Hostless Capture",
  22254. 0, 0, 0, 0),
  22255. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22256. "Tertiary TDM2 Hostless Playback",
  22257. 0, 0, 0, 0),
  22258. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22259. "Tertiary TDM2 Hostless Capture",
  22260. 0, 0, 0, 0),
  22261. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22262. "Tertiary TDM3 Hostless Playback",
  22263. 0, 0, 0, 0),
  22264. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22265. "Tertiary TDM3 Hostless Capture",
  22266. 0, 0, 0, 0),
  22267. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22268. "Tertiary TDM4 Hostless Playback",
  22269. 0, 0, 0, 0),
  22270. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22271. "Tertiary TDM4 Hostless Capture",
  22272. 0, 0, 0, 0),
  22273. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22274. "Tertiary TDM5 Hostless Playback",
  22275. 0, 0, 0, 0),
  22276. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22277. "Tertiary TDM5 Hostless Capture",
  22278. 0, 0, 0, 0),
  22279. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22280. "Tertiary TDM6 Hostless Playback",
  22281. 0, 0, 0, 0),
  22282. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22283. "Tertiary TDM6 Hostless Capture",
  22284. 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22286. "Tertiary TDM7 Hostless Playback",
  22287. 0, 0, 0, 0),
  22288. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22289. "Tertiary TDM7 Hostless Capture",
  22290. 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22292. "Quaternary TDM0 Hostless Playback",
  22293. 0, 0, 0, 0),
  22294. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22295. "Quaternary TDM0 Hostless Capture",
  22296. 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22298. "Quaternary TDM1 Hostless Playback",
  22299. 0, 0, 0, 0),
  22300. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22301. "Quaternary TDM1 Hostless Capture",
  22302. 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22304. "Quaternary TDM2 Hostless Playback",
  22305. 0, 0, 0, 0),
  22306. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22307. "Quaternary TDM2 Hostless Capture",
  22308. 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22310. "Quaternary TDM3 Hostless Playback",
  22311. 0, 0, 0, 0),
  22312. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22313. "Quaternary TDM3 Hostless Capture",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22316. "Quaternary TDM4 Hostless Playback",
  22317. 0, 0, 0, 0),
  22318. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22319. "Quaternary TDM4 Hostless Capture",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22322. "Quaternary TDM5 Hostless Playback",
  22323. 0, 0, 0, 0),
  22324. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22325. "Quaternary TDM5 Hostless Capture",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22328. "Quaternary TDM6 Hostless Playback",
  22329. 0, 0, 0, 0),
  22330. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22331. "Quaternary TDM6 Hostless Capture",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22334. "Quaternary TDM7 Hostless Playback",
  22335. 0, 0, 0, 0),
  22336. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22337. "Quaternary TDM7 Hostless Capture",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22340. "Quinary TDM0 Hostless Playback",
  22341. 0, 0, 0, 0),
  22342. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22343. "Quinary TDM0 Hostless Capture",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22346. "Quinary TDM1 Hostless Playback",
  22347. 0, 0, 0, 0),
  22348. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22349. "Quinary TDM1 Hostless Capture",
  22350. 0, 0, 0, 0),
  22351. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22352. "Quinary TDM2 Hostless Playback",
  22353. 0, 0, 0, 0),
  22354. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22355. "Quinary TDM2 Hostless Capture",
  22356. 0, 0, 0, 0),
  22357. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22358. "Quinary TDM3 Hostless Playback",
  22359. 0, 0, 0, 0),
  22360. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22361. "Quinary TDM3 Hostless Capture",
  22362. 0, 0, 0, 0),
  22363. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22364. "Quinary TDM4 Hostless Playback",
  22365. 0, 0, 0, 0),
  22366. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22367. "Quinary TDM4 Hostless Capture",
  22368. 0, 0, 0, 0),
  22369. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22370. "Quinary TDM5 Hostless Playback",
  22371. 0, 0, 0, 0),
  22372. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22373. "Quinary TDM5 Hostless Capture",
  22374. 0, 0, 0, 0),
  22375. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22376. "Quinary TDM6 Hostless Playback",
  22377. 0, 0, 0, 0),
  22378. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22379. "Quinary TDM6 Hostless Capture",
  22380. 0, 0, 0, 0),
  22381. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22382. "Quinary TDM7 Hostless Playback",
  22383. 0, 0, 0, 0),
  22384. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22385. "Quinary TDM7 Hostless Capture",
  22386. 0, 0, 0, 0),
  22387. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22388. "Senary TDM0 Hostless Playback",
  22389. 0, 0, 0, 0),
  22390. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22391. "Senary TDM0 Hostless Capture",
  22392. 0, 0, 0, 0),
  22393. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22394. "Senary TDM1 Hostless Playback",
  22395. 0, 0, 0, 0),
  22396. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22397. "Senary TDM1 Hostless Capture",
  22398. 0, 0, 0, 0),
  22399. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22400. "Senary TDM2 Hostless Playback",
  22401. 0, 0, 0, 0),
  22402. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22403. "Senary TDM2 Hostless Capture",
  22404. 0, 0, 0, 0),
  22405. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22406. "Senary TDM3 Hostless Playback",
  22407. 0, 0, 0, 0),
  22408. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22409. "Senary TDM3 Hostless Capture",
  22410. 0, 0, 0, 0),
  22411. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22412. "Senary TDM4 Hostless Playback",
  22413. 0, 0, 0, 0),
  22414. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22415. "Senary TDM4 Hostless Capture",
  22416. 0, 0, 0, 0),
  22417. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22418. "Senary TDM5 Hostless Playback",
  22419. 0, 0, 0, 0),
  22420. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22421. "Senary TDM5 Hostless Capture",
  22422. 0, 0, 0, 0),
  22423. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22424. "Senary TDM6 Hostless Playback",
  22425. 0, 0, 0, 0),
  22426. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22427. "Senary TDM6 Hostless Capture",
  22428. 0, 0, 0, 0),
  22429. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22430. "Senary TDM7 Hostless Playback",
  22431. 0, 0, 0, 0),
  22432. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22433. "Senary TDM7 Hostless Capture",
  22434. 0, 0, 0, 0),
  22435. /* LSM */
  22436. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22437. 0, 0, 0, 0),
  22438. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22439. 0, 0, 0, 0),
  22440. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22441. 0, 0, 0, 0),
  22442. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22443. 0, 0, 0, 0),
  22444. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22445. 0, 0, 0, 0),
  22446. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22447. 0, 0, 0, 0),
  22448. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22449. 0, 0, 0, 0),
  22450. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22451. 0, 0, 0, 0),
  22452. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22454. /* Backend AIF */
  22455. /* Stream name equals to backend dai link stream name */
  22456. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22457. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22460. 0, 0, 0, 0),
  22461. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22462. 0, 0, 0, 0),
  22463. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22464. 0, 0, 0, 0),
  22465. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22466. 0, 0, 0, 0),
  22467. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22468. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22469. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22470. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22472. 0, 0, 0, 0),
  22473. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22474. 0, 0, 0, 0),
  22475. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22476. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22477. 0, 0, 0, 0),
  22478. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22479. 0, 0, 0, 0),
  22480. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22481. 0, 0, 0, 0),
  22482. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22483. "Secondary MI2S Playback SD1",
  22484. 0, 0, 0, 0),
  22485. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22486. 0, 0, 0, 0),
  22487. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22490. 0, 0, 0, 0),
  22491. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22492. 0, 0, 0, 0),
  22493. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22496. 0, 0, 0, 0),
  22497. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22498. 0, 0, 0, 0),
  22499. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22500. 0, 0, 0, 0),
  22501. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22502. 0, 0, 0, 0),
  22503. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22504. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22505. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22506. 0, 0, 0, 0),
  22507. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22508. 0, 0, 0, 0),
  22509. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22510. 0, 0, 0, 0),
  22511. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22512. 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22514. 0, 0, 0, 0),
  22515. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22516. 0, 0, 0, 0),
  22517. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22518. 0, 0, 0, 0),
  22519. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22520. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22521. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22522. 0, 0, 0, 0),
  22523. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22526. 0, 0, 0, 0),
  22527. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22528. 0, 0, 0, 0),
  22529. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22530. 0, 0, 0, 0),
  22531. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22532. 0, 0, 0, 0),
  22533. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22534. 0, 0, 0, 0),
  22535. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22536. 0, 0, 0, 0),
  22537. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22538. 0, 0, 0, 0),
  22539. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22540. 0, 0, 0, 0),
  22541. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22542. 0, 0, 0, 0),
  22543. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22544. 0, 0, 0, 0),
  22545. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22546. 0, 0, 0, 0),
  22547. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22548. 0, 0, 0, 0),
  22549. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22550. 0, 0, 0, 0),
  22551. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22552. 0, 0, 0, 0),
  22553. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22554. 0, 0, 0, 0),
  22555. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22556. 0, 0, 0, 0),
  22557. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22558. 0, 0, 0, 0),
  22559. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22560. 0, 0, 0, 0),
  22561. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22562. 0, 0, 0, 0),
  22563. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22564. 0, 0, 0, 0),
  22565. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22566. 0, 0, 0, 0),
  22567. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22568. 0, 0, 0, 0),
  22569. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22570. 0, 0, 0, 0),
  22571. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22572. 0, 0, 0, 0),
  22573. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22574. 0, 0, 0, 0),
  22575. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22576. 0, 0, 0, 0),
  22577. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22578. 0, 0, 0, 0),
  22579. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22580. 0, 0, 0, 0),
  22581. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22582. 0, 0, 0, 0),
  22583. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22584. 0, 0, 0, 0),
  22585. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22586. 0, 0, 0, 0),
  22587. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22588. 0, 0, 0, 0),
  22589. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22590. 0, 0, 0, 0),
  22591. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22592. 0, 0, 0, 0),
  22593. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22594. 0, 0, 0, 0),
  22595. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22596. 0, 0, 0, 0),
  22597. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22598. 0, 0, 0, 0),
  22599. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22600. 0, 0, 0, 0),
  22601. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22602. 0, 0, 0, 0),
  22603. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22604. 0, 0, 0, 0),
  22605. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22606. 0, 0, 0, 0),
  22607. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22608. 0, 0, 0, 0),
  22609. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22610. 0, 0, 0, 0),
  22611. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22612. 0, 0, 0, 0),
  22613. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22614. 0, 0, 0, 0),
  22615. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22616. 0, 0, 0, 0),
  22617. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22618. 0, 0, 0, 0),
  22619. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22620. 0, 0, 0, 0),
  22621. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22622. 0, 0, 0, 0),
  22623. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22624. 0, 0, 0, 0),
  22625. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22626. 0, 0, 0, 0),
  22627. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22628. 0, 0, 0, 0),
  22629. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22630. 0, 0, 0, 0),
  22631. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22632. 0, 0, 0, 0),
  22633. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22634. 0, 0, 0, 0),
  22635. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22636. 0, 0, 0, 0),
  22637. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22638. 0, 0, 0, 0),
  22639. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22640. 0, 0, 0, 0),
  22641. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22642. 0, 0, 0, 0),
  22643. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22644. 0, 0, 0, 0),
  22645. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22646. 0, 0, 0, 0),
  22647. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22648. 0, 0, 0, 0),
  22649. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22650. 0, 0, 0, 0),
  22651. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22652. 0, 0, 0, 0),
  22653. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22654. 0, 0, 0, 0),
  22655. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22656. 0, 0, 0, 0),
  22657. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22658. 0, 0, 0, 0),
  22659. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22660. 0, 0, 0, 0),
  22661. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22662. 0, 0, 0, 0),
  22663. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22664. 0, 0, 0, 0),
  22665. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22666. 0, 0, 0, 0),
  22667. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22668. 0, 0, 0, 0),
  22669. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22670. 0, 0, 0, 0),
  22671. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22672. 0, 0, 0, 0),
  22673. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22674. 0, 0, 0, 0),
  22675. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22676. 0, 0, 0, 0),
  22677. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22678. 0, 0, 0, 0),
  22679. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22680. 0, 0, 0, 0),
  22681. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22682. 0, 0, 0, 0),
  22683. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22684. 0, 0, 0, 0),
  22685. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22686. 0, 0, 0, 0),
  22687. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22688. 0, 0, 0, 0),
  22689. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22690. 0, 0, 0, 0),
  22691. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22692. 0, 0, 0, 0),
  22693. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22694. 0, 0, 0, 0),
  22695. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22696. 0, 0, 0, 0),
  22697. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22698. 0, 0, 0, 0),
  22699. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22700. 0, 0, 0, 0),
  22701. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22702. 0, 0, 0, 0),
  22703. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22704. 0, 0, 0, 0),
  22705. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22706. 0, 0, 0, 0),
  22707. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22708. 0, 0, 0, 0),
  22709. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22710. 0, 0, 0, 0),
  22711. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22712. 0, 0, 0, 0),
  22713. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22714. 0, 0, 0, 0),
  22715. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22716. 0, 0, 0, 0),
  22717. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22718. 0, 0, 0, 0),
  22719. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22720. 0, 0, 0, 0),
  22721. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22722. 0, 0, 0, 0),
  22723. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22724. 0, 0, 0, 0),
  22725. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22726. 0, 0, 0, 0),
  22727. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22728. 0, 0, 0, 0),
  22729. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22730. 0, 0, 0, 0),
  22731. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  22732. 0, 0, 0, 0),
  22733. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  22734. 0, 0, 0, 0),
  22735. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22736. 0, 0, 0, 0),
  22737. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22738. 0, 0, 0, 0),
  22739. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22740. 0, 0, 0, 0),
  22741. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22742. 0, 0, 0, 0),
  22743. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22744. 0, 0, 0, 0),
  22745. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22746. 0, 0, 0, 0),
  22747. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22748. 0, 0, 0, 0),
  22749. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22750. 0, 0, 0, 0),
  22751. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22752. 0, 0, 0, 0),
  22753. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22754. 0, 0, 0, 0),
  22755. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22756. 0, 0, 0, 0),
  22757. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22758. 0, 0, 0, 0),
  22759. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22760. 0, 0, 0, 0),
  22761. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22762. 0, 0, 0, 0),
  22763. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22764. 0, 0, 0, 0),
  22765. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22766. 0, 0, 0, 0),
  22767. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22768. 0, 0, 0, 0),
  22769. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22770. 0, 0, 0, 0),
  22771. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22772. 0, 0, 0, 0),
  22773. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22774. 0, 0, 0, 0),
  22775. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22776. 0, 0, 0, 0),
  22777. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22778. 0, 0, 0, 0),
  22779. /* incall */
  22780. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22781. 0, 0, 0, 0),
  22782. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22783. 0, 0, 0, 0),
  22784. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22785. 0, 0, 0, 0),
  22786. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22787. 0, 0, 0, 0),
  22788. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22789. 0, 0, 0, 0),
  22790. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22791. 0, 0, 0, 0),
  22792. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22793. 0, 0, 0, 0),
  22794. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22795. 0, 0, 0, 0),
  22796. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22797. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22798. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22799. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22800. 0, 0, 0, 0),
  22801. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22802. 0, 0, 0, 0),
  22803. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22804. 0, 0, 0, 0),
  22805. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22806. 0, 0, 0, 0),
  22807. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22808. 0, 0, 0, 0),
  22809. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22810. 0, 0, 0, 0),
  22811. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22812. 0, 0, 0, 0),
  22813. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22814. 0, 0, 0, 0),
  22815. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22816. 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22818. 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22820. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22822. 0, 0, 0, 0),
  22823. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22824. 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22826. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22828. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22830. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22832. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22834. /* In- call recording */
  22835. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22836. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22838. 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22840. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22841. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22842. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22844. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22846. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22847. /* Switch Definitions */
  22848. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22849. &slim_fm_switch_mixer_controls),
  22850. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22851. &slim1_fm_switch_mixer_controls),
  22852. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22853. &slim3_fm_switch_mixer_controls),
  22854. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22855. &slim4_fm_switch_mixer_controls),
  22856. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22857. &slim6_fm_switch_mixer_controls),
  22858. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22859. &pcm_rx_switch_mixer_controls),
  22860. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22861. &int0_mi2s_rx_switch_mixer_controls),
  22862. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22863. &int4_mi2s_rx_switch_mixer_controls),
  22864. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22865. &pri_mi2s_rx_switch_mixer_controls),
  22866. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22867. &sec_mi2s_rx_switch_mixer_controls),
  22868. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22869. &tert_mi2s_rx_switch_mixer_controls),
  22870. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22871. &quat_mi2s_rx_switch_mixer_controls),
  22872. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22873. &quin_mi2s_rx_switch_mixer_controls),
  22874. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22875. &sco_slim7_switch_mixer_controls),
  22876. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22877. &sen_mi2s_rx_switch_mixer_controls),
  22878. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22879. &hfp_pri_aux_switch_mixer_controls),
  22880. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22881. &hfp_aux_switch_mixer_controls),
  22882. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22883. &hfp_int_switch_mixer_controls),
  22884. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22885. &hfp_slim7_switch_mixer_controls),
  22886. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22887. &usb_switch_mixer_controls),
  22888. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22889. &a2dp_slim7_switch_mixer_controls),
  22890. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22891. &cdc_dma_wsa_switch_mixer_controls),
  22892. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22893. &cdc_dma_rx_switch_mixer_controls),
  22894. /* Mixer definitions */
  22895. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22896. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22897. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22898. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22899. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22900. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22901. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22902. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22903. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22904. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22905. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22906. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22907. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22908. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22909. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22910. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22911. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22912. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22913. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22914. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22915. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22916. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22917. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22918. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22919. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22920. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22921. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22922. quaternary_mi2s_rx_mixer_controls,
  22923. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22924. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22925. tertiary_mi2s_rx_mixer_controls,
  22926. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22927. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22928. secondary_mi2s_rx_mixer_controls,
  22929. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22930. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22931. secondary_mi2s_rx2_mixer_controls,
  22932. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22933. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22934. primary_mi2s_rx_mixer_controls,
  22935. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22936. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22937. int0_mi2s_rx_mixer_controls,
  22938. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22939. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22940. int4_mi2s_rx_mixer_controls,
  22941. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22942. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22943. quinary_mi2s_rx_mixer_controls,
  22944. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22945. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22946. senary_mi2s_rx_mixer_controls,
  22947. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22948. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22949. pri_tdm_rx_0_mixer_controls,
  22950. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22951. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22952. pri_tdm_rx_1_mixer_controls,
  22953. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22954. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22955. pri_tdm_rx_2_mixer_controls,
  22956. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22957. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22958. pri_tdm_rx_3_mixer_controls,
  22959. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22960. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22961. pri_tdm_tx_0_mixer_controls,
  22962. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22963. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22964. sec_tdm_rx_0_mixer_controls,
  22965. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22966. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22967. sec_tdm_rx_1_mixer_controls,
  22968. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22969. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22970. sec_tdm_rx_2_mixer_controls,
  22971. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22972. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22973. sec_tdm_rx_3_mixer_controls,
  22974. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22975. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22976. sec_tdm_tx_0_mixer_controls,
  22977. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22978. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22979. tert_tdm_rx_0_mixer_controls,
  22980. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22981. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22982. tert_tdm_tx_0_mixer_controls,
  22983. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22984. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22985. tert_tdm_rx_1_mixer_controls,
  22986. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22987. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22988. tert_tdm_rx_2_mixer_controls,
  22989. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22990. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22991. tert_tdm_rx_3_mixer_controls,
  22992. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22993. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22994. tert_tdm_rx_4_mixer_controls,
  22995. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22996. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22997. quat_tdm_rx_0_mixer_controls,
  22998. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22999. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23000. quat_tdm_tx_0_mixer_controls,
  23001. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23002. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23003. quat_tdm_rx_1_mixer_controls,
  23004. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23005. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23006. quat_tdm_rx_2_mixer_controls,
  23007. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23008. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23009. quat_tdm_rx_3_mixer_controls,
  23010. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23011. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23012. quin_tdm_rx_0_mixer_controls,
  23013. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23014. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23015. quin_tdm_tx_0_mixer_controls,
  23016. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23017. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23018. quin_tdm_rx_1_mixer_controls,
  23019. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23020. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23021. quin_tdm_tx_1_mixer_controls,
  23022. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23023. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23024. quin_tdm_rx_2_mixer_controls,
  23025. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23026. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23027. quin_tdm_tx_2_mixer_controls,
  23028. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23029. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23030. quin_tdm_rx_3_mixer_controls,
  23031. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23032. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23033. quin_tdm_tx_3_mixer_controls,
  23034. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23035. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23036. sen_tdm_tx_0_mixer_controls,
  23037. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23038. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23039. sen_tdm_rx_0_mixer_controls,
  23040. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23041. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23042. sen_tdm_rx_1_mixer_controls,
  23043. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23044. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23045. sen_tdm_rx_2_mixer_controls,
  23046. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23047. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23048. sen_tdm_rx_3_mixer_controls,
  23049. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23050. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23051. pri_meta_mi2s_rx_mixer_controls,
  23052. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23053. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23054. sec_meta_mi2s_rx_mixer_controls,
  23055. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23056. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23057. wsa_cdc_dma_rx_0_mixer_controls,
  23058. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23059. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23060. wsa_cdc_dma_rx_1_mixer_controls,
  23061. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23062. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23063. rx_cdc_dma_rx_0_mixer_controls,
  23064. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23065. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23066. rx_cdc_dma_rx_1_mixer_controls,
  23067. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23068. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23069. rx_cdc_dma_rx_2_mixer_controls,
  23070. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23071. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23072. rx_cdc_dma_rx_3_mixer_controls,
  23073. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23074. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23075. rx_cdc_dma_rx_4_mixer_controls,
  23076. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23077. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23078. rx_cdc_dma_rx_5_mixer_controls,
  23079. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23080. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23081. rx_cdc_dma_rx_6_mixer_controls,
  23082. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23083. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23084. rx_cdc_dma_rx_7_mixer_controls,
  23085. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23086. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23087. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23088. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23089. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23090. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23091. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23092. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23093. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23094. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23095. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23096. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23097. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23098. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23099. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23100. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23101. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23102. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23103. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23104. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23105. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23106. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23107. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23108. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23109. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23110. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23111. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23112. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23113. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23114. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23115. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23116. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23117. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23118. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23119. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23120. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23121. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23122. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23123. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23124. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23125. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23126. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23127. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23128. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23129. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23130. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23131. tert_auxpcm_rx_mixer_controls,
  23132. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23133. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23134. quat_auxpcm_rx_mixer_controls,
  23135. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23136. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23137. quin_auxpcm_rx_mixer_controls,
  23138. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23139. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23140. sen_auxpcm_rx_mixer_controls,
  23141. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23142. /* incall */
  23143. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23144. incall_music_delivery_mixer_controls,
  23145. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23146. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23147. incall_music2_delivery_mixer_controls,
  23148. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23149. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23150. slimbus_4_rx_mixer_controls,
  23151. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23152. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23153. slimbus_6_rx_mixer_controls,
  23154. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23155. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23156. usb_audio_rx_mixer_controls,
  23157. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23158. /* Voice Mixer */
  23159. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23160. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23161. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23162. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23163. SND_SOC_NOPM, 0, 0,
  23164. sec_i2s_rx_voice_mixer_controls,
  23165. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23166. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23167. SND_SOC_NOPM, 0, 0,
  23168. sec_mi2s_rx_voice_mixer_controls,
  23169. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23170. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23171. SND_SOC_NOPM, 0, 0,
  23172. slimbus_rx_voice_mixer_controls,
  23173. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23174. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23175. SND_SOC_NOPM, 0, 0,
  23176. bt_sco_rx_voice_mixer_controls,
  23177. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23178. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23179. SND_SOC_NOPM, 0, 0,
  23180. afe_pcm_rx_voice_mixer_controls,
  23181. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23182. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23183. SND_SOC_NOPM, 0, 0,
  23184. aux_pcm_rx_voice_mixer_controls,
  23185. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23186. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  23187. SND_SOC_NOPM, 0, 0,
  23188. sec_aux_pcm_rx_voice_mixer_controls,
  23189. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  23190. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  23191. SND_SOC_NOPM, 0, 0,
  23192. tert_aux_pcm_rx_voice_mixer_controls,
  23193. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  23194. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  23195. SND_SOC_NOPM, 0, 0,
  23196. quat_aux_pcm_rx_voice_mixer_controls,
  23197. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  23198. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  23199. SND_SOC_NOPM, 0, 0,
  23200. quin_aux_pcm_rx_voice_mixer_controls,
  23201. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  23202. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  23203. SND_SOC_NOPM, 0, 0,
  23204. sen_aux_pcm_rx_voice_mixer_controls,
  23205. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  23206. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23207. SND_SOC_NOPM, 0, 0,
  23208. hdmi_rx_voice_mixer_controls,
  23209. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23210. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  23211. SND_SOC_NOPM, 0, 0,
  23212. mi2s_rx_voice_mixer_controls,
  23213. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23214. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23215. SND_SOC_NOPM, 0, 0,
  23216. pri_mi2s_rx_voice_mixer_controls,
  23217. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23218. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23219. SND_SOC_NOPM, 0, 0,
  23220. int0_mi2s_rx_voice_mixer_controls,
  23221. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23222. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23223. SND_SOC_NOPM, 0, 0,
  23224. int4_mi2s_rx_voice_mixer_controls,
  23225. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23226. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23227. SND_SOC_NOPM, 0, 0,
  23228. tert_mi2s_rx_voice_mixer_controls,
  23229. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23230. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23231. SND_SOC_NOPM, 0, 0,
  23232. quat_mi2s_rx_voice_mixer_controls,
  23233. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23234. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23235. SND_SOC_NOPM, 0, 0,
  23236. quin_mi2s_rx_voice_mixer_controls,
  23237. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23238. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23239. SND_SOC_NOPM, 0, 0,
  23240. pri_tdm_rx_0_voice_mixer_controls,
  23241. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23242. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23243. SND_SOC_NOPM, 0, 0,
  23244. pri_tdm_rx_1_voice_mixer_controls,
  23245. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23246. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23247. SND_SOC_NOPM, 0, 0,
  23248. pri_tdm_rx_2_voice_mixer_controls,
  23249. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23250. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23251. SND_SOC_NOPM, 0, 0,
  23252. pri_tdm_rx_3_voice_mixer_controls,
  23253. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23254. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23255. SND_SOC_NOPM, 0, 0,
  23256. sen_mi2s_rx_voice_mixer_controls,
  23257. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23258. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23259. SND_SOC_NOPM, 0, 0,
  23260. quat_tdm_rx_2_voice_mixer_controls,
  23261. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23262. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  23263. SND_SOC_NOPM, 0, 0,
  23264. quin_tdm_rx_2_voice_mixer_controls,
  23265. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  23266. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23267. SND_SOC_NOPM, 0, 0,
  23268. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23269. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23270. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23271. SND_SOC_NOPM, 0, 0,
  23272. rx_cdc_dma_rx_0_voice_mixer_controls,
  23273. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23274. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23275. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23276. ARRAY_SIZE(tx_voip_mixer_controls)),
  23277. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23278. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23279. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23280. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23281. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23282. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23283. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23284. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23285. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23286. int_bt_a2dp_rx_mixer_controls,
  23287. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23288. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23289. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23290. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23291. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23292. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23293. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23294. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23295. tx_voice2_stub_mixer_controls,
  23296. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23297. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23298. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23299. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23300. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23301. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23302. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23303. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23304. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23305. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23306. SND_SOC_NOPM, 0, 0,
  23307. slimbus_6_rx_voice_mixer_controls,
  23308. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23309. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23310. slimbus_7_rx_voice_mixer_controls,
  23311. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23312. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23313. slimbus_8_rx_voice_mixer_controls,
  23314. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23315. /* port mixer */
  23316. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23317. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23318. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23319. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23320. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23321. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23322. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23323. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23324. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23325. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23326. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23327. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23328. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23329. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23330. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23331. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23332. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23333. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23334. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23335. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23336. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23337. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23338. sbus_1_rx_port_mixer_controls,
  23339. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23340. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23341. bt_sco_rx_port_mixer_controls,
  23342. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23343. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23344. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23345. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23346. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23347. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23348. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23349. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23350. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23351. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23352. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23353. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23354. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23355. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23356. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23357. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23358. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23359. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23360. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23361. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23362. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23363. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23364. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23365. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23366. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23367. primary_mi2s_rx_port_mixer_controls,
  23368. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23369. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23370. sec_mi2s_rx_port_mixer_controls,
  23371. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23372. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23373. tert_mi2s_rx_port_mixer_controls,
  23374. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23375. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23376. quat_mi2s_rx_port_mixer_controls,
  23377. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23378. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23379. quin_mi2s_rx_port_mixer_controls,
  23380. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23381. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23382. sen_mi2s_rx_port_mixer_controls,
  23383. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23384. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23385. pri_tdm_rx_0_port_mixer_controls,
  23386. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23387. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23388. pri_tdm_rx_1_port_mixer_controls,
  23389. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23390. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23391. pri_tdm_rx_2_port_mixer_controls,
  23392. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23393. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23394. pri_tdm_rx_3_port_mixer_controls,
  23395. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23396. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23397. sec_tdm_rx_0_port_mixer_controls,
  23398. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23399. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23400. sec_tdm_rx_1_port_mixer_controls,
  23401. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23402. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23403. sec_tdm_rx_2_port_mixer_controls,
  23404. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23405. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23406. sec_tdm_rx_3_port_mixer_controls,
  23407. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23408. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23409. sec_tdm_rx_7_port_mixer_controls,
  23410. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23411. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23412. tert_tdm_rx_0_port_mixer_controls,
  23413. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23414. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23415. tert_tdm_rx_1_port_mixer_controls,
  23416. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23417. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23418. tert_tdm_rx_2_port_mixer_controls,
  23419. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23420. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23421. tert_tdm_rx_3_port_mixer_controls,
  23422. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23423. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23424. quat_tdm_rx_0_port_mixer_controls,
  23425. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23426. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23427. quat_tdm_rx_1_port_mixer_controls,
  23428. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23429. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23430. quat_tdm_rx_2_port_mixer_controls,
  23431. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23432. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23433. quat_tdm_rx_3_port_mixer_controls,
  23434. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23435. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23436. quat_tdm_rx_7_port_mixer_controls,
  23437. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23438. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23439. quin_tdm_rx_0_port_mixer_controls,
  23440. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23441. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23442. quin_tdm_rx_1_port_mixer_controls,
  23443. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23444. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23445. quin_tdm_rx_2_port_mixer_controls,
  23446. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23447. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23448. quin_tdm_rx_3_port_mixer_controls,
  23449. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23450. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23451. quin_tdm_rx_7_port_mixer_controls,
  23452. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23453. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23454. sen_tdm_rx_0_port_mixer_controls,
  23455. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23456. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23457. sen_tdm_rx_1_port_mixer_controls,
  23458. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23459. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23460. sen_tdm_rx_2_port_mixer_controls,
  23461. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23462. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23463. sen_tdm_rx_3_port_mixer_controls,
  23464. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23465. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23466. int0_mi2s_rx_port_mixer_controls,
  23467. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23468. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23469. int4_mi2s_rx_port_mixer_controls,
  23470. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23471. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23472. wsa_cdc_dma_rx_0_port_mixer_controls,
  23473. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23474. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23475. rx_cdc_dma_rx_0_port_mixer_controls,
  23476. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23477. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23478. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23479. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23480. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23481. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23482. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23483. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23484. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23485. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23486. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23487. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23488. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23489. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23490. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23491. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23492. /* lsm mixer definitions */
  23493. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23494. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23495. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23496. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23497. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23498. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23499. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23500. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23501. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23502. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23503. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23504. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23505. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23506. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23507. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23508. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23509. /* Virtual Pins to force backends ON atm */
  23510. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23511. SND_SOC_DAPM_INPUT("BE_IN"),
  23512. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23513. &slim0_rx_vi_fb_lch_mux),
  23514. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23515. &slim0_rx_vi_fb_rch_mux),
  23516. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23517. &wsa_rx_0_vi_fb_lch_mux),
  23518. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23519. &wsa_rx_0_vi_fb_rch_mux),
  23520. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23521. &mi2s_rx_vi_fb_mux),
  23522. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23523. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23524. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23525. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23526. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23527. &voc_ext_ec_mux),
  23528. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23529. &ext_ec_ref_mux_ul1),
  23530. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23531. &ext_ec_ref_mux_ul2),
  23532. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23533. &ext_ec_ref_mux_ul3),
  23534. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23535. &ext_ec_ref_mux_ul4),
  23536. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23537. &ext_ec_ref_mux_ul5),
  23538. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23539. &ext_ec_ref_mux_ul6),
  23540. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23541. &ext_ec_ref_mux_ul8),
  23542. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23543. &ext_ec_ref_mux_ul9),
  23544. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23545. &ext_ec_ref_mux_ul10),
  23546. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23547. &ext_ec_ref_mux_ul16),
  23548. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23549. &ext_ec_ref_mux_ul17),
  23550. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23551. &ext_ec_ref_mux_ul18),
  23552. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23553. &ext_ec_ref_mux_ul19),
  23554. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23555. &ext_ec_ref_mux_ul28),
  23556. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23557. &ext_ec_ref_mux_ul29),
  23558. };
  23559. static const struct snd_soc_dapm_route intercon[] = {
  23560. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23561. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23562. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23563. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23564. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23565. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23566. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23567. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23568. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23569. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23570. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23571. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23572. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23573. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23574. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23575. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23576. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23577. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23578. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23579. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23580. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23581. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23582. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23583. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23584. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23585. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23586. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23587. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23588. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23589. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23590. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23591. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23592. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23593. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23594. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23595. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23596. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23597. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23598. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23599. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23600. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23601. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23602. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23603. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23604. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23605. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23606. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23607. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23608. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23609. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23610. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23611. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23612. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23613. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23614. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23615. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23616. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23617. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23618. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23619. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23620. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23621. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23622. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23623. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23624. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23625. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23626. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23627. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23628. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23629. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23630. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23631. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23632. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23633. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23634. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23635. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23636. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23637. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23638. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23639. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23640. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23641. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23642. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23643. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23644. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23645. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23646. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23647. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23648. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23649. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23650. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23651. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23652. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23653. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23654. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23655. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23656. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23657. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23658. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23659. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23660. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23661. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23662. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23663. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23664. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23665. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23666. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23667. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23668. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23669. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23670. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23671. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23672. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23673. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23674. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23675. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23676. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23677. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23678. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23679. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23680. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23681. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23682. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23683. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23684. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23685. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23686. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23687. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23688. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23689. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23690. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23691. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23692. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23693. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23694. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23695. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23696. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23697. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23698. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23699. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23700. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23701. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23702. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23703. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23704. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23705. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23706. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23707. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23708. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23709. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23710. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23711. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23712. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23713. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23714. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23715. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23716. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23717. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23718. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23719. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23720. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23721. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23722. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23723. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23724. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23725. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23726. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23727. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23728. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23729. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23730. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23731. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23732. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23733. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23734. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23735. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23736. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23737. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23738. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23739. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23740. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23741. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23742. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23743. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23744. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23745. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23746. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23747. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23748. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23749. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23750. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23751. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23752. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23753. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23754. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23755. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23756. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23757. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23758. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23759. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23760. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23761. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23762. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23763. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23764. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23765. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23766. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23767. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23768. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23769. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23770. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23771. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23772. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23773. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23774. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23775. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23776. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23777. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23778. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23779. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23780. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23781. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23782. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23783. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23784. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23785. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23786. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23787. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23788. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23789. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23790. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23791. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23792. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23793. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23794. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23795. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23796. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23797. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23798. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23799. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23800. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23801. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23802. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23803. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23804. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23805. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23806. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23807. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23808. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23809. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23810. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23811. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23812. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23813. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23814. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23815. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23816. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23817. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23818. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23819. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23820. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23821. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23822. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23823. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23824. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23825. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23826. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23827. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23828. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23829. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23830. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23831. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23832. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23833. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23834. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23835. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23836. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23837. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23838. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23839. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23840. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23841. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23842. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23843. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23844. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23845. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23846. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23847. {"HDMI", NULL, "HDMI Mixer"},
  23848. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23849. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23850. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23851. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23852. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23853. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23854. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23855. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23856. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23857. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23858. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23859. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23860. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23861. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23862. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23863. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23864. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23865. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23866. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23867. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23868. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23869. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23870. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23871. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23872. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23873. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23874. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23875. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23876. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23877. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23878. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23879. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23880. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23881. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23882. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23883. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23884. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23885. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23886. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23887. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23888. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23889. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23890. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23891. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23892. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23893. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23894. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23895. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23896. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23897. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23898. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23899. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23900. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23901. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23902. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23903. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23904. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23905. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23906. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23907. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23908. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23909. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23910. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23911. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23912. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23913. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23914. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23915. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23916. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23917. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23918. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23919. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23920. /* incall */
  23921. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23922. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23923. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  23924. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23925. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23926. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23927. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23928. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23929. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23930. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23931. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23932. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23933. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23934. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23935. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23936. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23937. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23938. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23939. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23940. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23941. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23942. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23943. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23944. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23945. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23946. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23947. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23948. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23949. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23950. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23951. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23952. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23953. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23954. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23955. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23956. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23957. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23958. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23959. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23960. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23961. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23962. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23963. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23964. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23965. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23966. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23967. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23968. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23969. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23970. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23971. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23972. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23973. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23974. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23975. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23976. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23977. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23978. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23979. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23980. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23981. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23982. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23983. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23984. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23985. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23986. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23987. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23988. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23989. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23990. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23991. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23992. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23993. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23994. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23995. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23996. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23997. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23998. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23999. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24000. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24001. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24002. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24003. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24004. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24005. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24006. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24007. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24008. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24009. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24010. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24011. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24012. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24013. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24014. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24015. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24016. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24017. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24018. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24019. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24020. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24021. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24022. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24023. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24024. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24025. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24026. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24027. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24028. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24029. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24030. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24031. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24032. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24033. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24034. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24035. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24036. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24037. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24038. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24039. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24040. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24041. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24042. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24043. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24044. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24045. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24046. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24047. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24048. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24049. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24050. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24051. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24052. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24053. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24054. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24055. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24056. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24057. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24058. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24059. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24060. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24061. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24062. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24063. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24064. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24065. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24066. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24067. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24068. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24069. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24070. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24071. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24072. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24073. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24074. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24075. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24076. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24077. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24078. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24079. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24080. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24081. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24082. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24083. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24084. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24085. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24086. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24087. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24088. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24089. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24090. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24091. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24092. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24093. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24094. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24095. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24096. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24097. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24098. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24099. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24100. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24101. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24102. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24103. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24104. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24105. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24106. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24107. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24108. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24109. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24110. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24111. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24112. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24113. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24114. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24115. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24116. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24117. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24118. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24119. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24120. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24121. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24122. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24123. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24124. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24125. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24126. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24127. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24128. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24129. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24130. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24131. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24132. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24133. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24134. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24135. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24136. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24137. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24138. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24139. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24140. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24141. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24142. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24143. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24144. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24145. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24146. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24147. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24148. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24149. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24150. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24151. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24152. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24153. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24154. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24155. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  24156. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24157. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  24158. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24159. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24160. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24161. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24162. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24163. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24164. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24165. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24166. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24167. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24168. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24169. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24170. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24171. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24172. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24173. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24174. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24175. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24176. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24177. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  24178. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  24179. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24180. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24181. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24182. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24183. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24184. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24185. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24186. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24187. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24188. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24189. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24190. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24191. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24192. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24193. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24194. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  24195. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24196. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24197. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24198. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24199. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24200. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24201. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24202. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24203. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24204. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24205. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24206. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24207. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24208. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24209. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24210. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  24211. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24212. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24213. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24214. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24215. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24216. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24217. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24218. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24219. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24220. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24221. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24222. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24223. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24224. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24225. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24226. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24227. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24228. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24229. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24230. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24231. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24232. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24233. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24234. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24235. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24236. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24237. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24238. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24239. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24240. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24241. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24242. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24243. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24244. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24245. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24246. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24247. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24248. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24249. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24250. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24251. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24252. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24253. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24254. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24255. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24256. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24257. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24258. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24259. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24260. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24261. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24262. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24263. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24264. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24265. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24266. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24267. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24268. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24269. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24270. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24271. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24272. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24273. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24274. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24275. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24276. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24277. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24278. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24279. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24280. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24281. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24282. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24283. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24284. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24285. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24286. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24287. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24288. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24289. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24290. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24291. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24292. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24293. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24294. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24295. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24296. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24297. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24298. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24299. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24300. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24301. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24302. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24303. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24304. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24305. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24306. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24307. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24308. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24309. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24310. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24311. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24312. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24313. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24314. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24315. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24316. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24317. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24318. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24319. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24320. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24321. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24322. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24323. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24324. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24325. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24326. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24327. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24328. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24329. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24330. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24331. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24332. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24333. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24334. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24335. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24336. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24337. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24338. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24339. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24340. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24341. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24342. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24343. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24344. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24345. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24346. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24347. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24348. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24349. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24350. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24351. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24352. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24353. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24354. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24355. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24356. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24357. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24358. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24359. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24360. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24361. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24362. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24363. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24364. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24365. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24366. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24367. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24368. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24369. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24370. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24371. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24372. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24373. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24374. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24375. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24376. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24377. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24378. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24379. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24380. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24381. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24382. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24383. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24384. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24385. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24386. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24387. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24388. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24389. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24390. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24391. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24392. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24393. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24394. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24395. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24396. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24397. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24398. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24399. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24400. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24401. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24402. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24403. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24404. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24405. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24406. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24407. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24408. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24409. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24410. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24411. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24412. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24413. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24414. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24415. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24416. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24417. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24418. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24419. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24420. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24421. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24422. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24423. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24424. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24425. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24426. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24427. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24428. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24429. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24430. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24431. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24432. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24433. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24434. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24435. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24436. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24437. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24438. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24439. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24440. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24441. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24442. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24443. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24444. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24445. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24446. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24447. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24448. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24449. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24450. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24451. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24452. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24453. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24454. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24455. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24456. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24457. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24458. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24459. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24460. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24461. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24462. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24463. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24464. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24465. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24466. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24467. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24468. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24469. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24470. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24471. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24472. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24473. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24474. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24475. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24476. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24477. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24478. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24479. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24480. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24481. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24482. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24483. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24484. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24485. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24486. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24487. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24488. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24489. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24490. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24491. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24492. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24493. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24494. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24495. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24496. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24497. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24498. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24499. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24500. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24501. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24502. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24503. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24504. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24505. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24506. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24507. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24508. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24509. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24510. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24511. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24512. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24513. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24514. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24515. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24516. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24517. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24518. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24519. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24520. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24521. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24522. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24523. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24524. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24525. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24526. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24527. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24528. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24529. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24530. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24531. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24532. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24533. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24534. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24535. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24536. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24537. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24538. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24539. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24540. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24541. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24542. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24543. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24544. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24545. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24546. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24547. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24548. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24549. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24550. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24551. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24552. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24553. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24554. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24555. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24556. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24557. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24558. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24559. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24560. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24561. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24562. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24563. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24564. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24565. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24566. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24567. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24568. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24569. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24570. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24571. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24572. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24573. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24574. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24575. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24576. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24577. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24578. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24579. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24580. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24581. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24582. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24583. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24584. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24585. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24586. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24587. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24588. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24589. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24590. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24591. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24592. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24593. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24594. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24595. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24596. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24597. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24598. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24599. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24600. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24601. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24602. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24603. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24604. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24605. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24606. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24607. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24608. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24609. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24610. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24611. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24612. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24613. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24614. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24615. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24616. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24617. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24618. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24619. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24620. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24621. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24622. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24623. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24624. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24625. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24626. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24627. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24628. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24629. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24630. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24631. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24632. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24633. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24634. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24635. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24636. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24637. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24638. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24639. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24640. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24641. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24642. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24643. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24644. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24645. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24646. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24647. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24648. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24649. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24650. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24651. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24652. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24653. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24654. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24655. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24656. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24657. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24658. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24659. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24660. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24661. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24662. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24663. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24664. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24665. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24666. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24667. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24668. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24669. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24670. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24671. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24672. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24673. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24674. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24675. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24676. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24677. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24678. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24679. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24680. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24681. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24682. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24683. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24684. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24685. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24686. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24687. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24688. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24689. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24690. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24691. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24692. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24693. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24694. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24695. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  24696. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24697. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24698. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24699. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24700. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24701. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24702. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24703. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24704. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24705. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24706. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24707. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24708. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24709. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24710. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24711. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24712. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24713. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24714. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24715. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24716. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24717. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24718. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24719. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24720. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24721. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24722. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24723. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24724. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24725. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24726. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24727. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24728. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24729. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24730. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24731. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24732. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24733. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24734. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24735. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24736. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24737. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24738. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24739. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24740. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24741. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24742. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24743. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24744. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24745. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24746. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24747. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24748. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24749. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24750. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24751. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24752. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24753. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24754. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24755. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24756. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24757. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24758. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24759. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24760. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24761. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24762. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24763. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24764. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24765. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24766. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24767. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24768. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24769. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24770. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24771. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24772. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24773. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24774. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24775. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24776. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24777. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24778. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24779. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24780. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24781. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24782. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24783. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24784. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24785. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24786. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24787. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24788. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24789. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24790. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24791. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24792. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24793. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24794. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24795. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24796. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24797. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24798. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24799. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24800. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24801. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24802. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24803. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24804. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24805. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24806. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24807. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24808. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24809. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24810. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24811. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24812. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24813. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24814. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24815. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24816. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24817. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24818. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24819. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24820. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24821. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24822. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24823. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24824. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24825. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24826. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24827. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24828. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24829. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24830. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24831. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24832. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24833. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24834. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24835. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24836. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24837. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24838. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24839. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24840. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24841. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24842. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24843. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24844. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24845. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24846. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24847. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24848. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24849. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24850. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24851. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24852. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24853. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24854. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24855. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24856. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24857. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24858. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24859. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24860. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24861. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24862. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24863. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24864. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24865. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24866. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24867. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24868. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24869. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24870. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24871. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24872. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24873. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24874. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24875. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24876. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24877. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24878. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24879. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24880. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24881. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24882. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24883. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24884. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24885. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24886. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24887. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24888. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24889. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24890. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24891. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24892. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24893. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24894. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24895. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24896. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24897. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24898. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24899. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24900. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24901. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24902. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24903. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24904. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24905. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24906. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24907. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24908. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24909. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24910. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24911. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24912. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24913. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24914. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24915. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24916. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24917. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24918. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24919. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24920. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24921. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24922. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24923. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24924. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24925. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24926. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24927. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24928. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24929. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24930. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24931. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24932. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24933. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24934. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24935. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24936. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24937. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24938. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24939. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24940. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24941. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24942. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24943. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24944. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24945. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24946. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24947. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24948. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24949. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24950. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24951. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24952. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24953. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24954. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24955. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24956. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24957. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24958. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24959. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24960. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24961. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24962. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24963. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24964. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24965. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24966. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24967. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24968. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24969. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24970. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24971. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24972. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24973. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24974. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24975. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24976. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24977. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24978. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24979. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24980. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24981. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24982. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24983. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24984. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24985. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24986. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24987. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24988. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24989. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24990. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24991. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24992. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24993. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24994. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24995. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24996. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24997. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24998. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24999. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25000. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25001. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25002. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25003. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25004. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25005. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25006. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25007. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25008. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25009. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25010. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25011. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25012. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25013. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25014. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25015. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25016. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25017. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25018. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25019. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25020. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25021. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25022. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25023. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25024. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25025. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25026. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25027. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25028. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25029. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25030. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25031. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25032. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25033. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25034. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25035. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25036. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25037. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25038. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25039. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25040. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25041. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25042. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25043. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25044. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25045. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25046. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25047. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25048. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25049. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25050. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25051. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25052. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25053. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25054. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25055. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25056. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25057. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25058. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25059. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25060. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25061. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25062. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25063. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25064. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25065. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25066. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25067. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25068. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25069. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25070. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25071. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25072. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25073. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25074. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25075. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25076. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25077. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25078. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25079. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25080. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25081. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25082. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25083. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25084. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25085. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25086. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25087. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25088. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25089. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25090. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25091. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25092. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25093. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25094. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25095. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25096. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25097. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25098. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25099. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25100. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25101. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25102. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25103. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25104. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25105. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25106. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25107. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25108. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25109. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25110. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25111. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25112. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25113. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25114. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25115. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25116. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25117. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25118. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25119. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25120. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25121. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25122. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25123. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25124. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25125. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25126. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25127. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25128. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25129. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25130. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25131. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25132. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25133. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25134. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25135. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25136. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25137. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25138. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25139. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25140. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25141. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25142. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25143. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25144. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25145. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25146. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25147. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25148. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25149. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25150. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25151. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25152. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25153. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25154. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25155. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25156. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25157. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25158. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25159. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25160. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25161. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25162. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25163. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25164. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25165. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25166. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25167. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25168. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25169. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25170. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25171. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25172. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25173. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25174. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25175. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25176. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25177. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25178. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25179. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25180. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25181. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25182. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25183. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25184. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25185. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25186. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25187. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25188. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25189. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25190. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25191. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25192. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25193. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25194. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25195. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25196. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25197. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25198. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25199. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25200. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25201. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25202. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25203. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25204. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25205. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25206. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25207. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25208. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25209. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25210. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25211. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25212. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25213. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25214. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25215. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25216. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25217. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25218. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25219. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25220. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25221. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25222. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25223. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25224. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25225. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25226. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25227. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25228. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25229. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25230. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25231. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25232. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25233. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25234. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25235. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25236. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25237. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25238. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25239. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25240. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25241. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25242. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25243. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25244. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25245. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25246. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25247. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25248. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25249. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25250. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25251. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25252. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25253. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25254. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25255. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25256. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25257. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25258. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25259. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25260. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25261. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25262. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25263. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25264. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25265. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25266. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25267. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25268. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25269. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25270. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25271. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25272. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25273. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25274. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25275. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25276. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25277. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25278. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25279. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25280. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25281. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25282. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25283. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25284. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25285. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25286. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25287. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25288. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25289. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25290. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25291. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25292. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25293. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25294. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25295. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25296. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25297. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25298. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25299. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25300. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25301. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25302. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25303. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25304. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25305. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25306. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25307. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25308. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25309. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25310. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25311. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25312. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25313. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25314. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25315. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25316. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25317. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25318. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25319. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25320. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25321. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25322. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25323. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25324. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25325. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25326. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25327. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25328. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25329. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25330. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25331. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25332. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25333. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25334. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25335. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25336. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25337. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25338. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25339. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25340. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25341. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25342. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25343. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25344. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25345. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25346. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25347. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25348. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25349. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25350. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25351. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25352. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25353. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25354. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25355. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25356. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25357. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25358. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25359. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25360. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25361. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25362. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25363. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25364. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25365. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25366. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25367. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25368. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25369. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25370. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25371. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25372. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25373. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25374. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25375. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25376. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25377. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25378. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25379. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25380. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25381. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25382. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25383. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25384. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25385. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25386. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25387. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25388. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25389. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25390. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25391. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25392. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25393. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25394. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25395. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25396. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25397. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25398. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25399. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25400. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25401. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25402. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25403. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25404. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25405. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25406. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25407. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25408. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25409. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25410. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25411. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25412. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25413. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25414. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25415. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25416. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25417. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25418. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25419. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25420. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25421. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25422. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25423. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25424. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25425. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25426. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25427. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25428. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25429. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25430. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25431. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25432. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25433. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25434. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25435. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25436. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25437. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25438. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25439. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25440. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25441. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25442. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25443. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25444. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25445. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25446. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25447. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25448. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25449. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25450. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25451. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25452. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25453. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25454. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25455. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25456. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25457. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25458. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25459. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25460. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25461. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25462. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25463. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25464. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25465. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25466. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25467. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25468. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25469. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25470. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25471. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25472. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25473. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25474. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25475. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25476. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25477. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25478. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25479. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25480. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25481. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25482. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25483. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25484. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25485. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25486. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25487. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25488. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25489. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25490. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25491. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25492. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25493. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25494. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25495. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25496. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25497. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25498. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25499. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25500. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25501. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25502. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25503. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25504. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25505. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25506. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25507. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25508. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25509. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25510. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25511. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25512. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25513. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25514. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25515. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25516. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25517. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25518. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25519. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25520. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25521. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25522. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25523. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25524. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25525. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25526. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25527. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25528. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25529. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25530. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25531. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25532. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25533. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25534. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25535. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25536. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25537. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25538. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25539. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25540. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25541. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25542. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25543. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25544. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25545. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25546. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25547. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25548. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25549. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25550. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25551. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25552. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25553. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25554. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25555. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25556. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25557. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25558. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25559. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25560. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25561. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25562. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25563. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25564. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25565. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25566. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25567. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25568. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25569. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25570. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25571. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25572. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25573. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25574. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25575. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25576. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25577. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25578. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25579. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25580. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25581. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25582. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25583. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25584. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25585. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25586. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25587. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25588. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25589. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25590. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25591. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25592. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25593. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25594. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25595. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25596. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25597. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25598. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25599. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25600. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25601. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25602. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25603. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25604. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25605. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25606. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25607. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25608. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25609. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25610. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25611. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25612. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25613. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25614. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25615. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25616. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25617. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25618. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25619. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25620. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25621. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25622. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25623. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25624. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25625. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25626. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25627. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25628. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25629. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25630. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25631. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25632. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25633. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25634. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25635. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25636. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25637. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25638. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25639. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25640. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25641. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25642. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25643. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25644. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25645. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25646. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25647. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25648. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25649. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25650. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25651. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25652. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25653. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25654. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25655. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25656. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25657. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25658. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25659. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25660. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25661. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25662. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25663. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25664. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25665. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25666. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25667. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25668. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25669. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25670. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25671. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25672. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25673. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25674. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25675. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25676. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25677. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25678. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  25679. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25680. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25681. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25682. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25683. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25684. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25685. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25686. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25687. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25688. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25689. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25690. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25691. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25692. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25693. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25694. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25695. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  25696. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25697. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25698. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25699. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25700. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25701. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25702. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25703. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25704. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25705. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25706. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25707. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25708. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25709. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25710. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25711. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25712. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  25713. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25714. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25715. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25716. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25717. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25718. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  25719. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25720. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25721. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25722. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  25723. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25724. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25725. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25726. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25727. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25728. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25729. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25730. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  25731. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25732. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25733. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25734. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25735. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25736. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25737. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25738. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25739. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25740. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25741. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25742. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25743. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25744. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25745. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25746. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25747. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25748. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25749. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25750. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25751. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25752. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25753. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25754. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25755. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25756. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25757. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25758. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25759. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25760. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25761. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25762. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25763. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25764. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25765. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25766. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25767. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25768. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25769. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25770. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25771. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25772. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25773. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25774. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25775. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25776. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25777. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25778. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25779. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25780. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25781. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25782. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25783. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25784. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25785. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25786. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25787. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25788. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25789. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25790. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25791. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25792. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25793. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25794. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25795. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25796. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25797. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25798. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25799. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25800. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25801. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25802. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25803. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25804. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25805. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25806. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25807. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25808. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25809. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25810. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25811. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25812. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25813. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25814. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25815. {"HDMI", NULL, "HDMI_DL_HL"},
  25816. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25817. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25818. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25819. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25820. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25821. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25822. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25823. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25824. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25825. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25826. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25827. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25828. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25829. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25830. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25831. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25832. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25833. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25834. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25835. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25836. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25837. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25838. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25839. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25840. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25841. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25842. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25843. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25844. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25845. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25846. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25847. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25848. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25849. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25850. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25851. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25852. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25853. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25854. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25855. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25856. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25857. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25858. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25859. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25860. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25861. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25862. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25863. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25864. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25865. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25866. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25867. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25868. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25869. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25870. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25871. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25872. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25873. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25874. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25875. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25876. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25877. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25878. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25879. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25880. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25881. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25882. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25883. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25884. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25885. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25886. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25887. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25888. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25889. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25890. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25891. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25892. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25893. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25894. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25895. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25896. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25897. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25898. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25899. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25900. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25901. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25902. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25903. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25904. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25905. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25906. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25907. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25908. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25909. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25910. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  25911. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25912. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25913. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25914. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25915. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25916. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25917. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25918. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25919. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25920. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25921. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25922. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25923. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25924. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25925. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  25926. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25927. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25928. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25929. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25930. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25931. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25932. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25933. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25934. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25935. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25936. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25937. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25938. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25939. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25940. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25941. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25942. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25943. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25944. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25945. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25946. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25947. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25948. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25949. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25950. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25951. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25952. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25953. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25954. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25955. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25956. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25957. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25958. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25959. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25960. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25961. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25962. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25963. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25964. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25965. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25966. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25967. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25968. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25969. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25970. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25971. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25972. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25973. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25974. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25975. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25976. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25977. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25978. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25979. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25980. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25981. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25982. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25983. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25984. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25985. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25986. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25987. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25988. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25989. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25990. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25991. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25992. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25993. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25994. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25995. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25996. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25997. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25998. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25999. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26000. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26001. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26002. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26003. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26004. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26005. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26006. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26007. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26008. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26009. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26010. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26011. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26012. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26013. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26014. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26015. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26016. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26017. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26018. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26019. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26020. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26021. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26022. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26023. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26024. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26025. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26026. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26027. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26028. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26029. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26030. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  26031. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  26032. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  26033. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  26034. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  26035. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  26036. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26037. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26038. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26039. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26040. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26041. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26042. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26043. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26044. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26045. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26046. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26047. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26048. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  26049. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26050. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26051. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26052. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26053. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26054. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26055. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  26056. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  26057. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  26058. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26059. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  26060. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  26061. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  26062. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  26063. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  26064. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  26065. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26066. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26067. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26068. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26069. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26070. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26071. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26072. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26073. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26074. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26075. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26076. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26077. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26078. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26079. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26080. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26081. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26082. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26083. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26084. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26085. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  26086. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26087. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  26088. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  26089. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  26090. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  26091. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  26092. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26093. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26094. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26095. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26096. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26097. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  26098. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  26099. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  26100. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  26101. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  26102. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  26103. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  26104. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  26105. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  26106. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  26107. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  26108. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  26109. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  26110. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  26111. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  26112. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  26113. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  26114. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  26115. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  26116. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  26117. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  26118. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  26119. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  26120. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  26121. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  26122. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  26123. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  26124. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  26125. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  26126. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  26127. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  26128. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  26129. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  26130. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26131. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  26132. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  26133. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26134. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26135. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26136. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  26137. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26138. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26139. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26140. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26141. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26142. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26143. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26144. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26145. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26146. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26147. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26148. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26149. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26150. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  26151. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26152. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26153. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26154. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26155. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26156. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26157. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26158. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26159. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26160. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26161. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26162. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26163. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26164. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  26165. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26166. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26167. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26168. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26169. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26170. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26171. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26172. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26173. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26174. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26175. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26176. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26177. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26178. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  26179. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26180. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26181. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26182. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26183. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26184. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26185. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26186. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26187. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26188. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26189. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26190. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26191. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26192. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  26193. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26194. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26195. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26196. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26197. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26198. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26199. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26200. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26201. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26202. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26203. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26204. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26205. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26206. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  26207. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26208. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26209. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26210. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26211. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26212. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26213. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26214. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26215. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26216. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26217. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26218. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  26219. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26220. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26221. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26222. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26223. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26224. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26225. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26226. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26227. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26228. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26229. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26230. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  26231. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26232. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26233. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26234. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26235. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26236. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26237. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26238. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26239. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26240. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26241. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26242. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26243. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26244. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26245. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26246. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26247. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26248. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26249. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26250. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26251. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26252. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26253. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26254. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26255. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26256. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26257. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26258. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26259. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26260. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26261. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26262. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26263. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26264. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26265. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26266. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26267. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26268. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26269. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26270. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26271. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26272. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26273. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26274. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26275. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26276. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26277. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26278. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26279. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26280. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26281. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26282. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26283. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26284. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26285. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26286. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26287. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26288. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26289. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26290. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26291. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26292. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26293. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26294. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26295. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26296. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26297. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26298. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26299. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26300. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26301. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26302. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26303. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26304. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26305. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26306. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26307. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26308. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26309. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26310. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26311. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26312. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26313. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26314. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26315. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26316. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26317. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26318. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26319. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26320. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26321. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26322. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26323. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26324. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26325. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26326. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26327. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26328. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26329. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26330. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26331. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26332. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26333. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26334. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26335. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26336. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26337. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26338. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26339. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26340. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26341. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26342. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26343. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26344. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26345. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26346. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26347. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26348. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26349. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26350. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26351. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26352. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26353. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26354. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26355. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26356. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26357. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26358. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26359. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26360. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26361. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26362. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26363. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26364. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26365. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26366. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26367. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26368. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26369. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26370. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26371. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26372. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26373. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26374. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26375. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26376. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26377. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26378. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26379. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26380. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26381. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26382. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26383. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26384. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26385. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26386. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26387. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26388. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26389. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26390. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26391. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26392. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26393. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26394. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26395. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26396. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26397. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26398. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26399. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26400. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26401. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26402. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26403. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26404. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26405. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26406. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26407. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26408. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26409. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26410. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26411. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26412. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26413. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26414. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26415. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26416. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26417. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26418. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26419. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26420. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26421. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26422. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26423. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26424. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26425. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26426. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26427. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26428. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26429. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26430. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26431. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26432. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26433. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26434. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26435. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26436. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26437. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26438. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26439. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26440. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26441. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26442. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26443. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26444. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26445. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26446. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26447. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26448. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26449. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26450. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26451. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26452. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26453. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26454. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26455. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26456. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26457. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26458. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26459. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26460. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26461. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26462. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26463. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26464. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26465. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26466. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26467. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26468. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26469. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26470. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26471. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26472. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26473. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26474. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26475. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26476. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26477. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26478. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26479. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26480. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26481. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26482. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26483. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26484. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26485. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26486. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26487. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26488. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26489. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26490. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26491. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26492. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26493. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26494. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26495. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26496. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26497. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26498. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26499. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26500. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26501. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26502. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26503. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26504. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26505. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26506. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26507. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26508. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26509. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26510. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26511. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26512. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26513. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26514. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26515. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26516. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26517. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26518. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26519. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26520. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26521. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26522. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26523. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26524. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26525. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26526. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26527. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26528. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26529. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26530. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26531. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26532. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26533. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26534. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26535. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26536. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26537. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26538. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26539. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26540. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26541. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26542. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26543. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26544. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26545. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26546. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26547. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26548. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26549. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26550. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26551. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26552. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26553. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26554. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26555. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26556. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26557. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26558. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26559. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26560. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26561. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26562. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26563. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26564. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26565. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26566. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26567. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26568. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26569. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26570. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26571. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26572. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26573. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26574. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26575. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26576. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26577. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26578. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26579. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26580. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26581. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26582. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26583. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26584. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26585. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26586. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26587. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26588. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26589. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26590. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26591. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26592. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26593. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26594. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26595. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26596. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26597. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26598. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26599. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26600. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26601. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26602. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26603. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26604. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26605. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26606. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26607. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26608. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26609. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26610. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26611. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26612. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26613. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26614. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26615. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26616. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26617. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26618. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26619. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26620. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26621. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26622. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26623. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26624. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26625. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26626. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26627. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26628. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26629. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26630. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26631. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26632. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26633. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26634. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26635. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26636. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26637. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26638. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26639. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26640. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26641. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26642. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26643. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26644. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26645. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26646. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26647. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26648. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26649. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26650. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26651. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26652. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26653. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26654. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26655. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26656. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26657. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26658. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26659. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26660. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26661. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26662. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26663. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26664. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26665. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  26666. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26667. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26668. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26669. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26670. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26671. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26672. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26673. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26674. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26675. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26676. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26677. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26678. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26679. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26680. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26681. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26682. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26683. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26684. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26685. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26686. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26687. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26688. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26689. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26690. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  26691. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26692. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26693. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26694. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26695. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26696. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26697. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26698. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26699. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26700. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26701. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26702. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26703. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26704. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26705. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26706. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26707. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26708. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26709. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26710. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26711. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26712. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26713. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26714. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26715. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  26716. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26717. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26718. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26719. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26720. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26721. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26722. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26723. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26724. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26725. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26726. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26727. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26728. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26729. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26730. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26731. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26732. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26733. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26734. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26735. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26736. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26737. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26738. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26739. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26740. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  26741. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26742. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26743. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26744. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26745. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26746. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26747. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26748. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26749. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26750. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26751. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26752. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26753. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26754. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26755. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26756. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26757. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26758. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26759. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26760. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26761. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26762. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26763. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26764. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26765. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26766. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26767. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26768. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26769. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26770. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26771. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26772. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26773. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26774. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26775. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26776. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26777. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26778. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26779. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26780. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26781. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26782. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26783. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26784. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26785. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26786. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26787. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26788. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26789. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26790. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26791. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26792. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26793. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26794. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26795. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26796. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26797. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26798. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26799. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26800. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26801. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26802. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26803. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26804. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26805. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26806. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26807. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26808. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26809. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26810. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26811. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26812. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26813. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26814. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26815. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26816. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26817. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26818. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26819. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26820. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26821. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26822. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26823. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26824. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26825. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26826. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26827. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26828. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26829. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26830. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26831. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26832. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26833. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26834. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26835. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26836. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26837. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26838. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26839. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26840. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26841. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26842. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26843. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26844. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26845. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26846. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26847. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26848. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26849. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26850. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26851. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26852. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26853. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26854. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26855. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26856. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26857. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26858. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26859. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26860. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26861. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26862. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26863. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26864. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26865. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26866. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26867. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26868. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26869. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26870. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26871. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26872. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26873. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26874. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26875. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26876. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26877. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26878. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26879. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26880. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26881. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26882. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26883. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26884. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26885. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26886. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26887. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26888. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26889. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26890. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26891. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26892. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26893. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26894. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26895. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26896. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26897. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26898. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26899. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26900. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26901. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26902. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26903. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26904. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26905. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26906. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26907. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26908. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26909. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26910. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26911. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26912. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26913. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26914. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26915. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26916. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26917. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26918. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26919. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26920. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26921. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26922. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26923. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26924. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26925. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26926. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26927. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26928. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26929. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26930. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26931. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26932. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26933. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26934. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26935. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26936. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26937. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26938. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26939. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26940. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26941. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26942. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26943. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26944. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26945. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26946. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26947. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26948. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26949. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26950. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26951. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26952. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26953. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26954. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26955. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26956. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26957. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26958. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26959. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26960. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26961. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26962. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26963. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26964. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26965. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26966. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26967. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26968. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26969. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26970. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26971. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26972. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26973. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26974. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26975. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26976. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26977. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26978. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26979. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26980. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26981. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26982. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26983. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26984. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26985. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26986. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26987. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26988. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26989. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26990. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26991. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26992. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26993. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26994. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26995. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26996. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26997. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26998. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26999. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27000. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27001. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27002. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27003. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27004. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27005. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27006. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27007. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27008. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27009. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27010. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27011. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27012. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  27013. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27014. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27015. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  27016. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  27017. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  27018. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  27019. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  27020. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  27021. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27022. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27023. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27024. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27025. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27026. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27027. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27028. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  27029. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27030. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27031. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27032. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27033. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  27034. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27035. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27036. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27037. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  27038. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27039. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27040. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27041. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  27042. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27043. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27044. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27045. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  27046. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27047. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27048. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27049. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27050. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27051. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27052. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27053. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27054. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27055. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27056. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  27057. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27058. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27059. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27060. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27061. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27062. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27063. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27064. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27065. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27066. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  27067. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27068. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27069. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27070. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27071. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27072. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27073. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27074. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27075. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27076. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27077. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27078. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  27079. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27080. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27081. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27082. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27083. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27084. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27085. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27086. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27087. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27088. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27089. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27090. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27091. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  27092. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27093. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27094. {"STUB_RX", NULL, "STUB_RX Mixer"},
  27095. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27096. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27097. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  27098. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27099. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27100. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  27101. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27102. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27103. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27104. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27105. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27106. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  27107. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27108. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27109. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27110. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27111. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27112. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  27113. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27114. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27115. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27116. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  27117. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27118. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27119. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  27120. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  27121. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27122. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  27123. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  27124. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  27125. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  27126. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27127. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27128. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27129. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27130. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27131. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27132. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27133. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27134. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27135. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27136. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27137. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27138. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27139. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  27140. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27141. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  27142. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27143. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  27144. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  27145. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  27146. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27147. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  27148. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27149. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27150. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  27151. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27152. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27153. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27154. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27155. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27156. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27157. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27158. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27159. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27160. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27161. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27162. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  27163. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27164. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27165. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27166. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27167. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27168. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27169. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27170. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27171. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27172. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27173. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  27174. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27175. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27176. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27177. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27178. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27179. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27180. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27181. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27182. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  27183. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27184. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27185. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27186. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27187. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27188. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27189. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27190. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27191. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27192. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27193. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  27194. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27195. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27196. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27197. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27198. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27199. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27200. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27201. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27202. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  27203. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27204. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27205. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27206. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27207. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27208. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27209. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27210. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  27211. /* Backend Enablement */
  27212. {"BE_OUT", NULL, "PRI_I2S_RX"},
  27213. {"BE_OUT", NULL, "SEC_I2S_RX"},
  27214. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  27215. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  27216. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  27217. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27218. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  27219. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  27220. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  27221. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  27222. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  27223. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  27224. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  27225. {"BE_OUT", NULL, "HDMI"},
  27226. {"BE_OUT", NULL, "DISPLAY_PORT"},
  27227. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  27228. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  27229. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  27230. {"BE_OUT", NULL, "MI2S_RX"},
  27231. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  27232. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  27233. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  27234. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  27235. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27236. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27237. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27238. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27239. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27240. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27241. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27242. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27243. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27244. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27245. {"BE_OUT", NULL, "INT_FM_RX"},
  27246. {"BE_OUT", NULL, "PCM_RX"},
  27247. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27248. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27249. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27250. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27251. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27252. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27253. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27254. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27255. {"BE_OUT", NULL, "INT_FM_RX"},
  27256. {"BE_OUT", NULL, "PCM_RX"},
  27257. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27258. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27259. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27260. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27261. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27262. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27263. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27264. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27265. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27266. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27267. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27268. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27269. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27270. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27271. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27272. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27273. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27274. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27275. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27276. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27277. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27278. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27279. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27280. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27281. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27282. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27283. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27284. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27285. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27286. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27287. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27288. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27289. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27290. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27291. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27292. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27293. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27294. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27295. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27296. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27297. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27298. {"PRI_I2S_TX", NULL, "BE_IN"},
  27299. {"MI2S_TX", NULL, "BE_IN"},
  27300. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27301. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27302. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27303. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27304. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27305. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27306. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27307. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27308. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27309. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27310. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27311. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27312. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27313. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27314. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27315. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27316. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27317. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27318. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27319. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27320. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27321. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27322. {"INT_FM_TX", NULL, "BE_IN"},
  27323. {"PCM_TX", NULL, "BE_IN"},
  27324. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27325. {"BE_OUT", NULL, "STUB_RX"},
  27326. {"STUB_TX", NULL, "BE_IN"},
  27327. {"STUB_1_TX", NULL, "BE_IN"},
  27328. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27329. {"AUX_PCM_TX", NULL, "BE_IN"},
  27330. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27331. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27332. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27333. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27334. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27335. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27336. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27337. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27338. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27339. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27340. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27341. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27342. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27343. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27344. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27345. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27346. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27347. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27348. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27349. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27350. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27351. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27352. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27353. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27354. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27355. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27356. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27357. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27358. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27359. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27360. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27361. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27362. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27363. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27364. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27365. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27366. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27367. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27368. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27369. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27370. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27371. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27372. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27373. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27374. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27375. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27376. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27377. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27378. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27379. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27380. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27381. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27382. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27383. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27384. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27385. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27386. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27387. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27388. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27389. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27390. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27391. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27392. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27393. };
  27394. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27395. struct snd_pcm_hw_params *params)
  27396. {
  27397. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27398. unsigned int be_id = rtd->dai_link->id;
  27399. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27400. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27401. return -EINVAL;
  27402. }
  27403. mutex_lock(&routing_lock);
  27404. msm_bedais[be_id].sample_rate = params_rate(params);
  27405. msm_bedais[be_id].channel = params_channels(params);
  27406. msm_bedais[be_id].format = params_format(params);
  27407. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27408. __func__, msm_bedais[be_id].sample_rate,
  27409. msm_bedais[be_id].format, be_id);
  27410. mutex_unlock(&routing_lock);
  27411. return 0;
  27412. }
  27413. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27414. {
  27415. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27416. unsigned int be_id = rtd->dai_link->id;
  27417. int i, session_type, path_type, topology;
  27418. struct msm_pcm_routing_bdai_data *bedai;
  27419. struct msm_pcm_routing_fdai_data *fdai;
  27420. pr_debug("%s: substream->pcm->id:%s\n",
  27421. __func__, substream->pcm->id);
  27422. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27423. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27424. return -EINVAL;
  27425. }
  27426. bedai = &msm_bedais[be_id];
  27427. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27428. 0 : 1);
  27429. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27430. path_type = ADM_PATH_PLAYBACK;
  27431. else
  27432. path_type = ADM_PATH_LIVE_REC;
  27433. mutex_lock(&routing_lock);
  27434. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27435. if (!is_mm_lsm_fe_id(i))
  27436. continue;
  27437. fdai = &fe_dai_map[i][session_type];
  27438. if (fdai->strm_id != INVALID_SESSION) {
  27439. int idx;
  27440. int port_id;
  27441. unsigned long copp =
  27442. session_copp_map[i][session_type][be_id];
  27443. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27444. if (test_bit(idx, &copp))
  27445. break;
  27446. if (idx >= MAX_COPPS_PER_PORT) {
  27447. pr_debug("%s: copp idx is invalid, exiting\n",
  27448. __func__);
  27449. continue;
  27450. }
  27451. fdai->be_srate = bedai->sample_rate;
  27452. port_id = get_port_id(bedai->port_id);
  27453. topology = adm_get_topology_for_port_copp_idx(port_id,
  27454. idx);
  27455. msm_routing_unload_topology(topology);
  27456. adm_close(port_id, fdai->perf_mode, idx);
  27457. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27458. __func__, copp, i, session_type, be_id,
  27459. topology);
  27460. clear_bit(idx,
  27461. &session_copp_map[i][session_type][be_id]);
  27462. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27463. (fdai->passthr_mode == LEGACY_PCM))
  27464. msm_pcm_routing_deinit_pp(port_id,
  27465. topology);
  27466. }
  27467. }
  27468. bedai->active = 0;
  27469. bedai->sample_rate = 0;
  27470. bedai->channel = 0;
  27471. mutex_unlock(&routing_lock);
  27472. return 0;
  27473. }
  27474. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27475. {
  27476. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27477. unsigned int be_id = rtd->dai_link->id;
  27478. int i, path_type, topology;
  27479. int session_type = INVALID_SESSION;
  27480. struct msm_pcm_routing_bdai_data *bedai;
  27481. u32 channels, sample_rate;
  27482. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27483. struct msm_pcm_routing_fdai_data *fdai;
  27484. u32 session_id;
  27485. struct media_format_info voc_be_media_format;
  27486. bool is_lsm;
  27487. pr_debug("%s: substream->pcm->id:%s\n",
  27488. __func__, substream->pcm->id);
  27489. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27490. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27491. return -EINVAL;
  27492. }
  27493. bedai = &msm_bedais[be_id];
  27494. mutex_lock(&routing_lock);
  27495. if (bedai->active == 1)
  27496. goto done; /* Ignore prepare if back-end already active */
  27497. /* AFE port is not active at this point. However, still
  27498. * go ahead setting active flag under the notion that
  27499. * QDSP6 is able to handle ADM starting before AFE port
  27500. * is started.
  27501. */
  27502. bedai->active = 1;
  27503. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27504. if (!(is_mm_lsm_fe_id(i) &&
  27505. route_check_fe_id_adm_support(i)))
  27506. continue;
  27507. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27508. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27509. fdai = &fe_dai_map[i][session_type];
  27510. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27511. if (fdai->passthr_mode != LEGACY_PCM)
  27512. path_type = ADM_PATH_COMPRESSED_RX;
  27513. else
  27514. path_type = ADM_PATH_PLAYBACK;
  27515. } else {
  27516. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27517. (fdai->passthr_mode != LISTEN))
  27518. path_type = ADM_PATH_COMPRESSED_TX;
  27519. else
  27520. path_type = ADM_PATH_LIVE_REC;
  27521. }
  27522. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27523. (i <= MSM_FRONTEND_DAI_LSM8);
  27524. if (fdai->strm_id != INVALID_SESSION) {
  27525. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27526. int port_id = get_port_id(bedai->port_id);
  27527. if (session_type == SESSION_TYPE_TX &&
  27528. fdai->be_srate &&
  27529. (fdai->be_srate != bedai->sample_rate)) {
  27530. pr_debug("%s: flush strm %d diff BE rates\n",
  27531. __func__,
  27532. fdai->strm_id);
  27533. if (fdai->event_info.event_func)
  27534. fdai->event_info.event_func(
  27535. MSM_PCM_RT_EVT_BUF_RECFG,
  27536. fdai->event_info.priv_data);
  27537. fdai->be_srate = 0; /* might not need it */
  27538. }
  27539. bits_per_sample = msm_routing_get_bit_width(
  27540. bedai->format);
  27541. app_type =
  27542. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27543. if (app_type && is_lsm) {
  27544. app_type_idx =
  27545. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27546. sample_rate =
  27547. fe_dai_app_type_cfg[i][session_type][be_id]
  27548. .sample_rate;
  27549. bits_per_sample =
  27550. lsm_app_type_cfg[app_type_idx].bit_width;
  27551. } else if (app_type) {
  27552. app_type_idx =
  27553. msm_pcm_routing_get_app_type_idx(app_type);
  27554. sample_rate =
  27555. fe_dai_app_type_cfg[i][session_type]
  27556. [be_id].sample_rate;
  27557. bits_per_sample =
  27558. app_type_cfg[app_type_idx].bit_width;
  27559. } else
  27560. sample_rate = bedai->sample_rate;
  27561. /*
  27562. * check if ADM needs to be configured with different
  27563. * channel mapping than backend
  27564. */
  27565. if (!bedai->adm_override_ch)
  27566. channels = bedai->channel;
  27567. else
  27568. channels = bedai->adm_override_ch;
  27569. acdb_dev_id =
  27570. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27571. topology = msm_routing_get_adm_topology(i, session_type,
  27572. be_id);
  27573. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27574. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27575. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27576. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27577. be_bit_width = msm_routing_get_bit_width(
  27578. bedai->format);
  27579. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27580. || bedai->sample_rate == 352800) &&
  27581. be_bit_width == 32)
  27582. bits_per_sample = msm_routing_get_bit_width(
  27583. SNDRV_PCM_FORMAT_S32_LE);
  27584. copp_idx = adm_open(port_id, path_type,
  27585. sample_rate, channels, topology,
  27586. fdai->perf_mode, bits_per_sample,
  27587. app_type, acdb_dev_id,
  27588. session_type);
  27589. if ((copp_idx < 0) ||
  27590. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27591. pr_err("%s: adm open failed\n", __func__);
  27592. mutex_unlock(&routing_lock);
  27593. return -EINVAL;
  27594. }
  27595. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27596. __func__, i, session_type, be_id);
  27597. set_bit(copp_idx,
  27598. &session_copp_map[i][session_type][be_id]);
  27599. if (msm_is_resample_needed(
  27600. sample_rate,
  27601. bedai->sample_rate))
  27602. adm_copp_mfc_cfg(port_id, copp_idx,
  27603. bedai->sample_rate);
  27604. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27605. fdai->perf_mode, fdai->passthr_mode);
  27606. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27607. (fdai->passthr_mode == LEGACY_PCM))
  27608. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27609. topology, channels);
  27610. }
  27611. }
  27612. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27613. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27614. if (session_id) {
  27615. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27616. session_id);
  27617. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27618. voc_path_type = RX_PATH;
  27619. else
  27620. voc_path_type = TX_PATH;
  27621. voc_set_route_flag(session_id, voc_path_type, 1);
  27622. memset(&voc_be_media_format, 0,
  27623. sizeof(struct media_format_info));
  27624. voc_be_media_format.port_id = bedai->port_id;
  27625. voc_be_media_format.num_channels = bedai->channel;
  27626. voc_be_media_format.sample_rate = bedai->sample_rate;
  27627. voc_be_media_format.bits_per_sample = bedai->format;
  27628. /* Defaulting this to 1 for voice call usecases */
  27629. voc_be_media_format.channel_mapping[0] = 1;
  27630. voc_set_device_config(session_id, voc_path_type,
  27631. &voc_be_media_format);
  27632. if (voc_get_route_flag(session_id, RX_PATH) &&
  27633. voc_get_route_flag(session_id, TX_PATH))
  27634. voc_enable_device(session_id);
  27635. }
  27636. }
  27637. /* Check if backend is an external ec ref port and set as needed */
  27638. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27639. memset(&voc_be_media_format, 0,
  27640. sizeof(struct media_format_info));
  27641. /* Get format info for ec ref port from msm_bedais[] */
  27642. voc_be_media_format.port_id = bedai->port_id;
  27643. voc_be_media_format.num_channels = bedai->channel;
  27644. voc_be_media_format.bits_per_sample = bedai->format;
  27645. voc_be_media_format.sample_rate = bedai->sample_rate;
  27646. /* Defaulting this to 1 for voice call usecases */
  27647. voc_be_media_format.channel_mapping[0] = 1;
  27648. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27649. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  27650. __func__, voc_be_media_format.port_id,
  27651. voc_be_media_format.num_channels,
  27652. voc_be_media_format.bits_per_sample,
  27653. voc_be_media_format.sample_rate);
  27654. }
  27655. done:
  27656. mutex_unlock(&routing_lock);
  27657. return 0;
  27658. }
  27659. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  27660. int fe_id)
  27661. {
  27662. int index, topo_id, be_idx;
  27663. unsigned long pp_config = 0;
  27664. bool mute_on;
  27665. int latency, session_type;
  27666. bool compr_passthr_mode = true;
  27667. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  27668. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  27669. pr_err("%s: Device pp params on invalid port %d\n",
  27670. __func__, port_id);
  27671. return -EINVAL;
  27672. }
  27673. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27674. if (port_id == msm_bedais[be_idx].port_id)
  27675. break;
  27676. }
  27677. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27678. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27679. return -EINVAL;
  27680. }
  27681. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27682. if (msm_bedais_pp_params[index].port_id == port_id)
  27683. break;
  27684. }
  27685. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27686. pr_err("%s: Invalid backend pp params index %d\n",
  27687. __func__, index);
  27688. return -EINVAL;
  27689. }
  27690. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  27691. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  27692. pr_err("%s: Invalid passthrough topology 0x%x\n",
  27693. __func__, topo_id);
  27694. return -EINVAL;
  27695. }
  27696. session_type =
  27697. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27698. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27699. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  27700. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  27701. compr_passthr_mode = false;
  27702. pp_config = msm_bedais_pp_params[index].pp_params_config;
  27703. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  27704. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27705. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  27706. mute_on = msm_bedais_pp_params[index].mute_on;
  27707. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27708. adm_send_compressed_device_mute(port_id,
  27709. copp_idx,
  27710. mute_on);
  27711. }
  27712. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  27713. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27714. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  27715. &pp_config);
  27716. latency = msm_bedais_pp_params[index].latency;
  27717. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27718. adm_send_compressed_device_latency(port_id,
  27719. copp_idx,
  27720. latency);
  27721. }
  27722. return 0;
  27723. }
  27724. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  27725. {
  27726. uint32_t topology = NULL_COPP_TOPOLOGY;
  27727. void *cal_info = NULL;
  27728. uint32_t size = 0;
  27729. /* Retrieve cal_info size from cal data*/
  27730. if (data_size < sizeof(struct audio_cal_type_basic) +
  27731. sizeof(struct audio_cal_info_adm_top)) {
  27732. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  27733. goto done;
  27734. }
  27735. size = data_size - sizeof(struct audio_cal_type_basic);
  27736. cal_info = kzalloc(size, GFP_KERNEL);
  27737. if (!cal_info)
  27738. goto done;
  27739. memcpy(cal_info,
  27740. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  27741. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  27742. kfree(cal_info);
  27743. cal_info = NULL;
  27744. done:
  27745. pr_debug("%s: Using topology %d\n", __func__, topology);
  27746. return topology;
  27747. }
  27748. static void msm_routing_load_topology(size_t data_size, void *data)
  27749. {
  27750. uint32_t topology_id;
  27751. int ret = -EINVAL;
  27752. topology_id = msm_routing_get_topology(data_size, data);
  27753. if (topology_id != NULL_COPP_TOPOLOGY)
  27754. ret = q6core_load_unload_topo_modules(topology_id,
  27755. CORE_LOAD_TOPOLOGY);
  27756. if (ret < 0)
  27757. pr_debug("%s %d load topology failed\n",
  27758. __func__, topology_id);
  27759. }
  27760. static void msm_routing_unload_topology(uint32_t topology_id)
  27761. {
  27762. int ret = -EINVAL;
  27763. if (topology_id != NULL_COPP_TOPOLOGY)
  27764. ret = q6core_load_unload_topo_modules(topology_id,
  27765. CORE_UNLOAD_TOPOLOGY);
  27766. if (ret < 0)
  27767. pr_debug("%s %d unload topology failed\n",
  27768. __func__, topology_id);
  27769. }
  27770. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27771. struct snd_ctl_elem_value *ucontrol)
  27772. {
  27773. int pp_id = ucontrol->value.integer.value[0];
  27774. int port_id = 0;
  27775. int index, be_idx, i, topo_id, idx;
  27776. bool mute;
  27777. int latency, session_type;
  27778. bool compr_passthr_mode = true;
  27779. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27780. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27781. port_id = msm_bedais[be_idx].port_id;
  27782. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27783. break;
  27784. }
  27785. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27786. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27787. return -EINVAL;
  27788. }
  27789. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27790. if (msm_bedais_pp_params[index].port_id == port_id)
  27791. break;
  27792. }
  27793. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27794. pr_err("%s: Invalid pp params backend index %d\n",
  27795. __func__, index);
  27796. return -EINVAL;
  27797. }
  27798. session_type =
  27799. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27800. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27801. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27802. MSM_FRONTEND_DAI_MM_SIZE) {
  27803. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27804. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27805. compr_passthr_mode = false;
  27806. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27807. unsigned long copp =
  27808. session_copp_map[i]
  27809. [SESSION_TYPE_RX][be_idx];
  27810. if (!test_bit(idx, &copp))
  27811. continue;
  27812. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27813. idx);
  27814. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27815. continue;
  27816. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27817. __func__, port_id, copp, msm_bedais[be_idx].active,
  27818. fe_dai_map[i][session_type].passthr_mode);
  27819. switch (pp_id) {
  27820. case ADM_PP_PARAM_MUTE_ID:
  27821. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27822. mute = ucontrol->value.integer.value[1] ? true : false;
  27823. msm_bedais_pp_params[index].mute_on = mute;
  27824. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27825. &msm_bedais_pp_params[index].pp_params_config);
  27826. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27827. adm_send_compressed_device_mute(port_id,
  27828. idx, mute);
  27829. break;
  27830. case ADM_PP_PARAM_LATENCY_ID:
  27831. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27832. msm_bedais_pp_params[index].latency =
  27833. ucontrol->value.integer.value[1];
  27834. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27835. &msm_bedais_pp_params[index].pp_params_config);
  27836. latency = msm_bedais_pp_params[index].latency =
  27837. ucontrol->value.integer.value[1];
  27838. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27839. adm_send_compressed_device_latency(port_id,
  27840. idx, latency);
  27841. break;
  27842. default:
  27843. pr_info("%s, device pp param %d not supported\n",
  27844. __func__, pp_id);
  27845. break;
  27846. }
  27847. }
  27848. }
  27849. return 0;
  27850. }
  27851. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27852. struct snd_ctl_elem_value *ucontrol)
  27853. {
  27854. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27855. return 0;
  27856. }
  27857. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27858. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27859. 0, 3, msm_routing_get_device_pp_params_mixer,
  27860. msm_routing_put_device_pp_params_mixer),
  27861. };
  27862. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27863. struct snd_ctl_elem_value *ucontrol)
  27864. {
  27865. ucontrol->value.integer.value[0] =
  27866. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27867. pr_debug("%s: status %ld\n", __func__,
  27868. ucontrol->value.integer.value[0]);
  27869. return 0;
  27870. }
  27871. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27872. struct snd_ctl_elem_value *ucontrol)
  27873. {
  27874. int32_t status = 0;
  27875. status = core_set_license(ucontrol->value.integer.value[0],
  27876. APTX_CLASSIC_DEC_LICENSE_ID);
  27877. pr_debug("%s: status %d\n", __func__, status);
  27878. return status;
  27879. }
  27880. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27881. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27882. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27883. msm_aptx_dec_license_control_put),
  27884. };
  27885. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27886. struct snd_ctl_elem_value *ucontrol)
  27887. {
  27888. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27889. uint32_t be_idx = ucontrol->value.integer.value[0];
  27890. int i;
  27891. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27892. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27893. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27894. pr_err("%s: Invalid channel map %d\n",
  27895. __func__, channel_map[i]);
  27896. return -EINVAL;
  27897. }
  27898. }
  27899. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27900. return 0;
  27901. }
  27902. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27903. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27904. MSM_BACKEND_DAI_MAX, 0,
  27905. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27906. msm_routing_put_port_chmap_mixer),
  27907. };
  27908. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27909. struct snd_ctl_elem_info *uinfo)
  27910. {
  27911. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27912. uinfo->count = sizeof(be_dai_name_table);
  27913. return 0;
  27914. }
  27915. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27916. unsigned int __user *bytes,
  27917. unsigned int size)
  27918. {
  27919. int i;
  27920. int ret = 0;
  27921. if (size < sizeof(be_dai_name_table)) {
  27922. pr_err("%s: invalid size %d requested, returning\n",
  27923. __func__, size);
  27924. ret = -EINVAL;
  27925. goto done;
  27926. }
  27927. /*
  27928. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27929. * needed when adding new backends
  27930. */
  27931. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27932. be_dai_name_table[i].be_id = i;
  27933. strlcpy(be_dai_name_table[i].be_name,
  27934. msm_bedais[i].name,
  27935. LPASS_BE_NAME_MAX_LENGTH);
  27936. }
  27937. ret = copy_to_user(bytes, &be_dai_name_table,
  27938. sizeof(be_dai_name_table));
  27939. if (ret) {
  27940. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27941. ret = -EFAULT;
  27942. }
  27943. done:
  27944. return ret;
  27945. }
  27946. static const struct snd_kcontrol_new
  27947. msm_routing_be_dai_name_table_mixer_controls[] = {
  27948. {
  27949. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27950. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27951. .info = msm_routing_be_dai_name_table_info,
  27952. .name = "Backend DAI Name Table",
  27953. .tlv.c = snd_soc_bytes_tlv_callback,
  27954. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27955. .max = sizeof(be_dai_name_table),
  27956. .get = msm_routing_be_dai_name_table_tlv_get,
  27957. }
  27958. },
  27959. };
  27960. static int msm_routing_stereo_channel_reverse_control_get(
  27961. struct snd_kcontrol *kcontrol,
  27962. struct snd_ctl_elem_value *ucontrol)
  27963. {
  27964. ucontrol->value.integer.value[0] = swap_ch;
  27965. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27966. ucontrol->value.integer.value[0]);
  27967. return 0;
  27968. }
  27969. static int msm_routing_stereo_channel_reverse_control_put(
  27970. struct snd_kcontrol *kcontrol,
  27971. struct snd_ctl_elem_value *ucontrol)
  27972. {
  27973. int i, idx, be_index, port_id;
  27974. int ret = 0;
  27975. unsigned long copp;
  27976. pr_debug("%s Swap channel value:%ld\n", __func__,
  27977. ucontrol->value.integer.value[0]);
  27978. swap_ch = ucontrol->value.integer.value[0];
  27979. mutex_lock(&routing_lock);
  27980. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27981. port_id = msm_bedais[be_index].port_id;
  27982. if (!msm_bedais[be_index].active)
  27983. continue;
  27984. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27985. MSM_FRONTEND_DAI_MM_SIZE) {
  27986. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27987. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27988. if (!test_bit(idx, &copp))
  27989. continue;
  27990. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27991. __func__, port_id, idx);
  27992. ret = adm_swap_speaker_channels(
  27993. port_id, idx,
  27994. msm_bedais[be_index].sample_rate,
  27995. swap_ch);
  27996. if (ret) {
  27997. pr_err("%s:Swap_channel failed, err=%d\n",
  27998. __func__, ret);
  27999. goto done;
  28000. }
  28001. }
  28002. }
  28003. }
  28004. done:
  28005. mutex_unlock(&routing_lock);
  28006. return ret;
  28007. }
  28008. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  28009. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  28010. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  28011. msm_routing_stereo_channel_reverse_control_put),
  28012. };
  28013. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  28014. struct snd_ctl_elem_info *uinfo)
  28015. {
  28016. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  28017. uinfo->count = 1;
  28018. return 0;
  28019. }
  28020. static int msm_routing_instance_id_support_put(
  28021. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28022. {
  28023. bool supported = ucontrol->value.integer.value[0] ? true : false;
  28024. q6common_update_instance_id_support(supported);
  28025. return 0;
  28026. }
  28027. static int msm_routing_instance_id_support_get(
  28028. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28029. {
  28030. bool supported = false;
  28031. supported = q6common_is_instance_id_supported();
  28032. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  28033. return 0;
  28034. }
  28035. static const struct snd_kcontrol_new
  28036. msm_routing_feature_support_mixer_controls[] = {
  28037. {
  28038. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  28039. SNDRV_CTL_ELEM_ACCESS_WRITE,
  28040. .info = msm_routing_instance_id_support_info,
  28041. .name = "Instance ID Support",
  28042. .put = msm_routing_instance_id_support_put,
  28043. .get = msm_routing_instance_id_support_get,
  28044. },
  28045. };
  28046. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  28047. .hw_params = msm_pcm_routing_hw_params,
  28048. .close = msm_pcm_routing_close,
  28049. .prepare = msm_pcm_routing_prepare,
  28050. };
  28051. /* Not used but frame seems to require it */
  28052. static int msm_routing_probe(struct snd_soc_component *component)
  28053. {
  28054. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  28055. ARRAY_SIZE(msm_qdsp6_widgets));
  28056. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  28057. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  28058. snd_soc_dapm_add_routes(&component->dapm, intercon,
  28059. ARRAY_SIZE(intercon));
  28060. snd_soc_dapm_new_widgets(component->dapm.card);
  28061. snd_soc_add_component_controls(component, lsm_controls,
  28062. ARRAY_SIZE(lsm_controls));
  28063. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  28064. ARRAY_SIZE(aanc_slim_0_rx_mux));
  28065. snd_soc_add_component_controls(component, aanc_noise_level,
  28066. ARRAY_SIZE(aanc_noise_level));
  28067. snd_soc_add_component_controls(component, msm_voc_session_controls,
  28068. ARRAY_SIZE(msm_voc_session_controls));
  28069. snd_soc_add_component_controls(component, app_type_cfg_controls,
  28070. ARRAY_SIZE(app_type_cfg_controls));
  28071. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  28072. ARRAY_SIZE(lsm_app_type_cfg_controls));
  28073. snd_soc_add_component_controls(component, module_cfg_controls,
  28074. ARRAY_SIZE(module_cfg_controls));
  28075. snd_soc_add_component_controls(component,
  28076. stereo_to_custom_stereo_controls,
  28077. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  28078. snd_soc_add_component_controls(component, ec_ref_param_controls,
  28079. ARRAY_SIZE(ec_ref_param_controls));
  28080. snd_soc_add_component_controls(component, channel_mixer_controls,
  28081. ARRAY_SIZE(channel_mixer_controls));
  28082. msm_qti_pp_add_controls(component);
  28083. msm_dts_srs_tm_add_controls(component);
  28084. msm_dolby_dap_add_controls(component);
  28085. snd_soc_add_component_controls(component,
  28086. use_ds1_or_ds2_controls,
  28087. ARRAY_SIZE(use_ds1_or_ds2_controls));
  28088. snd_soc_add_component_controls(component,
  28089. hifi_filter_controls,
  28090. ARRAY_SIZE(hifi_filter_controls));
  28091. snd_soc_add_component_controls(component,
  28092. device_pp_params_mixer_controls,
  28093. ARRAY_SIZE(device_pp_params_mixer_controls));
  28094. snd_soc_add_component_controls(component,
  28095. msm_routing_be_dai_name_table_mixer_controls,
  28096. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  28097. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  28098. ARRAY_SIZE(msm_source_tracking_controls));
  28099. snd_soc_add_component_controls(component, adm_channel_config_controls,
  28100. ARRAY_SIZE(adm_channel_config_controls));
  28101. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  28102. ARRAY_SIZE(aptx_dec_license_controls));
  28103. snd_soc_add_component_controls(component,
  28104. stereo_channel_reverse_control,
  28105. ARRAY_SIZE(stereo_channel_reverse_control));
  28106. snd_soc_add_component_controls(
  28107. component, msm_routing_feature_support_mixer_controls,
  28108. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  28109. snd_soc_add_component_controls(component,
  28110. port_multi_channel_map_mixer_controls,
  28111. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  28112. return 0;
  28113. }
  28114. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  28115. {
  28116. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  28117. }
  28118. void msm_routing_pcm_free(struct snd_pcm *pcm)
  28119. {
  28120. msm_pcm_routing_hwdep_free(pcm);
  28121. }
  28122. static struct snd_soc_component_driver msm_soc_routing_component = {
  28123. .name = DRV_NAME,
  28124. .ops = &msm_routing_pcm_ops,
  28125. .probe = msm_routing_probe,
  28126. .pcm_new = msm_routing_pcm_new,
  28127. .pcm_free = msm_routing_pcm_free,
  28128. };
  28129. static int msm_routing_pcm_probe(struct platform_device *pdev)
  28130. {
  28131. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  28132. return snd_soc_register_component(&pdev->dev,
  28133. &msm_soc_routing_component,
  28134. NULL, 0);
  28135. }
  28136. static int msm_routing_pcm_remove(struct platform_device *pdev)
  28137. {
  28138. snd_soc_unregister_component(&pdev->dev);
  28139. return 0;
  28140. }
  28141. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  28142. {.compatible = "qcom,msm-pcm-routing"},
  28143. {}
  28144. };
  28145. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  28146. static struct platform_driver msm_routing_pcm_driver = {
  28147. .driver = {
  28148. .name = "msm-pcm-routing",
  28149. .owner = THIS_MODULE,
  28150. .of_match_table = msm_pcm_routing_dt_match,
  28151. .suppress_bind_attrs = true,
  28152. },
  28153. .probe = msm_routing_pcm_probe,
  28154. .remove = msm_routing_pcm_remove,
  28155. };
  28156. int msm_routing_check_backend_enabled(int fedai_id)
  28157. {
  28158. int i;
  28159. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  28160. /* bad ID assigned in machine driver */
  28161. pr_err("%s: bad MM ID\n", __func__);
  28162. return 0;
  28163. }
  28164. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28165. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  28166. return msm_bedais[i].active;
  28167. }
  28168. return 0;
  28169. }
  28170. static int get_cal_type_index(int32_t cal_type)
  28171. {
  28172. int ret = -EINVAL;
  28173. switch (cal_type) {
  28174. case ADM_TOPOLOGY_CAL_TYPE:
  28175. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  28176. break;
  28177. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  28178. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  28179. break;
  28180. default:
  28181. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  28182. }
  28183. return ret;
  28184. }
  28185. static int msm_routing_set_cal(int32_t cal_type,
  28186. size_t data_size, void *data)
  28187. {
  28188. int ret = 0;
  28189. int cal_index;
  28190. pr_debug("%s\n", __func__);
  28191. cal_index = get_cal_type_index(cal_type);
  28192. if (cal_index < 0) {
  28193. pr_err("%s: Could not get cal index %d\n",
  28194. __func__, cal_index);
  28195. ret = -EINVAL;
  28196. goto done;
  28197. }
  28198. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  28199. if (ret < 0) {
  28200. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  28201. __func__, ret, cal_type);
  28202. ret = -EINVAL;
  28203. goto done;
  28204. }
  28205. /* Pre-load if it is ADM topology */
  28206. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  28207. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  28208. msm_routing_load_topology(data_size, data);
  28209. }
  28210. done:
  28211. return ret;
  28212. }
  28213. static void msm_routing_delete_cal_data(void)
  28214. {
  28215. pr_debug("%s\n", __func__);
  28216. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  28217. }
  28218. static int msm_routing_init_cal_data(void)
  28219. {
  28220. int ret = 0;
  28221. struct cal_type_info cal_type_info[] = {
  28222. {{ADM_TOPOLOGY_CAL_TYPE,
  28223. {NULL, NULL, NULL,
  28224. msm_routing_set_cal, NULL, NULL} },
  28225. {NULL, NULL, cal_utils_match_buf_num} },
  28226. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  28227. {NULL, NULL, NULL,
  28228. msm_routing_set_cal, NULL, NULL} },
  28229. {NULL, NULL, cal_utils_match_buf_num} },
  28230. };
  28231. pr_debug("%s\n", __func__);
  28232. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  28233. &cal_type_info[0]);
  28234. if (ret < 0) {
  28235. pr_err("%s: could not create cal type!\n",
  28236. __func__);
  28237. ret = -EINVAL;
  28238. goto err;
  28239. }
  28240. return ret;
  28241. err:
  28242. msm_routing_delete_cal_data();
  28243. return ret;
  28244. }
  28245. int __init msm_soc_routing_platform_init(void)
  28246. {
  28247. mutex_init(&routing_lock);
  28248. if (msm_routing_init_cal_data())
  28249. pr_err("%s: could not init cal data!\n", __func__);
  28250. afe_set_routing_callback(
  28251. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28252. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28253. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28254. return platform_driver_register(&msm_routing_pcm_driver);
  28255. }
  28256. void msm_soc_routing_platform_exit(void)
  28257. {
  28258. msm_routing_delete_cal_data();
  28259. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28260. mutex_destroy(&routing_lock);
  28261. platform_driver_unregister(&msm_routing_pcm_driver);
  28262. }
  28263. MODULE_DESCRIPTION("MSM routing platform driver");
  28264. MODULE_LICENSE("GPL v2");