msm-pcm-routing-v2.c 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329
  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 int aanc_level;
  76. static int num_app_cfg_types;
  77. static int msm_ec_ref_port_id;
  78. static int afe_loopback_tx_port_index;
  79. static int afe_loopback_tx_port_id = -1;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* all the FES which can support channel mixer for bidirection */
  84. static struct msm_pcm_channel_mixer
  85. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  86. /* input BE for each FE */
  87. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  88. enum {
  89. MADNONE,
  90. MADAUDIO,
  91. MADBEACON,
  92. MADULTRASOUND,
  93. MADSWAUDIO,
  94. };
  95. #define ADM_LSM_PORT_INDEX 9
  96. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  97. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  98. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  99. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  100. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  101. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  102. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  103. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  104. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  105. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  106. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  107. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  108. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  109. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  110. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  111. #define LSM_FUNCTION_TEXT "LSM Function"
  112. static const char * const lsm_port_text[] = {
  113. "None",
  114. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  115. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  116. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  117. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  118. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  119. };
  120. struct msm_pcm_route_bdai_pp_params {
  121. u16 port_id; /* AFE port ID */
  122. unsigned long pp_params_config;
  123. bool mute_on;
  124. int latency;
  125. };
  126. static struct msm_pcm_route_bdai_pp_params
  127. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  128. {HDMI_RX, 0, 0, 0},
  129. {DISPLAY_PORT_RX, 0, 0, 0},
  130. };
  131. /*
  132. * The be_dai_name_table is passed to HAL so that it can specify the
  133. * BE ID for the BE it wants to enable based on the name. Thus there
  134. * is a matching table and structure in HAL that need to be updated
  135. * if any changes to these are made.
  136. */
  137. struct msm_pcm_route_bdai_name {
  138. unsigned int be_id;
  139. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  140. };
  141. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  142. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  143. int fe_id);
  144. static void msm_routing_load_topology(size_t data_size, void *data);
  145. static void msm_routing_unload_topology(uint32_t topology_id);
  146. static int msm_routing_get_bit_width(unsigned int format)
  147. {
  148. int bit_width;
  149. switch (format) {
  150. case SNDRV_PCM_FORMAT_S32_LE:
  151. bit_width = 32;
  152. break;
  153. case SNDRV_PCM_FORMAT_S24_LE:
  154. case SNDRV_PCM_FORMAT_S24_3LE:
  155. bit_width = 24;
  156. break;
  157. case SNDRV_PCM_FORMAT_S16_LE:
  158. default:
  159. bit_width = 16;
  160. }
  161. return bit_width;
  162. }
  163. static bool msm_is_resample_needed(int input_sr, int output_sr)
  164. {
  165. bool rc = false;
  166. if (input_sr != output_sr)
  167. rc = true;
  168. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  169. (rc ? "oh yes" : "not really"),
  170. input_sr, output_sr);
  171. return rc;
  172. }
  173. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  174. int channels)
  175. {
  176. int rc = 0;
  177. switch (topology) {
  178. case SRS_TRUMEDIA_TOPOLOGY_ID:
  179. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  180. msm_dts_srs_tm_init(port_id, copp_idx);
  181. break;
  182. case DS2_ADM_COPP_TOPOLOGY_ID:
  183. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  184. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  185. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  186. is_custom_stereo_on);
  187. if (rc < 0)
  188. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  189. __func__, topology, port_id,
  190. is_custom_stereo_on, rc);
  191. break;
  192. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  193. if (is_ds2_on) {
  194. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  195. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. } else {
  201. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  202. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  203. is_custom_stereo_on);
  204. if (rc < 0)
  205. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  206. __func__, topology, port_id, rc);
  207. }
  208. break;
  209. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  210. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  211. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  212. if (rc < 0)
  213. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  214. __func__, topology, port_id, copp_idx, rc);
  215. break;
  216. default:
  217. /* custom topology specific feature param handlers */
  218. break;
  219. }
  220. }
  221. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  222. {
  223. switch (topology) {
  224. case SRS_TRUMEDIA_TOPOLOGY_ID:
  225. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  226. msm_dts_srs_tm_deinit(port_id);
  227. break;
  228. case DS2_ADM_COPP_TOPOLOGY_ID:
  229. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  230. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  231. msm_ds2_dap_deinit(port_id);
  232. break;
  233. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  234. if (is_ds2_on) {
  235. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  236. msm_ds2_dap_deinit(port_id);
  237. } else {
  238. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_dolby_dap_deinit(port_id);
  240. }
  241. break;
  242. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  243. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  244. msm_qti_pp_asphere_deinit(port_id);
  245. break;
  246. default:
  247. /* custom topology specific feature deinit handlers */
  248. break;
  249. }
  250. }
  251. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  252. int path_type, int perf_mode)
  253. {
  254. int itr = 0, rc = 0;
  255. if ((path_type == ADM_PATH_PLAYBACK) &&
  256. (perf_mode == LEGACY_PCM_MODE) &&
  257. is_custom_stereo_on) {
  258. for (itr = 0; itr < payload.num_copps; itr++) {
  259. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  260. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  261. continue;
  262. }
  263. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  264. payload.port_id[itr],
  265. payload.copp_idx[itr],
  266. payload.session_id,
  267. Q14_GAIN_ZERO_POINT_FIVE,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE);
  271. if (rc < 0)
  272. pr_err("%s: err setting custom stereo\n",
  273. __func__);
  274. }
  275. }
  276. }
  277. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  278. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  279. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  280. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  281. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  282. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  283. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  284. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  285. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  286. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  287. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  288. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_AFE_PCM_RX},
  290. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_AFE_PCM_TX},
  292. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_AUXPCM_RX},
  294. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_AUXPCM_TX},
  296. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_VOICE_PLAYBACK_TX},
  298. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_VOICE2_PLAYBACK_TX},
  300. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  301. LPASS_BE_INCALL_RECORD_RX},
  302. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  303. LPASS_BE_INCALL_RECORD_TX},
  304. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  305. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  306. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  307. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  308. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  309. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  310. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  311. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  312. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  313. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  314. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  315. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  316. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  317. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  318. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  319. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  320. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  321. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  322. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  323. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  326. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_QUAT_MI2S_RX},
  328. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_QUAT_MI2S_TX},
  330. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_SEC_MI2S_RX},
  332. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_SEC_MI2S_TX},
  334. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_PRI_MI2S_RX},
  336. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_PRI_MI2S_TX},
  338. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_TERT_MI2S_RX},
  340. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_TERT_MI2S_TX},
  342. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_AUDIO_I2S_RX},
  344. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_SEC_AUXPCM_RX},
  346. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SEC_AUXPCM_TX},
  348. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_PRI_SPDIF_RX},
  350. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_SEC_MI2S_RX_SD1},
  352. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_QUIN_MI2S_RX},
  354. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_QUIN_MI2S_TX},
  356. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_SENARY_MI2S_TX},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_0},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_0},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_1},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_1},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_2},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_2},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_3},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_3},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_4},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_4},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_5},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_5},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_6},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_6},
  386. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_PRI_TDM_RX_7},
  388. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_PRI_TDM_TX_7},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_0},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_0},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_1},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_1},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_2},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_2},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_3},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_3},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_4},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_4},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_5},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_5},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_6},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_6},
  418. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_SEC_TDM_RX_7},
  420. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_SEC_TDM_TX_7},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_0},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_0},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_1},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_1},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_2},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_2},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_3},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_3},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_4},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_4},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_5},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_5},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_6},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_6},
  450. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_TERT_TDM_RX_7},
  452. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_TERT_TDM_TX_7},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_0},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_0},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_1},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_1},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_2},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_2},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_3},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_3},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_4},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_4},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_5},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_5},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_6},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_6},
  482. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUAT_TDM_RX_7},
  484. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUAT_TDM_TX_7},
  486. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_0},
  488. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_0},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_1},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_1},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_2},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_2},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_3},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_3},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_4},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_4},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_5},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_5},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_6},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_6},
  514. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_QUIN_TDM_RX_7},
  516. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_QUIN_TDM_TX_7},
  518. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_SEN_TDM_RX_0},
  520. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_SEN_TDM_TX_0},
  522. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEN_TDM_RX_1},
  524. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEN_TDM_TX_1},
  526. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEN_TDM_RX_2},
  528. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEN_TDM_TX_2},
  530. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_SEN_TDM_RX_3},
  532. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SEN_TDM_TX_3},
  534. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SEN_TDM_RX_4},
  536. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_SEN_TDM_TX_4},
  538. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_SEN_TDM_RX_5},
  540. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_SEN_TDM_TX_5},
  542. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_SEN_TDM_RX_6},
  544. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_SEN_TDM_TX_6},
  546. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_SEN_TDM_RX_7},
  548. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_SEN_TDM_TX_7},
  550. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT_BT_A2DP_RX},
  552. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_USB_AUDIO_RX},
  554. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_USB_AUDIO_TX},
  556. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_DISPLAY_PORT},
  558. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_DISPLAY_PORT1},
  560. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_TERT_AUXPCM_RX},
  562. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_TERT_AUXPCM_TX},
  564. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_QUAT_AUXPCM_RX},
  566. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_QUAT_AUXPCM_TX},
  568. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_QUIN_AUXPCM_RX},
  570. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_QUIN_AUXPCM_TX},
  572. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_INT0_MI2S_RX},
  574. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_INT0_MI2S_TX},
  576. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_INT1_MI2S_RX},
  578. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_INT1_MI2S_TX},
  580. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_INT2_MI2S_RX},
  582. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_INT2_MI2S_TX},
  584. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_INT3_MI2S_RX},
  586. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_INT3_MI2S_TX},
  588. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_INT4_MI2S_RX},
  590. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_INT4_MI2S_TX},
  592. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_INT5_MI2S_RX},
  594. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_INT5_MI2S_TX},
  596. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_INT6_MI2S_RX},
  598. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_INT6_MI2S_TX},
  600. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_SEN_AUXPCM_RX},
  602. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_SEN_AUXPCM_TX},
  604. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_SENARY_MI2S_RX},
  606. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_WSA_CDC_DMA_RX_0},
  608. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_WSA_CDC_DMA_TX_0},
  610. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_WSA_CDC_DMA_RX_1},
  612. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_WSA_CDC_DMA_TX_1},
  614. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_WSA_CDC_DMA_TX_2},
  616. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_VA_CDC_DMA_TX_0},
  618. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_VA_CDC_DMA_TX_1},
  620. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_VA_CDC_DMA_TX_2},
  622. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_RX_CDC_DMA_RX_0},
  624. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_TX_CDC_DMA_TX_0},
  626. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_RX_CDC_DMA_RX_1},
  628. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TX_CDC_DMA_TX_1},
  630. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_RX_CDC_DMA_RX_2},
  632. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_TX_CDC_DMA_TX_2},
  634. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_RX_CDC_DMA_RX_3},
  636. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_TX_CDC_DMA_TX_3},
  638. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_RX_CDC_DMA_RX_4},
  640. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_TX_CDC_DMA_TX_4},
  642. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_RX_CDC_DMA_RX_5},
  644. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_TX_CDC_DMA_TX_5},
  646. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_RX_CDC_DMA_RX_6},
  648. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_RX_CDC_DMA_RX_7},
  650. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_PRI_SPDIF_TX},
  652. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_SEC_SPDIF_RX},
  654. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_SEC_SPDIF_TX},
  656. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  657. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  658. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  659. };
  660. /* Track ASM playback & capture sessions of DAI
  661. * Track LSM listen sessions
  662. */
  663. static struct msm_pcm_routing_fdai_data
  664. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  665. /* MULTIMEDIA1 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  668. /* MULTIMEDIA2 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  671. /* MULTIMEDIA3 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  674. /* MULTIMEDIA4 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA5 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA6 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA7*/
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA8 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA9 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA10 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* MULTIMEDIA11 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* MULTIMEDIA12 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* MULTIMEDIA13 */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* MULTIMEDIA14 */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* MULTIMEDIA15 */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* MULTIMEDIA16 */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* MULTIMEDIA17 */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* MULTIMEDIA18 */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* MULTIMEDIA19 */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* MULTIMEDIA20 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* MULTIMEDIA21 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* MULTIMEDIA26 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* MULTIMEDIA27 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* MULTIMEDIA28 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* MULTIMEDIA29 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* VOIP */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* AFE_RX */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* AFE_TX */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. /* VOICE_STUB */
  750. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  751. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  752. /* DTMF_RX */
  753. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  754. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  755. /* QCHAT */
  756. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  757. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  758. /* VOLTE_STUB */
  759. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  760. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  761. /* LSM1 */
  762. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  763. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  764. /* LSM2 */
  765. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  766. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  767. /* LSM3 */
  768. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  769. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  770. /* LSM4 */
  771. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  772. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  773. /* LSM5 */
  774. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  775. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  776. /* LSM6 */
  777. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  778. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  779. /* LSM7 */
  780. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  781. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  782. /* LSM8 */
  783. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  784. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  785. /* VOICE2_STUB */
  786. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  787. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  788. /* VOICEMMODE1 */
  789. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  790. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  791. /* VOICEMMODE2 */
  792. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  793. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  794. };
  795. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  796. [MSM_BACKEND_DAI_MAX];
  797. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  798. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  799. static struct msm_pcm_stream_app_type_cfg
  800. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  801. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  802. /* The caller of this should acquire routing lock */
  803. void msm_pcm_routing_get_bedai_info(int be_idx,
  804. struct msm_pcm_routing_bdai_data *be_dai)
  805. {
  806. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  807. memcpy(be_dai, &msm_bedais[be_idx],
  808. sizeof(struct msm_pcm_routing_bdai_data));
  809. }
  810. /* The caller of this should acquire routing lock */
  811. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  812. struct msm_pcm_routing_fdai_data *fe_dai)
  813. {
  814. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  815. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  816. sizeof(struct msm_pcm_routing_fdai_data));
  817. }
  818. void msm_pcm_routing_acquire_lock(void)
  819. {
  820. mutex_lock(&routing_lock);
  821. }
  822. void msm_pcm_routing_release_lock(void)
  823. {
  824. mutex_unlock(&routing_lock);
  825. }
  826. static int msm_pcm_routing_get_app_type_idx(int app_type)
  827. {
  828. int idx;
  829. pr_debug("%s: app_type: %d\n", __func__, app_type);
  830. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  831. if (app_type_cfg[idx].app_type == app_type)
  832. return idx;
  833. }
  834. pr_info("%s: App type not available, fallback to default\n", __func__);
  835. return 0;
  836. }
  837. static int msm_pcm_routing_get_lsm_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 (lsm_app_type_cfg[idx].app_type == app_type)
  843. return idx;
  844. }
  845. pr_debug("%s: App type not available, fallback to default\n", __func__);
  846. return 0;
  847. }
  848. static int get_port_id(int port_id)
  849. {
  850. int ret = port_id;
  851. if (port_id == AFE_LOOPBACK_TX) {
  852. /*
  853. * Return afe_loopback_tx_port_id if set. Else return
  854. * msm_ec_ref_port_id to maintain backward compatibility.
  855. */
  856. if (afe_loopback_tx_port_id != -1)
  857. ret = afe_loopback_tx_port_id;
  858. else
  859. ret = msm_ec_ref_port_id;
  860. }
  861. return ret;
  862. }
  863. static bool is_mm_lsm_fe_id(int fe_id)
  864. {
  865. bool rc = true;
  866. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  867. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  868. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  869. rc = false;
  870. }
  871. return rc;
  872. }
  873. /*
  874. * msm_pcm_routing_send_chmix_cfg:
  875. * send the channel mixer command to mix the input channels
  876. * into output channels.
  877. *
  878. * @fe_id: front end id
  879. * @ip_channel_cnt: input channel count
  880. * @op_channel_cnt: output channel count
  881. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  882. * @session_type: indicates session is of type TX or RX
  883. * @stream_type: indicates either Audio or Listen stream type
  884. */
  885. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  886. int op_channel_cnt, int *ch_wght_coeff,
  887. int session_type, int stream_type)
  888. {
  889. int rc = 0, idx = 0;
  890. int be_index = 0, port_id;
  891. unsigned int session_id = 0;
  892. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  893. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  894. stream_type);
  895. if (!is_mm_lsm_fe_id(fe_id)) {
  896. /* bad ID assigned in machine driver */
  897. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  898. return -EINVAL;
  899. }
  900. if (ch_wght_coeff == NULL) {
  901. pr_err("%s: Null channel weightage coefficients passed\n",
  902. __func__);
  903. return -EINVAL;
  904. }
  905. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  906. port_id = msm_bedais[be_index].port_id;
  907. if (!msm_bedais[be_index].active ||
  908. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  909. continue;
  910. session_id = fe_dai_map[fe_id][session_type].strm_id;
  911. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  912. unsigned long copp =
  913. session_copp_map[fe_id][session_type][be_index];
  914. if (!test_bit(idx, &copp))
  915. continue;
  916. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  917. session_id, ip_channel_cnt,
  918. op_channel_cnt, ch_wght_coeff,
  919. session_type, stream_type);
  920. if (rc < 0)
  921. pr_err("%s: err setting channel mix config\n",
  922. __func__);
  923. }
  924. }
  925. return 0;
  926. }
  927. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  928. /**
  929. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  930. * setting before use case start.
  931. *
  932. * @fe_id: frontend idx
  933. * @type: stream direction type
  934. * @params: parameters of channel mixer setting
  935. *
  936. * Return 0 for success
  937. */
  938. int msm_pcm_routing_set_channel_mixer_cfg(
  939. int fe_id, int type,
  940. struct msm_pcm_channel_mixer *params)
  941. {
  942. int i, j = 0;
  943. channel_mixer_v2[fe_id][type].enable = params->enable;
  944. channel_mixer_v2[fe_id][type].rule = params->rule;
  945. channel_mixer_v2[fe_id][type].input_channel =
  946. params->input_channel;
  947. channel_mixer_v2[fe_id][type].output_channel =
  948. params->output_channel;
  949. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  950. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  951. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  952. params->in_ch_map[i];
  953. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  954. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  955. params->out_ch_map[i];
  956. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  957. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  958. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  959. params->channel_weight[i][j];
  960. channel_mixer_v2[fe_id][type].override_in_ch_map =
  961. params->override_in_ch_map;
  962. channel_mixer_v2[fe_id][type].override_out_ch_map =
  963. params->override_out_ch_map;
  964. return 0;
  965. }
  966. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  967. int msm_pcm_routing_reg_stream_app_type_cfg(
  968. int fedai_id, int session_type, int be_id,
  969. struct msm_pcm_stream_app_type_cfg *cfg_data)
  970. {
  971. int ret = 0;
  972. if (cfg_data == NULL) {
  973. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  974. ret = -EINVAL;
  975. goto done;
  976. }
  977. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  978. __func__, fedai_id, session_type, be_id,
  979. cfg_data->app_type, cfg_data->acdb_dev_id,
  980. cfg_data->sample_rate);
  981. if (!is_mm_lsm_fe_id(fedai_id)) {
  982. pr_err("%s: Invalid machine driver ID %d\n",
  983. __func__, fedai_id);
  984. ret = -EINVAL;
  985. goto done;
  986. }
  987. if (session_type != SESSION_TYPE_RX &&
  988. session_type != SESSION_TYPE_TX) {
  989. pr_err("%s: Invalid session type %d\n",
  990. __func__, session_type);
  991. ret = -EINVAL;
  992. goto done;
  993. }
  994. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  995. pr_err("%s: Received out of bounds be_id %d\n",
  996. __func__, be_id);
  997. ret = -EINVAL;
  998. goto done;
  999. }
  1000. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1001. /*
  1002. * Store the BE ID of the configuration information set as the latest so
  1003. * the get mixer control knows what to return.
  1004. */
  1005. last_be_id_configured[fedai_id][session_type] = be_id;
  1006. done:
  1007. return ret;
  1008. }
  1009. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1010. /**
  1011. * msm_pcm_routing_get_stream_app_type_cfg
  1012. *
  1013. * Receives fedai_id, session_type, be_id, and populates app_type,
  1014. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1015. * -EINVAL and does not alter passed values.
  1016. *
  1017. * fedai_id - Passed value, front end ID for which app type config is wanted
  1018. * session_type - Passed value, session type for which app type config
  1019. * is wanted
  1020. * be_id - Returned value, back end device id the app type config data is for
  1021. * cfg_data - Returned value, configuration data used by app type config
  1022. */
  1023. int msm_pcm_routing_get_stream_app_type_cfg(
  1024. int fedai_id, int session_type, int *bedai_id,
  1025. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1026. {
  1027. int be_id;
  1028. int ret = 0;
  1029. if (bedai_id == NULL) {
  1030. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1031. ret = -EINVAL;
  1032. goto done;
  1033. } else if (cfg_data == NULL) {
  1034. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1035. ret = -EINVAL;
  1036. goto done;
  1037. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1038. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1039. ret = -EINVAL;
  1040. goto done;
  1041. } else if (session_type != SESSION_TYPE_RX &&
  1042. session_type != SESSION_TYPE_TX) {
  1043. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1044. ret = -EINVAL;
  1045. goto done;
  1046. }
  1047. be_id = last_be_id_configured[fedai_id][session_type];
  1048. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1049. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1050. ret = -EINVAL;
  1051. goto done;
  1052. }
  1053. *bedai_id = be_id;
  1054. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1055. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1056. __func__, fedai_id, session_type, *bedai_id,
  1057. cfg_data->app_type, cfg_data->acdb_dev_id,
  1058. cfg_data->sample_rate);
  1059. done:
  1060. return ret;
  1061. }
  1062. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1063. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1064. int cal_index)
  1065. {
  1066. struct list_head *ptr, *next;
  1067. struct cal_block_data *cal_block = NULL;
  1068. pr_debug("%s\n", __func__);
  1069. list_for_each_safe(ptr, next,
  1070. &cal_data[cal_index]->cal_blocks) {
  1071. cal_block = list_entry(ptr,
  1072. struct cal_block_data, list);
  1073. if (cal_utils_is_cal_stale(cal_block))
  1074. continue;
  1075. if (((struct audio_cal_info_adm_top *)cal_block
  1076. ->cal_info)->path == path) {
  1077. return cal_block;
  1078. }
  1079. }
  1080. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1081. return NULL;
  1082. }
  1083. static struct cal_block_data *msm_routing_find_topology(int path,
  1084. int app_type,
  1085. int acdb_id,
  1086. int cal_index,
  1087. bool exact)
  1088. {
  1089. struct list_head *ptr, *next;
  1090. struct cal_block_data *cal_block = NULL;
  1091. struct audio_cal_info_adm_top *cal_info;
  1092. pr_debug("%s\n", __func__);
  1093. list_for_each_safe(ptr, next,
  1094. &cal_data[cal_index]->cal_blocks) {
  1095. cal_block = list_entry(ptr,
  1096. struct cal_block_data, list);
  1097. if (cal_utils_is_cal_stale(cal_block))
  1098. continue;
  1099. cal_info = (struct audio_cal_info_adm_top *)
  1100. cal_block->cal_info;
  1101. if ((cal_info->path == path) &&
  1102. (cal_info->app_type == app_type) &&
  1103. (cal_info->acdb_id == acdb_id)) {
  1104. return cal_block;
  1105. }
  1106. }
  1107. pr_debug("%s: Can't find topology for path %d, app %d, "
  1108. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1109. exact ? "fail" : "defaulting to search by path");
  1110. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1111. cal_index);
  1112. }
  1113. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1114. int acdb_dev_id, int idx,
  1115. bool exact)
  1116. {
  1117. int topology = -EINVAL;
  1118. struct cal_block_data *cal_block = NULL;
  1119. mutex_lock(&cal_data[idx]->lock);
  1120. cal_block = msm_routing_find_topology(session_type, app_type,
  1121. acdb_dev_id, idx, exact);
  1122. if (cal_block != NULL) {
  1123. topology = ((struct audio_cal_info_adm_top *)
  1124. cal_block->cal_info)->topology;
  1125. }
  1126. mutex_unlock(&cal_data[idx]->lock);
  1127. return topology;
  1128. }
  1129. /*
  1130. * Retrieving cal_block will mark cal_block as stale.
  1131. * Hence it cannot be reused or resent unless the flag
  1132. * is reset.
  1133. */
  1134. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1135. int be_id)
  1136. {
  1137. int topology = NULL_COPP_TOPOLOGY;
  1138. int app_type = 0, acdb_dev_id = 0;
  1139. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1140. __func__, fedai_id, session_type, be_id);
  1141. if (cal_data == NULL)
  1142. goto done;
  1143. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1144. acdb_dev_id =
  1145. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1146. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1147. topology = msm_routing_find_topology_on_index(session_type,
  1148. app_type,
  1149. acdb_dev_id,
  1150. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1151. true /*exact*/);
  1152. if (topology < 0) {
  1153. pr_debug("%s: Check for compatible topology\n", __func__);
  1154. topology = msm_routing_find_topology_on_index(session_type,
  1155. app_type,
  1156. acdb_dev_id,
  1157. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1158. false /*exact*/);
  1159. if (topology < 0)
  1160. topology = NULL_COPP_TOPOLOGY;
  1161. }
  1162. done:
  1163. pr_debug("%s: Using topology %d\n", __func__, topology);
  1164. return topology;
  1165. }
  1166. static uint8_t is_be_dai_extproc(int be_dai)
  1167. {
  1168. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1169. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1170. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1171. return 1;
  1172. else
  1173. return 0;
  1174. }
  1175. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1176. int path_type, int perf_mode,
  1177. uint32_t passthr_mode)
  1178. {
  1179. int i, port_type, j, num_copps = 0;
  1180. struct route_payload payload;
  1181. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1182. path_type == ADM_PATH_COMPRESSED_RX) ?
  1183. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1184. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1185. if (!is_be_dai_extproc(i) &&
  1186. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1187. (msm_bedais[i].active) &&
  1188. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1189. int port_id = get_port_id(msm_bedais[i].port_id);
  1190. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1191. unsigned long copp =
  1192. session_copp_map[fedai_id][sess_type][i];
  1193. if (test_bit(j, &copp)) {
  1194. payload.port_id[num_copps] = port_id;
  1195. payload.copp_idx[num_copps] = j;
  1196. payload.app_type[num_copps] =
  1197. fe_dai_app_type_cfg
  1198. [fedai_id][sess_type][i]
  1199. .app_type;
  1200. payload.acdb_dev_id[num_copps] =
  1201. fe_dai_app_type_cfg
  1202. [fedai_id][sess_type][i]
  1203. .acdb_dev_id;
  1204. payload.sample_rate[num_copps] =
  1205. fe_dai_app_type_cfg
  1206. [fedai_id][sess_type][i]
  1207. .sample_rate;
  1208. num_copps++;
  1209. }
  1210. }
  1211. }
  1212. }
  1213. if (num_copps) {
  1214. payload.num_copps = num_copps;
  1215. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1216. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1217. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1218. }
  1219. }
  1220. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1221. int stream_type)
  1222. {
  1223. int i, session_type, path_type, port_type;
  1224. u32 mode = 0;
  1225. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1226. /* bad ID assigned in machine driver */
  1227. pr_err("%s: bad MM ID\n", __func__);
  1228. return;
  1229. }
  1230. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1231. session_type = SESSION_TYPE_RX;
  1232. path_type = ADM_PATH_PLAYBACK;
  1233. port_type = MSM_AFE_PORT_TYPE_RX;
  1234. } else {
  1235. session_type = SESSION_TYPE_TX;
  1236. path_type = ADM_PATH_LIVE_REC;
  1237. port_type = MSM_AFE_PORT_TYPE_TX;
  1238. }
  1239. mutex_lock(&routing_lock);
  1240. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1241. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1242. if (!is_be_dai_extproc(i) &&
  1243. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1244. (msm_bedais[i].active) &&
  1245. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1246. mode = afe_get_port_type(msm_bedais[i].port_id);
  1247. adm_connect_afe_port(mode, dspst_id,
  1248. msm_bedais[i].port_id);
  1249. break;
  1250. }
  1251. }
  1252. mutex_unlock(&routing_lock);
  1253. }
  1254. static bool route_check_fe_id_adm_support(int fe_id)
  1255. {
  1256. bool rc = true;
  1257. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1258. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1259. /* fe id is listen while port is set to afe */
  1260. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1261. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1262. __func__, fe_id, lsm_port_index);
  1263. rc = false;
  1264. }
  1265. }
  1266. return rc;
  1267. }
  1268. /*
  1269. * msm_pcm_routing_get_pp_ch_cnt:
  1270. * Read the processed channel count
  1271. *
  1272. * @fe_id: Front end ID
  1273. * @session_type: Inidicates RX or TX session type
  1274. */
  1275. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1276. {
  1277. struct msm_pcm_stream_app_type_cfg cfg_data;
  1278. int be_id = 0, app_type_idx = 0, app_type = 0;
  1279. int ret = -EINVAL;
  1280. memset(&cfg_data, 0, sizeof(cfg_data));
  1281. if (!is_mm_lsm_fe_id(fe_id)) {
  1282. pr_err("%s: bad MM ID\n", __func__);
  1283. return -EINVAL;
  1284. }
  1285. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1286. &be_id, &cfg_data);
  1287. if (ret) {
  1288. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1289. return ret;
  1290. }
  1291. app_type = cfg_data.app_type;
  1292. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1293. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1294. }
  1295. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1296. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1297. int dspst_id, int stream_type,
  1298. uint32_t passthr_mode)
  1299. {
  1300. int i, j, session_type, path_type, port_type, topology;
  1301. int num_copps = 0;
  1302. struct route_payload payload;
  1303. u32 channels, sample_rate;
  1304. u16 bit_width = 16;
  1305. bool is_lsm;
  1306. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1307. __func__, fe_id, perf_mode, dspst_id,
  1308. stream_type, passthr_mode);
  1309. if (!is_mm_lsm_fe_id(fe_id)) {
  1310. /* bad ID assigned in machine driver */
  1311. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1312. return -EINVAL;
  1313. }
  1314. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1315. session_type = SESSION_TYPE_RX;
  1316. if (passthr_mode != LEGACY_PCM)
  1317. path_type = ADM_PATH_COMPRESSED_RX;
  1318. else
  1319. path_type = ADM_PATH_PLAYBACK;
  1320. port_type = MSM_AFE_PORT_TYPE_RX;
  1321. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1322. session_type = SESSION_TYPE_TX;
  1323. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1324. path_type = ADM_PATH_COMPRESSED_TX;
  1325. else
  1326. path_type = ADM_PATH_LIVE_REC;
  1327. port_type = MSM_AFE_PORT_TYPE_TX;
  1328. } else {
  1329. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1330. return -EINVAL;
  1331. }
  1332. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1333. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1334. mutex_lock(&routing_lock);
  1335. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1336. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1337. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1338. if (!route_check_fe_id_adm_support(fe_id)) {
  1339. /* ignore adm open if not supported for fe_id */
  1340. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1341. mutex_unlock(&routing_lock);
  1342. return 0;
  1343. }
  1344. payload.num_copps = 0; /* only RX needs to use payload */
  1345. /* re-enable EQ if active */
  1346. msm_qti_pp_send_eq_values(fe_id);
  1347. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1348. if (!is_be_dai_extproc(i) &&
  1349. (afe_get_port_type(msm_bedais[i].port_id) ==
  1350. port_type) &&
  1351. (msm_bedais[i].active) &&
  1352. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1353. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1354. int port_id = get_port_id(msm_bedais[i].port_id);
  1355. /*
  1356. * check if ADM needs to be configured with different
  1357. * channel mapping than backend
  1358. */
  1359. if (!msm_bedais[i].adm_override_ch)
  1360. channels = msm_bedais[i].channel;
  1361. else
  1362. channels = msm_bedais[i].adm_override_ch;
  1363. bit_width = msm_routing_get_bit_width(
  1364. msm_bedais[i].format);
  1365. app_type =
  1366. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1367. if (app_type && is_lsm) {
  1368. app_type_idx =
  1369. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1370. sample_rate =
  1371. fe_dai_app_type_cfg[fe_id][session_type][i]
  1372. .sample_rate;
  1373. bit_width =
  1374. lsm_app_type_cfg[app_type_idx].bit_width;
  1375. } else if (app_type) {
  1376. app_type_idx =
  1377. msm_pcm_routing_get_app_type_idx(
  1378. app_type);
  1379. sample_rate =
  1380. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1381. bit_width =
  1382. app_type_cfg[app_type_idx].bit_width;
  1383. } else {
  1384. sample_rate = msm_bedais[i].sample_rate;
  1385. }
  1386. acdb_dev_id =
  1387. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1388. topology = msm_routing_get_adm_topology(fe_id,
  1389. session_type,
  1390. i);
  1391. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1392. || (passthr_mode ==
  1393. COMPRESSED_PASSTHROUGH_GEN)
  1394. || (passthr_mode ==
  1395. COMPRESSED_PASSTHROUGH_IEC61937))
  1396. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1397. pr_debug("%s: Before adm open topology %d\n", __func__,
  1398. topology);
  1399. copp_idx =
  1400. adm_open(port_id, path_type, sample_rate,
  1401. channels, topology, perf_mode,
  1402. bit_width, app_type, acdb_dev_id,
  1403. session_type);
  1404. if ((copp_idx < 0) ||
  1405. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1406. pr_err("%s:adm open failed coppid:%d\n",
  1407. __func__, copp_idx);
  1408. mutex_unlock(&routing_lock);
  1409. return -EINVAL;
  1410. }
  1411. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1412. __func__, fe_id, session_type, i);
  1413. set_bit(copp_idx,
  1414. &session_copp_map[fe_id][session_type][i]);
  1415. if (msm_is_resample_needed(
  1416. sample_rate,
  1417. msm_bedais[i].sample_rate))
  1418. adm_copp_mfc_cfg(port_id, copp_idx,
  1419. msm_bedais[i].sample_rate);
  1420. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1421. unsigned long copp =
  1422. session_copp_map[fe_id][session_type][i];
  1423. if (test_bit(j, &copp)) {
  1424. payload.port_id[num_copps] = port_id;
  1425. payload.copp_idx[num_copps] = j;
  1426. payload.app_type[num_copps] =
  1427. fe_dai_app_type_cfg
  1428. [fe_id][session_type][i]
  1429. .app_type;
  1430. payload.acdb_dev_id[num_copps] =
  1431. fe_dai_app_type_cfg
  1432. [fe_id][session_type][i]
  1433. .acdb_dev_id;
  1434. payload.sample_rate[num_copps] =
  1435. fe_dai_app_type_cfg
  1436. [fe_id][session_type][i]
  1437. .sample_rate;
  1438. num_copps++;
  1439. }
  1440. }
  1441. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1442. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1443. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1444. msm_routing_send_device_pp_params(port_id,
  1445. copp_idx, fe_id);
  1446. }
  1447. }
  1448. if (num_copps) {
  1449. payload.num_copps = num_copps;
  1450. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1451. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1452. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1453. }
  1454. mutex_unlock(&routing_lock);
  1455. return 0;
  1456. }
  1457. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1458. {
  1459. u32 session_id;
  1460. switch (val) {
  1461. case MSM_FRONTEND_DAI_QCHAT:
  1462. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1463. break;
  1464. case MSM_FRONTEND_DAI_VOIP:
  1465. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1466. break;
  1467. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1468. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1469. break;
  1470. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1471. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1472. break;
  1473. default:
  1474. session_id = 0;
  1475. }
  1476. pr_debug("%s session_id 0x%x", __func__, session_id);
  1477. return session_id;
  1478. }
  1479. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1480. int dspst_id, int stream_type)
  1481. {
  1482. int copp_idx = 0;
  1483. int sess_type = 0;
  1484. int j = 0, be_id = 0;
  1485. int ret = 0;
  1486. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1487. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1488. return 0;
  1489. }
  1490. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1491. sess_type = SESSION_TYPE_RX;
  1492. else
  1493. sess_type = SESSION_TYPE_TX;
  1494. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1495. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1496. __func__, fe_id, sess_type);
  1497. return 0;
  1498. }
  1499. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1500. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1501. channel_mixer_v2[fe_id][sess_type].input_channel;
  1502. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1503. __func__, sess_type, fe_id,
  1504. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1505. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1506. msm_bedais[be_id].active);
  1507. if ((msm_bedais[be_id].active) &&
  1508. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1509. unsigned long copp =
  1510. session_copp_map[fe_id][sess_type][be_id];
  1511. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1512. if (test_bit(j, &copp)) {
  1513. copp_idx = j;
  1514. break;
  1515. }
  1516. }
  1517. ret = adm_programable_channel_mixer(
  1518. msm_bedais[be_id].port_id,
  1519. copp_idx, dspst_id, sess_type,
  1520. &channel_mixer_v2[fe_id][sess_type], 0);
  1521. }
  1522. return ret;
  1523. }
  1524. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1525. int dspst_id, int stream_type)
  1526. {
  1527. int copp_idx = 0;
  1528. int sess_type = 0;
  1529. int i = 0, j = 0, be_id;
  1530. int ret = 0;
  1531. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1532. dspst_id, stream_type);
  1533. if (ret) {
  1534. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1535. fe_id);
  1536. return ret;
  1537. }
  1538. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1539. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1540. return 0;
  1541. }
  1542. if (!(channel_mixer[fe_id].enable)) {
  1543. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1544. __func__, fe_id);
  1545. return 0;
  1546. }
  1547. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1548. sess_type = SESSION_TYPE_RX;
  1549. else
  1550. sess_type = SESSION_TYPE_TX;
  1551. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1552. ++i) {
  1553. be_id = channel_input[fe_id][i] - 1;
  1554. channel_mixer[fe_id].input_channels[i] =
  1555. msm_bedais[be_id].channel;
  1556. if ((msm_bedais[be_id].active) &&
  1557. test_bit(fe_id,
  1558. &msm_bedais[be_id].fe_sessions[0])) {
  1559. unsigned long copp =
  1560. session_copp_map[fe_id][sess_type][be_id];
  1561. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1562. if (test_bit(j, &copp)) {
  1563. copp_idx = j;
  1564. break;
  1565. }
  1566. }
  1567. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1568. __func__,
  1569. fe_id, be_id, msm_bedais[be_id].channel,
  1570. copp_idx);
  1571. ret = adm_programable_channel_mixer(
  1572. get_port_id(msm_bedais[be_id].port_id),
  1573. copp_idx, dspst_id, sess_type,
  1574. channel_mixer + fe_id, i);
  1575. }
  1576. }
  1577. return ret;
  1578. }
  1579. /**
  1580. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1581. * setting during runtime.
  1582. *
  1583. * @be_id: backend index
  1584. * @session_id: session index
  1585. * @session_type: session type
  1586. * @params: parameters for channel mixer
  1587. *
  1588. * Retuen: 0 for success, else error
  1589. */
  1590. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1591. int session_type,
  1592. struct msm_pcm_channel_mixer *params)
  1593. {
  1594. int rc = 0;
  1595. int port_id, copp_idx = 0;
  1596. be_id--;
  1597. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1598. pr_err("%s: invalid backend id %d\n", __func__,
  1599. be_id);
  1600. return -EINVAL;
  1601. }
  1602. port_id = msm_bedais[be_id].port_id;
  1603. copp_idx = adm_get_default_copp_idx(port_id);
  1604. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1605. __func__, port_id, copp_idx, session_id);
  1606. if ((params->input_channel < 0) ||
  1607. (params->input_channel > ADM_MAX_CHANNELS)) {
  1608. pr_err("%s: invalid input channel %d\n", __func__,
  1609. params->input_channel);
  1610. return -EINVAL;
  1611. }
  1612. if ((params->output_channel < 0) ||
  1613. (params->output_channel > ADM_MAX_CHANNELS)) {
  1614. pr_err("%s: invalid output channel %d\n", __func__,
  1615. params->output_channel);
  1616. return -EINVAL;
  1617. }
  1618. params->input_channels[0] = params->input_channel;
  1619. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1620. __func__, session_type,
  1621. params->override_in_ch_map,
  1622. params->override_out_ch_map,
  1623. msm_bedais[be_id].active);
  1624. rc = adm_programable_channel_mixer(port_id,
  1625. copp_idx,
  1626. session_id,
  1627. session_type,
  1628. params,
  1629. 0);
  1630. if (rc) {
  1631. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1632. rc = -EINVAL;
  1633. }
  1634. return rc;
  1635. }
  1636. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1637. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1638. int dspst_id, int stream_type)
  1639. {
  1640. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1641. struct route_payload payload;
  1642. u32 channels, sample_rate;
  1643. uint16_t bits_per_sample = 16;
  1644. uint32_t passthr_mode = LEGACY_PCM;
  1645. int ret = 0;
  1646. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1647. /* bad ID assigned in machine driver */
  1648. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1649. return -EINVAL;
  1650. }
  1651. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1652. session_type = SESSION_TYPE_RX;
  1653. path_type = ADM_PATH_PLAYBACK;
  1654. port_type = MSM_AFE_PORT_TYPE_RX;
  1655. } else {
  1656. session_type = SESSION_TYPE_TX;
  1657. path_type = ADM_PATH_LIVE_REC;
  1658. port_type = MSM_AFE_PORT_TYPE_TX;
  1659. }
  1660. mutex_lock(&routing_lock);
  1661. payload.num_copps = 0; /* only RX needs to use payload */
  1662. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1663. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1664. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1665. /* re-enable EQ if active */
  1666. msm_qti_pp_send_eq_values(fedai_id);
  1667. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1668. if (!is_be_dai_extproc(i) &&
  1669. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1670. (msm_bedais[i].active) &&
  1671. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1672. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1673. int port_id = get_port_id(msm_bedais[i].port_id);
  1674. /*
  1675. * check if ADM needs to be configured with different
  1676. * channel mapping than backend
  1677. */
  1678. if (!msm_bedais[i].adm_override_ch)
  1679. channels = msm_bedais[i].channel;
  1680. else
  1681. channels = msm_bedais[i].adm_override_ch;
  1682. bits_per_sample = msm_routing_get_bit_width(
  1683. msm_bedais[i].format);
  1684. app_type =
  1685. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1686. if (app_type) {
  1687. app_type_idx =
  1688. msm_pcm_routing_get_app_type_idx(app_type);
  1689. sample_rate =
  1690. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1691. .sample_rate;
  1692. bits_per_sample =
  1693. app_type_cfg[app_type_idx].bit_width;
  1694. } else
  1695. sample_rate = msm_bedais[i].sample_rate;
  1696. acdb_dev_id =
  1697. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1698. .acdb_dev_id;
  1699. topology = msm_routing_get_adm_topology(fedai_id,
  1700. session_type,
  1701. i);
  1702. copp_idx = adm_open(port_id, path_type,
  1703. sample_rate, channels, topology,
  1704. perf_mode, bits_per_sample,
  1705. app_type, acdb_dev_id,
  1706. session_type);
  1707. if ((copp_idx < 0) ||
  1708. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1709. pr_err("%s: adm open failed copp_idx:%d\n",
  1710. __func__, copp_idx);
  1711. mutex_unlock(&routing_lock);
  1712. return -EINVAL;
  1713. }
  1714. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1715. __func__, fedai_id, session_type, i);
  1716. set_bit(copp_idx,
  1717. &session_copp_map[fedai_id][session_type][i]);
  1718. if (msm_is_resample_needed(
  1719. sample_rate,
  1720. msm_bedais[i].sample_rate))
  1721. adm_copp_mfc_cfg(port_id, copp_idx,
  1722. msm_bedais[i].sample_rate);
  1723. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1724. unsigned long copp =
  1725. session_copp_map[fedai_id][session_type][i];
  1726. if (test_bit(j, &copp)) {
  1727. payload.port_id[num_copps] = port_id;
  1728. payload.copp_idx[num_copps] = j;
  1729. payload.app_type[num_copps] =
  1730. fe_dai_app_type_cfg
  1731. [fedai_id][session_type]
  1732. [i].app_type;
  1733. payload.acdb_dev_id[num_copps] =
  1734. fe_dai_app_type_cfg
  1735. [fedai_id][session_type]
  1736. [i].acdb_dev_id;
  1737. payload.sample_rate[num_copps] =
  1738. fe_dai_app_type_cfg
  1739. [fedai_id][session_type]
  1740. [i].sample_rate;
  1741. num_copps++;
  1742. }
  1743. }
  1744. if (perf_mode == LEGACY_PCM_MODE)
  1745. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1746. topology, channels);
  1747. }
  1748. }
  1749. if (num_copps) {
  1750. payload.num_copps = num_copps;
  1751. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1752. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1753. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1754. }
  1755. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1756. dspst_id, stream_type);
  1757. mutex_unlock(&routing_lock);
  1758. return ret;
  1759. }
  1760. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1761. int dspst_id, int stream_type,
  1762. struct msm_pcm_routing_evt event_info)
  1763. {
  1764. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1765. stream_type)) {
  1766. pr_err("%s: failed to reg phy stream\n", __func__);
  1767. return -EINVAL;
  1768. }
  1769. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1770. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1771. else
  1772. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1773. return 0;
  1774. }
  1775. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1776. {
  1777. int i, port_type, session_type, path_type, topology, port_id;
  1778. struct msm_pcm_routing_fdai_data *fdai;
  1779. if (!is_mm_lsm_fe_id(fedai_id)) {
  1780. /* bad ID assigned in machine driver */
  1781. pr_err("%s: bad MM ID\n", __func__);
  1782. return;
  1783. }
  1784. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1785. port_type = MSM_AFE_PORT_TYPE_RX;
  1786. session_type = SESSION_TYPE_RX;
  1787. path_type = ADM_PATH_PLAYBACK;
  1788. } else {
  1789. port_type = MSM_AFE_PORT_TYPE_TX;
  1790. session_type = SESSION_TYPE_TX;
  1791. path_type = ADM_PATH_LIVE_REC;
  1792. }
  1793. mutex_lock(&routing_lock);
  1794. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1795. if (!is_be_dai_extproc(i) &&
  1796. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1797. (msm_bedais[i].active) &&
  1798. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1799. int idx;
  1800. unsigned long copp =
  1801. session_copp_map[fedai_id][session_type][i];
  1802. fdai = &fe_dai_map[fedai_id][session_type];
  1803. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1804. if (test_bit(idx, &copp))
  1805. break;
  1806. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1807. pr_debug("%s: copp idx is invalid, exiting\n",
  1808. __func__);
  1809. continue;
  1810. }
  1811. port_id = get_port_id(msm_bedais[i].port_id);
  1812. topology = adm_get_topology_for_port_copp_idx(
  1813. port_id, idx);
  1814. msm_routing_unload_topology(topology);
  1815. adm_close(port_id, fdai->perf_mode, idx);
  1816. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1817. __func__, copp, fedai_id, session_type, i);
  1818. clear_bit(idx,
  1819. &session_copp_map[fedai_id][session_type][i]);
  1820. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1821. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1822. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1823. (fdai->passthr_mode == LEGACY_PCM))
  1824. msm_pcm_routing_deinit_pp(port_id, topology);
  1825. }
  1826. }
  1827. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1828. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1829. mutex_unlock(&routing_lock);
  1830. }
  1831. /* Check if FE/BE route is set */
  1832. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1833. {
  1834. bool rc = false;
  1835. if (!is_mm_lsm_fe_id(fe_id)) {
  1836. /* recheck FE ID in the mixer control defined in this file */
  1837. pr_err("%s: bad MM ID\n", __func__);
  1838. return rc;
  1839. }
  1840. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1841. rc = true;
  1842. return rc;
  1843. }
  1844. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1845. {
  1846. int session_type, path_type, topology;
  1847. u32 channels, sample_rate;
  1848. uint16_t bits_per_sample = 16;
  1849. struct msm_pcm_routing_fdai_data *fdai;
  1850. uint32_t passthr_mode;
  1851. bool is_lsm;
  1852. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1853. if (!is_mm_lsm_fe_id(val)) {
  1854. /* recheck FE ID in the mixer control defined in this file */
  1855. pr_err("%s: bad MM ID\n", __func__);
  1856. return;
  1857. }
  1858. if (!route_check_fe_id_adm_support(val)) {
  1859. /* ignore adm open if not supported for fe_id */
  1860. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1861. if (set)
  1862. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1863. else
  1864. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1865. return;
  1866. }
  1867. session_type =
  1868. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1869. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1870. fdai = &fe_dai_map[val][session_type];
  1871. passthr_mode = fdai->passthr_mode;
  1872. if (session_type == SESSION_TYPE_RX) {
  1873. if (passthr_mode != LEGACY_PCM)
  1874. path_type = ADM_PATH_COMPRESSED_RX;
  1875. else
  1876. path_type = ADM_PATH_PLAYBACK;
  1877. } else {
  1878. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1879. path_type = ADM_PATH_COMPRESSED_TX;
  1880. else
  1881. path_type = ADM_PATH_LIVE_REC;
  1882. }
  1883. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1884. (val <= MSM_FRONTEND_DAI_LSM8);
  1885. mutex_lock(&routing_lock);
  1886. if (set) {
  1887. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1888. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1889. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1890. voc_start_playback(set, msm_bedais[reg].port_id);
  1891. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1892. if (msm_bedais[reg].active && fdai->strm_id !=
  1893. INVALID_SESSION) {
  1894. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1895. int port_id = get_port_id(msm_bedais[reg].port_id);
  1896. /*
  1897. * check if ADM needs to be configured with different
  1898. * channel mapping than backend
  1899. */
  1900. if (!msm_bedais[reg].adm_override_ch)
  1901. channels = msm_bedais[reg].channel;
  1902. else
  1903. channels = msm_bedais[reg].adm_override_ch;
  1904. if (session_type == SESSION_TYPE_TX &&
  1905. fdai->be_srate &&
  1906. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1907. pr_debug("%s: flush strm %d diff BE rates\n",
  1908. __func__, fdai->strm_id);
  1909. if (fdai->event_info.event_func)
  1910. fdai->event_info.event_func(
  1911. MSM_PCM_RT_EVT_BUF_RECFG,
  1912. fdai->event_info.priv_data);
  1913. fdai->be_srate = 0; /* might not need it */
  1914. }
  1915. bits_per_sample = msm_routing_get_bit_width(
  1916. msm_bedais[reg].format);
  1917. app_type =
  1918. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1919. if (app_type && is_lsm) {
  1920. app_type_idx =
  1921. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1922. sample_rate =
  1923. fe_dai_app_type_cfg[val][session_type][reg]
  1924. .sample_rate;
  1925. bits_per_sample =
  1926. lsm_app_type_cfg[app_type_idx].bit_width;
  1927. } else if (app_type) {
  1928. app_type_idx =
  1929. msm_pcm_routing_get_app_type_idx(app_type);
  1930. sample_rate =
  1931. fe_dai_app_type_cfg[val][session_type][reg]
  1932. .sample_rate;
  1933. bits_per_sample =
  1934. app_type_cfg[app_type_idx].bit_width;
  1935. } else
  1936. sample_rate = msm_bedais[reg].sample_rate;
  1937. topology = msm_routing_get_adm_topology(val,
  1938. session_type,
  1939. reg);
  1940. acdb_dev_id =
  1941. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1942. copp_idx = adm_open(port_id, path_type,
  1943. sample_rate, channels, topology,
  1944. fdai->perf_mode, bits_per_sample,
  1945. app_type, acdb_dev_id,
  1946. session_type);
  1947. if ((copp_idx < 0) ||
  1948. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1949. pr_err("%s: adm open failed\n", __func__);
  1950. mutex_unlock(&routing_lock);
  1951. return;
  1952. }
  1953. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1954. __func__, val, session_type, reg);
  1955. set_bit(copp_idx,
  1956. &session_copp_map[val][session_type][reg]);
  1957. if (msm_is_resample_needed(
  1958. sample_rate,
  1959. msm_bedais[reg].sample_rate))
  1960. adm_copp_mfc_cfg(port_id, copp_idx,
  1961. msm_bedais[reg].sample_rate);
  1962. if (session_type == SESSION_TYPE_RX &&
  1963. fdai->event_info.event_func)
  1964. fdai->event_info.event_func(
  1965. MSM_PCM_RT_EVT_DEVSWITCH,
  1966. fdai->event_info.priv_data);
  1967. msm_pcm_routing_build_matrix(val, session_type,
  1968. path_type,
  1969. fdai->perf_mode,
  1970. passthr_mode);
  1971. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1972. (passthr_mode == LEGACY_PCM))
  1973. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1974. topology, channels);
  1975. }
  1976. } else {
  1977. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1978. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1979. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1980. voc_start_playback(set, msm_bedais[reg].port_id);
  1981. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1982. if (msm_bedais[reg].active && fdai->strm_id !=
  1983. INVALID_SESSION) {
  1984. int idx;
  1985. int port_id;
  1986. unsigned long copp =
  1987. session_copp_map[val][session_type][reg];
  1988. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1989. if (test_bit(idx, &copp))
  1990. break;
  1991. if (idx >= MAX_COPPS_PER_PORT) {
  1992. pr_debug("%s: copp idx is invalid, exiting\n",
  1993. __func__);
  1994. mutex_unlock(&routing_lock);
  1995. return;
  1996. }
  1997. port_id = get_port_id(msm_bedais[reg].port_id);
  1998. topology = adm_get_topology_for_port_copp_idx(port_id,
  1999. idx);
  2000. msm_routing_unload_topology(topology);
  2001. adm_close(port_id, fdai->perf_mode, idx);
  2002. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2003. __func__, copp, val, session_type, reg,
  2004. topology);
  2005. clear_bit(idx,
  2006. &session_copp_map[val][session_type][reg]);
  2007. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2008. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2009. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2010. (passthr_mode == LEGACY_PCM))
  2011. msm_pcm_routing_deinit_pp(port_id, topology);
  2012. msm_pcm_routing_build_matrix(val, session_type,
  2013. path_type,
  2014. fdai->perf_mode,
  2015. passthr_mode);
  2016. }
  2017. }
  2018. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2019. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2020. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2021. mutex_unlock(&routing_lock);
  2022. }
  2023. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2024. struct snd_ctl_elem_value *ucontrol)
  2025. {
  2026. struct soc_mixer_control *mc =
  2027. (struct soc_mixer_control *)kcontrol->private_value;
  2028. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2029. ucontrol->value.integer.value[0] = 1;
  2030. else
  2031. ucontrol->value.integer.value[0] = 0;
  2032. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2033. ucontrol->value.integer.value[0]);
  2034. return 0;
  2035. }
  2036. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2037. struct snd_ctl_elem_value *ucontrol)
  2038. {
  2039. struct snd_soc_dapm_widget *widget =
  2040. snd_soc_dapm_kcontrol_widget(kcontrol);
  2041. struct soc_mixer_control *mc =
  2042. (struct soc_mixer_control *)kcontrol->private_value;
  2043. struct snd_soc_dapm_update *update = NULL;
  2044. if (ucontrol->value.integer.value[0] &&
  2045. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2046. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2047. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2048. update);
  2049. } else if (!ucontrol->value.integer.value[0] &&
  2050. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2051. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2052. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2053. update);
  2054. }
  2055. return 1;
  2056. }
  2057. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2058. struct snd_ctl_elem_value *ucontrol)
  2059. {
  2060. struct soc_mixer_control *mc =
  2061. (struct soc_mixer_control *)kcontrol->private_value;
  2062. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2063. ucontrol->value.integer.value[0] = 1;
  2064. else
  2065. ucontrol->value.integer.value[0] = 0;
  2066. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2067. ucontrol->value.integer.value[0]);
  2068. return 0;
  2069. }
  2070. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2071. struct snd_ctl_elem_value *ucontrol)
  2072. {
  2073. struct snd_soc_dapm_widget *widget =
  2074. snd_soc_dapm_kcontrol_widget(kcontrol);
  2075. struct soc_mixer_control *mc =
  2076. (struct soc_mixer_control *)kcontrol->private_value;
  2077. struct snd_soc_dapm_update *update = NULL;
  2078. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2079. ucontrol->value.integer.value[0]);
  2080. if (ucontrol->value.integer.value[0]) {
  2081. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2082. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2083. snd_soc_dapm_mixer_update_power(widget->dapm,
  2084. kcontrol, 1, update);
  2085. } else if (!ucontrol->value.integer.value[0]) {
  2086. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2087. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2088. snd_soc_dapm_mixer_update_power(widget->dapm,
  2089. kcontrol, 0, update);
  2090. }
  2091. return 1;
  2092. }
  2093. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2094. {
  2095. u32 session_id = 0;
  2096. u16 path_type;
  2097. struct media_format_info voc_be_media_format;
  2098. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2099. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2100. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2101. __func__, val, session_id);
  2102. mutex_lock(&routing_lock);
  2103. if (set)
  2104. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2105. else
  2106. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2107. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2108. afe_get_port_type(msm_bedais[reg].port_id) ==
  2109. MSM_AFE_PORT_TYPE_RX) {
  2110. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2111. __func__, set, msm_bedais[reg].port_id);
  2112. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2113. }
  2114. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2115. MSM_AFE_PORT_TYPE_RX)
  2116. path_type = RX_PATH;
  2117. else
  2118. path_type = TX_PATH;
  2119. if (set) {
  2120. if (msm_bedais[reg].active) {
  2121. voc_set_route_flag(session_id, path_type, 1);
  2122. memset(&voc_be_media_format, 0,
  2123. sizeof(struct media_format_info));
  2124. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2125. voc_be_media_format.num_channels =
  2126. msm_bedais[reg].channel;
  2127. voc_be_media_format.sample_rate =
  2128. msm_bedais[reg].sample_rate;
  2129. voc_be_media_format.bits_per_sample =
  2130. msm_bedais[reg].format;
  2131. /* Defaulting this to 1 for voice call usecases */
  2132. voc_be_media_format.channel_mapping[0] = 1;
  2133. voc_set_device_config(session_id, path_type,
  2134. &voc_be_media_format);
  2135. if (voc_get_route_flag(session_id, TX_PATH) &&
  2136. voc_get_route_flag(session_id, RX_PATH))
  2137. voc_enable_device(session_id);
  2138. } else {
  2139. pr_debug("%s BE is not active\n", __func__);
  2140. }
  2141. } else {
  2142. voc_set_route_flag(session_id, path_type, 0);
  2143. voc_disable_device(session_id);
  2144. }
  2145. mutex_unlock(&routing_lock);
  2146. }
  2147. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2148. struct snd_ctl_elem_value *ucontrol)
  2149. {
  2150. struct soc_mixer_control *mc =
  2151. (struct soc_mixer_control *)kcontrol->private_value;
  2152. mutex_lock(&routing_lock);
  2153. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2154. ucontrol->value.integer.value[0] = 1;
  2155. else
  2156. ucontrol->value.integer.value[0] = 0;
  2157. mutex_unlock(&routing_lock);
  2158. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2159. ucontrol->value.integer.value[0]);
  2160. return 0;
  2161. }
  2162. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2163. struct snd_ctl_elem_value *ucontrol)
  2164. {
  2165. struct snd_soc_dapm_widget *widget =
  2166. snd_soc_dapm_kcontrol_widget(kcontrol);
  2167. struct soc_mixer_control *mc =
  2168. (struct soc_mixer_control *)kcontrol->private_value;
  2169. struct snd_soc_dapm_update *update = NULL;
  2170. if (ucontrol->value.integer.value[0]) {
  2171. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2172. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2173. update);
  2174. } else {
  2175. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2176. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2177. update);
  2178. }
  2179. return 1;
  2180. }
  2181. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2182. struct snd_ctl_elem_value *ucontrol)
  2183. {
  2184. struct soc_mixer_control *mc =
  2185. (struct soc_mixer_control *)kcontrol->private_value;
  2186. mutex_lock(&routing_lock);
  2187. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2188. ucontrol->value.integer.value[0] = 1;
  2189. else
  2190. ucontrol->value.integer.value[0] = 0;
  2191. mutex_unlock(&routing_lock);
  2192. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2193. ucontrol->value.integer.value[0]);
  2194. return 0;
  2195. }
  2196. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2197. struct snd_ctl_elem_value *ucontrol)
  2198. {
  2199. struct snd_soc_dapm_widget *widget =
  2200. snd_soc_dapm_kcontrol_widget(kcontrol);
  2201. struct soc_mixer_control *mc =
  2202. (struct soc_mixer_control *)kcontrol->private_value;
  2203. struct snd_soc_dapm_update *update = NULL;
  2204. if (ucontrol->value.integer.value[0]) {
  2205. mutex_lock(&routing_lock);
  2206. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2207. mutex_unlock(&routing_lock);
  2208. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2209. update);
  2210. } else {
  2211. mutex_lock(&routing_lock);
  2212. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2213. mutex_unlock(&routing_lock);
  2214. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2215. update);
  2216. }
  2217. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2218. ucontrol->value.integer.value[0]);
  2219. return 1;
  2220. }
  2221. /*
  2222. * Return the mapping between port ID and backend ID to enable the AFE callback
  2223. * to determine the acdb_dev_id from the port id
  2224. */
  2225. int msm_pcm_get_be_id_from_port_id(int port_id)
  2226. {
  2227. int i;
  2228. int be_id = -EINVAL;
  2229. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2230. if (msm_bedais[i].port_id == port_id) {
  2231. be_id = i;
  2232. break;
  2233. }
  2234. }
  2235. return be_id;
  2236. }
  2237. /*
  2238. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2239. * correct AFE calibration information by comparing the header information.
  2240. */
  2241. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2242. {
  2243. int acdb_id = -EINVAL;
  2244. int i = 0;
  2245. int session;
  2246. int port_type = afe_get_port_type(port_id);
  2247. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2248. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2249. __func__, port_id, be_id, port_type);
  2250. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2251. session = SESSION_TYPE_TX;
  2252. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2253. session = SESSION_TYPE_RX;
  2254. } else {
  2255. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2256. acdb_id = -EINVAL;
  2257. goto exit;
  2258. }
  2259. if (be_id < 0) {
  2260. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2261. goto exit;
  2262. }
  2263. mutex_lock(&routing_lock);
  2264. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2265. MSM_FRONTEND_DAI_MAX);
  2266. if (i < MSM_FRONTEND_DAI_MAX)
  2267. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2268. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2269. __func__, i, session, be_id, acdb_id);
  2270. mutex_unlock(&routing_lock);
  2271. exit:
  2272. return acdb_id;
  2273. }
  2274. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2275. struct snd_ctl_elem_value *ucontrol)
  2276. {
  2277. ucontrol->value.integer.value[0] = fm_switch_enable;
  2278. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2279. ucontrol->value.integer.value[0]);
  2280. return 0;
  2281. }
  2282. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2283. struct snd_ctl_elem_value *ucontrol)
  2284. {
  2285. struct snd_soc_dapm_widget *widget =
  2286. snd_soc_dapm_kcontrol_widget(kcontrol);
  2287. struct snd_soc_dapm_update *update = NULL;
  2288. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2289. ucontrol->value.integer.value[0]);
  2290. if (ucontrol->value.integer.value[0])
  2291. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2292. update);
  2293. else
  2294. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2295. update);
  2296. fm_switch_enable = ucontrol->value.integer.value[0];
  2297. return 1;
  2298. }
  2299. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2300. struct snd_ctl_elem_value *ucontrol)
  2301. {
  2302. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2303. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2304. ucontrol->value.integer.value[0]);
  2305. return 0;
  2306. }
  2307. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2308. struct snd_ctl_elem_value *ucontrol)
  2309. {
  2310. struct snd_soc_dapm_widget *widget =
  2311. snd_soc_dapm_kcontrol_widget(kcontrol);
  2312. struct snd_soc_dapm_update *update = NULL;
  2313. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2314. ucontrol->value.integer.value[0]);
  2315. if (ucontrol->value.integer.value[0])
  2316. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2317. 1, update);
  2318. else
  2319. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2320. 0, update);
  2321. hfp_switch_enable = ucontrol->value.integer.value[0];
  2322. return 1;
  2323. }
  2324. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2325. struct snd_ctl_elem_value *ucontrol)
  2326. {
  2327. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2328. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2329. ucontrol->value.integer.value[0]);
  2330. return 0;
  2331. }
  2332. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2333. struct snd_ctl_elem_value *ucontrol)
  2334. {
  2335. struct snd_soc_dapm_widget *widget =
  2336. snd_soc_dapm_kcontrol_widget(kcontrol);
  2337. struct snd_soc_dapm_update *update = NULL;
  2338. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2339. ucontrol->value.integer.value[0]);
  2340. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2341. if (a2dp_switch_enable)
  2342. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2343. 1, update);
  2344. else
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2346. 0, update);
  2347. return 1;
  2348. }
  2349. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2350. struct snd_ctl_elem_value *ucontrol)
  2351. {
  2352. ucontrol->value.integer.value[0] = sco_switch_enable;
  2353. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2354. ucontrol->value.integer.value[0]);
  2355. return 0;
  2356. }
  2357. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2358. struct snd_ctl_elem_value *ucontrol)
  2359. {
  2360. struct snd_soc_dapm_widget *widget =
  2361. snd_soc_dapm_kcontrol_widget(kcontrol);
  2362. struct snd_soc_dapm_update *update = NULL;
  2363. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2364. ucontrol->value.integer.value[0]);
  2365. sco_switch_enable = ucontrol->value.integer.value[0];
  2366. if (sco_switch_enable)
  2367. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2368. 1, update);
  2369. else
  2370. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2371. 0, update);
  2372. return 1;
  2373. }
  2374. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2378. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2379. ucontrol->value.integer.value[0]);
  2380. return 0;
  2381. }
  2382. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2383. struct snd_ctl_elem_value *ucontrol)
  2384. {
  2385. struct snd_soc_dapm_widget *widget =
  2386. snd_soc_dapm_kcontrol_widget(kcontrol);
  2387. struct snd_soc_dapm_update *update = NULL;
  2388. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2389. ucontrol->value.integer.value[0]);
  2390. if (ucontrol->value.integer.value[0])
  2391. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2392. update);
  2393. else
  2394. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2395. update);
  2396. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2397. return 1;
  2398. }
  2399. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2400. struct snd_ctl_elem_value *ucontrol)
  2401. {
  2402. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2403. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2404. ucontrol->value.integer.value[0]);
  2405. return 0;
  2406. }
  2407. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2408. struct snd_ctl_elem_value *ucontrol)
  2409. {
  2410. struct snd_soc_dapm_widget *widget =
  2411. snd_soc_dapm_kcontrol_widget(kcontrol);
  2412. struct snd_soc_dapm_update *update = NULL;
  2413. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2414. ucontrol->value.integer.value[0]);
  2415. if (ucontrol->value.integer.value[0])
  2416. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2417. update);
  2418. else
  2419. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2420. update);
  2421. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2422. return 1;
  2423. }
  2424. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2425. struct snd_ctl_elem_value *ucontrol)
  2426. {
  2427. ucontrol->value.integer.value[0] = usb_switch_enable;
  2428. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2429. ucontrol->value.integer.value[0]);
  2430. return 0;
  2431. }
  2432. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2433. struct snd_ctl_elem_value *ucontrol)
  2434. {
  2435. struct snd_soc_dapm_widget *widget =
  2436. snd_soc_dapm_kcontrol_widget(kcontrol);
  2437. struct snd_soc_dapm_update *update = NULL;
  2438. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2439. ucontrol->value.integer.value[0]);
  2440. if (ucontrol->value.integer.value[0])
  2441. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2442. 1, update);
  2443. else
  2444. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2445. 0, update);
  2446. usb_switch_enable = ucontrol->value.integer.value[0];
  2447. return 1;
  2448. }
  2449. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2450. struct snd_ctl_elem_value *ucontrol)
  2451. {
  2452. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2453. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2454. ucontrol->value.integer.value[0]);
  2455. return 0;
  2456. }
  2457. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2458. struct snd_ctl_elem_value *ucontrol)
  2459. {
  2460. struct snd_soc_dapm_widget *widget =
  2461. snd_soc_dapm_kcontrol_widget(kcontrol);
  2462. struct snd_soc_dapm_update *update = NULL;
  2463. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2464. ucontrol->value.integer.value[0]);
  2465. if (ucontrol->value.integer.value[0])
  2466. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2467. update);
  2468. else
  2469. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2470. update);
  2471. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2472. return 1;
  2473. }
  2474. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2475. struct snd_ctl_elem_value *ucontrol)
  2476. {
  2477. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2478. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2479. ucontrol->value.integer.value[0]);
  2480. return 0;
  2481. }
  2482. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2483. struct snd_ctl_elem_value *ucontrol)
  2484. {
  2485. struct snd_soc_dapm_widget *widget =
  2486. snd_soc_dapm_kcontrol_widget(kcontrol);
  2487. struct snd_soc_dapm_update *update = NULL;
  2488. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2489. ucontrol->value.integer.value[0]);
  2490. if (ucontrol->value.integer.value[0])
  2491. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2492. update);
  2493. else
  2494. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2495. update);
  2496. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2497. return 1;
  2498. }
  2499. static int msm_routing_get_tert_mi2s_switch_mixer(
  2500. struct snd_kcontrol *kcontrol,
  2501. struct snd_ctl_elem_value *ucontrol)
  2502. {
  2503. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2504. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2505. ucontrol->value.integer.value[0]);
  2506. return 0;
  2507. }
  2508. static int msm_routing_put_tert_mi2s_switch_mixer(
  2509. struct snd_kcontrol *kcontrol,
  2510. struct snd_ctl_elem_value *ucontrol)
  2511. {
  2512. struct snd_soc_dapm_widget *widget =
  2513. snd_soc_dapm_kcontrol_widget(kcontrol);
  2514. struct snd_soc_dapm_update *update = NULL;
  2515. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2516. ucontrol->value.integer.value[0]);
  2517. if (ucontrol->value.integer.value[0])
  2518. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2519. update);
  2520. else
  2521. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2522. update);
  2523. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2524. return 1;
  2525. }
  2526. static int msm_routing_get_quat_mi2s_switch_mixer(
  2527. struct snd_kcontrol *kcontrol,
  2528. struct snd_ctl_elem_value *ucontrol)
  2529. {
  2530. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2531. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2532. ucontrol->value.integer.value[0]);
  2533. return 0;
  2534. }
  2535. static int msm_routing_put_quat_mi2s_switch_mixer(
  2536. struct snd_kcontrol *kcontrol,
  2537. struct snd_ctl_elem_value *ucontrol)
  2538. {
  2539. struct snd_soc_dapm_widget *widget =
  2540. snd_soc_dapm_kcontrol_widget(kcontrol);
  2541. struct snd_soc_dapm_update *update = NULL;
  2542. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2543. ucontrol->value.integer.value[0]);
  2544. if (ucontrol->value.integer.value[0])
  2545. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2546. update);
  2547. else
  2548. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2549. update);
  2550. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2551. return 1;
  2552. }
  2553. static int msm_routing_get_quin_mi2s_switch_mixer(
  2554. struct snd_kcontrol *kcontrol,
  2555. struct snd_ctl_elem_value *ucontrol)
  2556. {
  2557. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2558. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2559. ucontrol->value.integer.value[0]);
  2560. return 0;
  2561. }
  2562. static int msm_routing_put_quin_mi2s_switch_mixer(
  2563. struct snd_kcontrol *kcontrol,
  2564. struct snd_ctl_elem_value *ucontrol)
  2565. {
  2566. struct snd_soc_dapm_widget *widget =
  2567. snd_soc_dapm_kcontrol_widget(kcontrol);
  2568. struct snd_soc_dapm_update *update = NULL;
  2569. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2570. ucontrol->value.integer.value[0]);
  2571. if (ucontrol->value.integer.value[0])
  2572. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2573. update);
  2574. else
  2575. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2576. update);
  2577. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2578. return 1;
  2579. }
  2580. static int msm_routing_get_sen_mi2s_switch_mixer(
  2581. struct snd_kcontrol *kcontrol,
  2582. struct snd_ctl_elem_value *ucontrol)
  2583. {
  2584. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2585. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2586. ucontrol->value.integer.value[0]);
  2587. return 0;
  2588. }
  2589. static int msm_routing_put_sen_mi2s_switch_mixer(
  2590. struct snd_kcontrol *kcontrol,
  2591. struct snd_ctl_elem_value *ucontrol)
  2592. {
  2593. struct snd_soc_dapm_widget *widget =
  2594. snd_soc_dapm_kcontrol_widget(kcontrol);
  2595. struct snd_soc_dapm_update *update = NULL;
  2596. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2597. ucontrol->value.integer.value[0]);
  2598. if (ucontrol->value.integer.value[0])
  2599. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2600. update);
  2601. else
  2602. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2603. update);
  2604. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2605. return 1;
  2606. }
  2607. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2608. struct snd_ctl_elem_value *ucontrol)
  2609. {
  2610. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2611. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2612. ucontrol->value.integer.value[0]);
  2613. return 0;
  2614. }
  2615. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2616. struct snd_ctl_elem_value *ucontrol)
  2617. {
  2618. struct snd_soc_dapm_widget *widget =
  2619. snd_soc_dapm_kcontrol_widget(kcontrol);
  2620. struct snd_soc_dapm_update *update = NULL;
  2621. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2622. ucontrol->value.integer.value[0]);
  2623. if (ucontrol->value.integer.value[0])
  2624. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2625. update);
  2626. else
  2627. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2628. update);
  2629. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2630. return 1;
  2631. }
  2632. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2633. struct snd_ctl_elem_value *ucontrol)
  2634. {
  2635. ucontrol->value.integer.value[0] = lsm_port_index;
  2636. return 0;
  2637. }
  2638. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2639. struct snd_ctl_elem_value *ucontrol)
  2640. {
  2641. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2642. int mux = ucontrol->value.enumerated.item[0];
  2643. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2644. if (mux >= e->items) {
  2645. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2646. return -EINVAL;
  2647. }
  2648. pr_debug("%s: LSM enable %ld\n", __func__,
  2649. ucontrol->value.integer.value[0]);
  2650. switch (ucontrol->value.integer.value[0]) {
  2651. case 1:
  2652. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2653. break;
  2654. case 2:
  2655. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2656. break;
  2657. case 3:
  2658. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2659. break;
  2660. case 4:
  2661. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2662. break;
  2663. case 5:
  2664. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2665. break;
  2666. case 6:
  2667. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2668. break;
  2669. case 7:
  2670. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2671. break;
  2672. case 8:
  2673. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2674. break;
  2675. case 9:
  2676. lsm_port = ADM_LSM_PORT_ID;
  2677. break;
  2678. case 10:
  2679. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2680. break;
  2681. case 11:
  2682. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2683. break;
  2684. case 12:
  2685. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2686. break;
  2687. case 13:
  2688. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2689. break;
  2690. case 14:
  2691. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2692. break;
  2693. case 15:
  2694. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2695. break;
  2696. default:
  2697. pr_err("Default lsm port");
  2698. break;
  2699. }
  2700. set_lsm_port(lsm_port);
  2701. lsm_port_index = ucontrol->value.integer.value[0];
  2702. return 0;
  2703. }
  2704. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2705. struct snd_ctl_elem_value *ucontrol)
  2706. {
  2707. int i;
  2708. u16 port_id;
  2709. enum afe_mad_type mad_type;
  2710. pr_debug("%s: enter\n", __func__);
  2711. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2712. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2713. strlen(lsm_port_text[i])))
  2714. break;
  2715. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2716. pr_warn("%s: Invalid id name %s\n", __func__,
  2717. kcontrol->id.name);
  2718. return -EINVAL;
  2719. }
  2720. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2721. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2722. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2723. strlen(lsm_port_text[7])))
  2724. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2725. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2726. strlen(lsm_port_text[8])))
  2727. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2728. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2729. strlen(lsm_port_text[10])))
  2730. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2731. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2732. strlen(lsm_port_text[13])))
  2733. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2734. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2735. strlen(lsm_port_text[14])))
  2736. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2737. mad_type = afe_port_get_mad_type(port_id);
  2738. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2739. mad_type);
  2740. switch (mad_type) {
  2741. case MAD_HW_NONE:
  2742. ucontrol->value.integer.value[0] = MADNONE;
  2743. break;
  2744. case MAD_HW_AUDIO:
  2745. ucontrol->value.integer.value[0] = MADAUDIO;
  2746. break;
  2747. case MAD_HW_BEACON:
  2748. ucontrol->value.integer.value[0] = MADBEACON;
  2749. break;
  2750. case MAD_HW_ULTRASOUND:
  2751. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2752. break;
  2753. case MAD_SW_AUDIO:
  2754. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2755. break;
  2756. default:
  2757. pr_warn("%s: Unknown\n", __func__);
  2758. return -EINVAL;
  2759. }
  2760. return 0;
  2761. }
  2762. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2763. struct snd_ctl_elem_value *ucontrol)
  2764. {
  2765. int i;
  2766. u16 port_id;
  2767. enum afe_mad_type mad_type;
  2768. pr_debug("%s: enter\n", __func__);
  2769. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2770. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2771. strlen(lsm_port_text[i])))
  2772. break;
  2773. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2774. pr_warn("%s: Invalid id name %s\n", __func__,
  2775. kcontrol->id.name);
  2776. return -EINVAL;
  2777. }
  2778. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2779. switch (ucontrol->value.integer.value[0]) {
  2780. case MADNONE:
  2781. mad_type = MAD_HW_NONE;
  2782. break;
  2783. case MADAUDIO:
  2784. mad_type = MAD_HW_AUDIO;
  2785. break;
  2786. case MADBEACON:
  2787. mad_type = MAD_HW_BEACON;
  2788. break;
  2789. case MADULTRASOUND:
  2790. mad_type = MAD_HW_ULTRASOUND;
  2791. break;
  2792. case MADSWAUDIO:
  2793. mad_type = MAD_SW_AUDIO;
  2794. break;
  2795. default:
  2796. pr_warn("%s: Unknown\n", __func__);
  2797. return -EINVAL;
  2798. }
  2799. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2800. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2801. strlen(lsm_port_text[7])))
  2802. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2803. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2804. strlen(lsm_port_text[8])))
  2805. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2806. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2807. strlen(lsm_port_text[10])))
  2808. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2809. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2810. strlen(lsm_port_text[13])))
  2811. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2812. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2813. strlen(lsm_port_text[14])))
  2814. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2815. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2816. mad_type);
  2817. return afe_port_set_mad_type(port_id, mad_type);
  2818. }
  2819. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2820. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2821. adm_override_chs_text);
  2822. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2823. {
  2824. int backend_id;
  2825. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2826. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2827. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2828. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2829. } else {
  2830. pr_err("%s: unsupported backend id: %s",
  2831. __func__, kcontrol->id.name);
  2832. return -EINVAL;
  2833. }
  2834. return backend_id;
  2835. }
  2836. static int msm_routing_adm_channel_config_get(
  2837. struct snd_kcontrol *kcontrol,
  2838. struct snd_ctl_elem_value *ucontrol)
  2839. {
  2840. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2841. if (backend_id >= 0) {
  2842. mutex_lock(&routing_lock);
  2843. ucontrol->value.integer.value[0] =
  2844. msm_bedais[backend_id].adm_override_ch;
  2845. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2846. ucontrol->value.integer.value[0], backend_id);
  2847. mutex_unlock(&routing_lock);
  2848. }
  2849. return 0;
  2850. }
  2851. static int msm_routing_adm_channel_config_put(
  2852. struct snd_kcontrol *kcontrol,
  2853. struct snd_ctl_elem_value *ucontrol)
  2854. {
  2855. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2856. if (backend_id >= 0) {
  2857. mutex_lock(&routing_lock);
  2858. msm_bedais[backend_id].adm_override_ch =
  2859. ucontrol->value.integer.value[0];
  2860. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2861. __func__, backend_id,
  2862. msm_bedais[backend_id].adm_override_ch);
  2863. mutex_unlock(&routing_lock);
  2864. }
  2865. return 0;
  2866. }
  2867. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2868. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2869. msm_routing_adm_channel_config_get,
  2870. msm_routing_adm_channel_config_put),
  2871. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2872. msm_routing_adm_channel_config_get,
  2873. msm_routing_adm_channel_config_put),
  2874. };
  2875. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2876. struct snd_ctl_elem_value *ucontrol)
  2877. {
  2878. mutex_lock(&routing_lock);
  2879. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2880. mutex_unlock(&routing_lock);
  2881. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2882. ucontrol->value.integer.value[0]);
  2883. return 0;
  2884. };
  2885. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2886. struct snd_ctl_elem_value *ucontrol)
  2887. {
  2888. struct aanc_data aanc_info;
  2889. mutex_lock(&routing_lock);
  2890. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2891. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2892. ucontrol->value.integer.value[0]);
  2893. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2894. if (ucontrol->value.integer.value[0] == 0) {
  2895. aanc_info.aanc_active = false;
  2896. aanc_info.aanc_tx_port = 0;
  2897. aanc_info.aanc_rx_port = 0;
  2898. } else {
  2899. aanc_info.aanc_active = true;
  2900. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2901. aanc_info.aanc_tx_port =
  2902. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2903. }
  2904. afe_set_aanc_info(&aanc_info);
  2905. mutex_unlock(&routing_lock);
  2906. return 0;
  2907. };
  2908. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2909. struct snd_ctl_elem_value *ucontrol)
  2910. {
  2911. int idx = 0, shift = 0;
  2912. struct soc_mixer_control *mc =
  2913. (struct soc_mixer_control *)kcontrol->private_value;
  2914. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2915. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2916. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2917. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2918. return -EINVAL;
  2919. }
  2920. if (test_bit(shift,
  2921. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2922. ucontrol->value.integer.value[0] = 1;
  2923. else
  2924. ucontrol->value.integer.value[0] = 0;
  2925. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2926. ucontrol->value.integer.value[0]);
  2927. return 0;
  2928. }
  2929. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2930. struct snd_ctl_elem_value *ucontrol)
  2931. {
  2932. int idx = 0, shift = 0;
  2933. struct soc_mixer_control *mc =
  2934. (struct soc_mixer_control *)kcontrol->private_value;
  2935. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2936. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2937. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2938. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2939. return -EINVAL;
  2940. }
  2941. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2942. __func__, mc->shift, mc->rshift,
  2943. ucontrol->value.integer.value[0], idx, shift);
  2944. if (ucontrol->value.integer.value[0]) {
  2945. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2946. msm_bedais[mc->rshift].port_id);
  2947. set_bit(shift,
  2948. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2949. } else {
  2950. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2951. msm_bedais[mc->rshift].port_id);
  2952. clear_bit(shift,
  2953. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2954. }
  2955. return 1;
  2956. }
  2957. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2958. struct snd_ctl_elem_value *ucontrol)
  2959. {
  2960. u16 fe_id = 0;
  2961. fe_id = ((struct soc_mixer_control *)
  2962. kcontrol->private_value)->shift;
  2963. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2964. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2965. return -EINVAL;
  2966. }
  2967. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2968. return 0;
  2969. }
  2970. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2971. struct snd_ctl_elem_value *ucontrol)
  2972. {
  2973. u16 fe_id = 0;
  2974. fe_id = ((struct soc_mixer_control *)
  2975. kcontrol->private_value)->shift;
  2976. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2977. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2978. return -EINVAL;
  2979. }
  2980. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2981. return 1;
  2982. }
  2983. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2984. struct snd_ctl_elem_value *ucontrol)
  2985. {
  2986. u16 fe_id = 0;
  2987. fe_id = ((struct soc_multi_mixer_control *)
  2988. kcontrol->private_value)->shift;
  2989. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2990. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2991. return -EINVAL;
  2992. }
  2993. ucontrol->value.integer.value[0] =
  2994. channel_mixer[fe_id].output_channel;
  2995. return 0;
  2996. }
  2997. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2998. struct snd_ctl_elem_value *ucontrol)
  2999. {
  3000. u16 fe_id = 0;
  3001. fe_id = ((struct soc_multi_mixer_control *)
  3002. kcontrol->private_value)->shift;
  3003. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3004. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3005. return -EINVAL;
  3006. }
  3007. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3008. fe_id,
  3009. (unsigned int)(ucontrol->value.integer.value[0]));
  3010. channel_mixer[fe_id].output_channel =
  3011. (unsigned int)(ucontrol->value.integer.value[0]);
  3012. return 1;
  3013. }
  3014. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3015. /* If new backend is added, need update this array */
  3016. static const char *const be_name[] = {
  3017. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3018. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3019. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3020. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3021. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3022. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3023. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3024. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3025. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3026. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3027. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3028. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3029. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3030. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3031. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3032. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3033. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3034. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3035. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3036. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3037. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3038. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3039. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3040. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3041. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3042. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3043. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3044. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3045. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3046. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3047. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3048. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3049. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3050. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3051. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3052. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3053. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3054. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3055. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3056. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3057. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3058. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3059. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3060. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3061. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3062. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3063. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3064. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3065. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3066. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3067. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3068. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3069. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX"
  3070. };
  3071. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3072. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3073. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3074. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3075. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3076. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3077. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3078. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3079. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3080. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3081. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3082. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3083. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3084. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3085. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3086. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3087. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3088. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3089. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3090. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3091. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3092. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3093. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3094. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3095. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3096. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3097. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3098. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3099. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3100. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3101. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3102. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3103. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3104. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3105. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3106. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3107. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3108. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3109. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3110. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3111. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3112. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3113. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3114. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3115. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3116. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3117. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3118. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3119. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3120. unsigned int channels,
  3121. unsigned int items, const char *const names[])
  3122. {
  3123. if (uinfo->value.enumerated.item >= items)
  3124. uinfo->value.enumerated.item = items - 1;
  3125. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3126. sizeof(uinfo->value.enumerated.name),
  3127. "ALSA: too long item name '%s'\n",
  3128. names[uinfo->value.enumerated.item]);
  3129. strlcpy(uinfo->value.enumerated.name,
  3130. names[uinfo->value.enumerated.item],
  3131. sizeof(uinfo->value.enumerated.name));
  3132. return 0;
  3133. }
  3134. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3135. struct snd_ctl_elem_info *uinfo)
  3136. {
  3137. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3138. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3139. uinfo->count = 1;
  3140. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3141. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3142. return 0;
  3143. }
  3144. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3145. struct snd_ctl_elem_value *ucontrol)
  3146. {
  3147. u16 fe_id = 0;
  3148. fe_id = ((struct soc_enum *)
  3149. kcontrol->private_value)->shift_l;
  3150. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3151. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3152. return -EINVAL;
  3153. }
  3154. pr_debug("%s: FE %d %s\n", __func__,
  3155. fe_id,
  3156. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3157. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3158. return 0;
  3159. }
  3160. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3161. struct snd_ctl_elem_value *ucontrol)
  3162. {
  3163. u16 fe_id = 0;
  3164. fe_id = ((struct soc_enum *)
  3165. kcontrol->private_value)->shift_l;
  3166. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3167. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3168. return -EINVAL;
  3169. }
  3170. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3171. pr_debug("%s: %s FE %d\n", __func__,
  3172. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3173. fe_id);
  3174. return 0;
  3175. }
  3176. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3177. struct snd_ctl_elem_info *uinfo)
  3178. {
  3179. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3180. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3181. uinfo->count = 1;
  3182. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3183. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3184. return 0;
  3185. }
  3186. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3187. struct snd_ctl_elem_value *ucontrol)
  3188. {
  3189. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3190. u16 fe_id = 0, in_ch = 0;
  3191. fe_id = e->shift_l;
  3192. in_ch = e->shift_r;
  3193. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3194. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3195. return -EINVAL;
  3196. }
  3197. if (in_ch >= ADM_MAX_CHANNELS) {
  3198. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3199. return -EINVAL;
  3200. }
  3201. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3202. return 1;
  3203. }
  3204. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3205. struct snd_ctl_elem_value *ucontrol)
  3206. {
  3207. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3208. u16 fe_id = 0, in_ch = 0;
  3209. fe_id = e->shift_l;
  3210. in_ch = e->shift_r;
  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. if (in_ch >= ADM_MAX_CHANNELS) {
  3216. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3217. return -EINVAL;
  3218. }
  3219. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3220. return 1;
  3221. }
  3222. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3223. struct snd_ctl_elem_info *uinfo)
  3224. {
  3225. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3226. uinfo->count = ADM_MAX_CHANNELS;
  3227. uinfo->value.integer.min = 0;
  3228. uinfo->value.integer.max = WEIGHT_0_DB;
  3229. return 0;
  3230. }
  3231. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3232. struct snd_ctl_elem_value *ucontrol)
  3233. {
  3234. u16 fe_id = 0, out_ch = 0;
  3235. int i, weight;
  3236. fe_id = ((struct soc_multi_mixer_control *)
  3237. kcontrol->private_value)->shift;
  3238. out_ch = ((struct soc_multi_mixer_control *)
  3239. kcontrol->private_value)->rshift;
  3240. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3241. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3242. return -EINVAL;
  3243. }
  3244. if (out_ch >= ADM_MAX_CHANNELS) {
  3245. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3246. return -EINVAL;
  3247. }
  3248. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3249. __func__, fe_id,
  3250. ucontrol->value.integer.value[0],
  3251. ucontrol->value.integer.value[1],
  3252. ucontrol->value.integer.value[2],
  3253. ucontrol->value.integer.value[3],
  3254. ucontrol->value.integer.value[4],
  3255. ucontrol->value.integer.value[5],
  3256. ucontrol->value.integer.value[6],
  3257. ucontrol->value.integer.value[7]);
  3258. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3259. weight = ucontrol->value.integer.value[i];
  3260. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3261. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3262. __func__, fe_id, out_ch, i,
  3263. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3264. }
  3265. return 0;
  3266. }
  3267. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3268. struct snd_ctl_elem_value *ucontrol)
  3269. {
  3270. u16 fe_id = 0, out_ch = 0;
  3271. int i;
  3272. fe_id = ((struct soc_multi_mixer_control *)
  3273. kcontrol->private_value)->shift;
  3274. out_ch = ((struct soc_multi_mixer_control *)
  3275. kcontrol->private_value)->rshift;
  3276. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3277. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3278. return -EINVAL;
  3279. }
  3280. if (out_ch >= ADM_MAX_CHANNELS) {
  3281. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3282. return -EINVAL;
  3283. }
  3284. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3285. ucontrol->value.integer.value[i] =
  3286. channel_mixer[fe_id].channel_weight[out_ch][i];
  3287. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3288. __func__, fe_id,
  3289. ucontrol->value.integer.value[0],
  3290. ucontrol->value.integer.value[1],
  3291. ucontrol->value.integer.value[2],
  3292. ucontrol->value.integer.value[3],
  3293. ucontrol->value.integer.value[4],
  3294. ucontrol->value.integer.value[5],
  3295. ucontrol->value.integer.value[6],
  3296. ucontrol->value.integer.value[7]);
  3297. return 0;
  3298. }
  3299. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3300. struct snd_ctl_elem_info *uinfo)
  3301. {
  3302. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3303. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3304. /* Valid channel map value ranges from 1 to 64 */
  3305. uinfo->value.integer.min = 0;
  3306. uinfo->value.integer.max = 64;
  3307. return 0;
  3308. }
  3309. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3310. struct snd_ctl_elem_value *ucontrol)
  3311. {
  3312. u16 fe_id = 0;
  3313. int i, ch_map;
  3314. fe_id = ((struct soc_multi_mixer_control *)
  3315. kcontrol->private_value)->shift;
  3316. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3317. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3318. return -EINVAL;
  3319. }
  3320. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3321. ch_map = ucontrol->value.integer.value[i];
  3322. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3323. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3324. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3325. }
  3326. /* Make override_out_ch_map false if ch map is reset */
  3327. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3328. channel_mixer[fe_id].override_out_ch_map = false;
  3329. else
  3330. channel_mixer[fe_id].override_out_ch_map = true;
  3331. return 0;
  3332. }
  3333. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3334. struct snd_ctl_elem_value *ucontrol)
  3335. {
  3336. u16 fe_id = 0;
  3337. int i;
  3338. fe_id = ((struct soc_multi_mixer_control *)
  3339. kcontrol->private_value)->shift;
  3340. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3341. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3342. return -EINVAL;
  3343. }
  3344. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3345. ucontrol->value.integer.value[i] =
  3346. channel_mixer[fe_id].out_ch_map[i];
  3347. return 0;
  3348. }
  3349. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3350. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3351. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3352. msm_pcm_get_channel_rule_index,
  3353. msm_pcm_put_channel_rule_index),
  3354. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3355. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3356. msm_pcm_get_channel_rule_index,
  3357. msm_pcm_put_channel_rule_index),
  3358. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3359. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3360. msm_pcm_get_channel_rule_index,
  3361. msm_pcm_put_channel_rule_index),
  3362. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3363. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3364. msm_pcm_get_channel_rule_index,
  3365. msm_pcm_put_channel_rule_index),
  3366. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3367. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3368. msm_pcm_get_channel_rule_index,
  3369. msm_pcm_put_channel_rule_index),
  3370. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3371. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3372. msm_pcm_get_channel_rule_index,
  3373. msm_pcm_put_channel_rule_index),
  3374. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3375. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3376. msm_pcm_get_channel_rule_index,
  3377. msm_pcm_put_channel_rule_index),
  3378. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3379. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3380. msm_pcm_get_channel_rule_index,
  3381. msm_pcm_put_channel_rule_index),
  3382. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3383. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3384. msm_pcm_get_channel_rule_index,
  3385. msm_pcm_put_channel_rule_index),
  3386. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3387. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3388. msm_pcm_get_channel_rule_index,
  3389. msm_pcm_put_channel_rule_index),
  3390. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3391. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3392. msm_pcm_get_out_chs,
  3393. msm_pcm_put_out_chs),
  3394. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3395. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3396. msm_pcm_get_out_chs,
  3397. msm_pcm_put_out_chs),
  3398. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3399. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3400. msm_pcm_get_out_chs,
  3401. msm_pcm_put_out_chs),
  3402. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3403. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3404. msm_pcm_get_out_chs,
  3405. msm_pcm_put_out_chs),
  3406. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3407. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3408. msm_pcm_get_out_chs,
  3409. msm_pcm_put_out_chs),
  3410. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3411. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3412. msm_pcm_get_out_chs,
  3413. msm_pcm_put_out_chs),
  3414. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3415. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3416. msm_pcm_get_out_chs,
  3417. msm_pcm_put_out_chs),
  3418. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3419. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3420. msm_pcm_get_out_chs,
  3421. msm_pcm_put_out_chs),
  3422. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3423. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3424. msm_pcm_get_out_chs,
  3425. msm_pcm_put_out_chs),
  3426. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3427. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3428. msm_pcm_get_out_chs,
  3429. msm_pcm_put_out_chs),
  3430. {
  3431. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3432. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3433. .name = "MultiMedia1 Channel Mixer",
  3434. .info = msm_pcm_channel_mixer_info,
  3435. .get = msm_pcm_channel_mixer_get,
  3436. .put = msm_pcm_channel_mixer_put,
  3437. .private_value = (unsigned long)&(mm1_channel_mux)
  3438. },
  3439. {
  3440. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3441. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3442. .name = "MultiMedia2 Channel Mixer",
  3443. .info = msm_pcm_channel_mixer_info,
  3444. .get = msm_pcm_channel_mixer_get,
  3445. .put = msm_pcm_channel_mixer_put,
  3446. .private_value = (unsigned long)&(mm2_channel_mux)
  3447. },
  3448. {
  3449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3451. .name = "MultiMedia3 Channel Mixer",
  3452. .info = msm_pcm_channel_mixer_info,
  3453. .get = msm_pcm_channel_mixer_get,
  3454. .put = msm_pcm_channel_mixer_put,
  3455. .private_value = (unsigned long)&(mm3_channel_mux)
  3456. },
  3457. {
  3458. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3459. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3460. .name = "MultiMedia4 Channel Mixer",
  3461. .info = msm_pcm_channel_mixer_info,
  3462. .get = msm_pcm_channel_mixer_get,
  3463. .put = msm_pcm_channel_mixer_put,
  3464. .private_value = (unsigned long)&(mm4_channel_mux)
  3465. },
  3466. {
  3467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3468. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3469. .name = "MultiMedia18 Channel Mixer",
  3470. .info = msm_pcm_channel_mixer_info,
  3471. .get = msm_pcm_channel_mixer_get,
  3472. .put = msm_pcm_channel_mixer_put,
  3473. .private_value = (unsigned long)&(mm18_channel_mux)
  3474. },
  3475. {
  3476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3477. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3478. .name = "MultiMedia19 Channel Mixer",
  3479. .info = msm_pcm_channel_mixer_info,
  3480. .get = msm_pcm_channel_mixer_get,
  3481. .put = msm_pcm_channel_mixer_put,
  3482. .private_value = (unsigned long)&(mm19_channel_mux)
  3483. },
  3484. {
  3485. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3486. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3487. .name = "MultiMedia28 Channel Mixer",
  3488. .info = msm_pcm_channel_mixer_info,
  3489. .get = msm_pcm_channel_mixer_get,
  3490. .put = msm_pcm_channel_mixer_put,
  3491. .private_value = (unsigned long)&(mm28_channel_mux)
  3492. },
  3493. {
  3494. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3495. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3496. .name = "MultiMedia29 Channel Mixer",
  3497. .info = msm_pcm_channel_mixer_info,
  3498. .get = msm_pcm_channel_mixer_get,
  3499. .put = msm_pcm_channel_mixer_put,
  3500. .private_value = (unsigned long)&(mm29_channel_mux)
  3501. },
  3502. {
  3503. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3504. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3505. .name = "MultiMedia1 Output Channel1",
  3506. .info = msm_pcm_channel_weight_info,
  3507. .get = msm_pcm_channel_weight_get,
  3508. .put = msm_pcm_channel_weight_put,
  3509. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3510. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3511. },
  3512. {
  3513. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3514. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3515. .name = "MultiMedia1 Output Channel2",
  3516. .info = msm_pcm_channel_weight_info,
  3517. .get = msm_pcm_channel_weight_get,
  3518. .put = msm_pcm_channel_weight_put,
  3519. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3520. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3521. },
  3522. {
  3523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3524. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3525. .name = "MultiMedia1 Output Channel3",
  3526. .info = msm_pcm_channel_weight_info,
  3527. .get = msm_pcm_channel_weight_get,
  3528. .put = msm_pcm_channel_weight_put,
  3529. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3530. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3531. },
  3532. {
  3533. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3534. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3535. .name = "MultiMedia1 Output Channel4",
  3536. .info = msm_pcm_channel_weight_info,
  3537. .get = msm_pcm_channel_weight_get,
  3538. .put = msm_pcm_channel_weight_put,
  3539. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3540. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3541. },
  3542. {
  3543. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3544. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3545. .name = "MultiMedia1 Output Channel5",
  3546. .info = msm_pcm_channel_weight_info,
  3547. .get = msm_pcm_channel_weight_get,
  3548. .put = msm_pcm_channel_weight_put,
  3549. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3550. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3551. },
  3552. {
  3553. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3554. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3555. .name = "MultiMedia1 Output Channel6",
  3556. .info = msm_pcm_channel_weight_info,
  3557. .get = msm_pcm_channel_weight_get,
  3558. .put = msm_pcm_channel_weight_put,
  3559. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3560. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3561. },
  3562. {
  3563. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3564. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3565. .name = "MultiMedia1 Output Channel7",
  3566. .info = msm_pcm_channel_weight_info,
  3567. .get = msm_pcm_channel_weight_get,
  3568. .put = msm_pcm_channel_weight_put,
  3569. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3570. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3571. },
  3572. {
  3573. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3574. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3575. .name = "MultiMedia1 Output Channel8",
  3576. .info = msm_pcm_channel_weight_info,
  3577. .get = msm_pcm_channel_weight_get,
  3578. .put = msm_pcm_channel_weight_put,
  3579. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3580. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3581. },
  3582. {
  3583. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3584. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3585. .name = "MultiMedia1 Output Channel9",
  3586. .info = msm_pcm_channel_weight_info,
  3587. .get = msm_pcm_channel_weight_get,
  3588. .put = msm_pcm_channel_weight_put,
  3589. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3590. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3591. },
  3592. {
  3593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3594. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3595. .name = "MultiMedia1 Output Channel10",
  3596. .info = msm_pcm_channel_weight_info,
  3597. .get = msm_pcm_channel_weight_get,
  3598. .put = msm_pcm_channel_weight_put,
  3599. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3600. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3601. },
  3602. {
  3603. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3604. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3605. .name = "MultiMedia1 Output Channel11",
  3606. .info = msm_pcm_channel_weight_info,
  3607. .get = msm_pcm_channel_weight_get,
  3608. .put = msm_pcm_channel_weight_put,
  3609. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3610. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3611. },
  3612. {
  3613. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3614. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3615. .name = "MultiMedia1 Output Channel12",
  3616. .info = msm_pcm_channel_weight_info,
  3617. .get = msm_pcm_channel_weight_get,
  3618. .put = msm_pcm_channel_weight_put,
  3619. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3620. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3621. },
  3622. {
  3623. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3624. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3625. .name = "MultiMedia1 Output Channel13",
  3626. .info = msm_pcm_channel_weight_info,
  3627. .get = msm_pcm_channel_weight_get,
  3628. .put = msm_pcm_channel_weight_put,
  3629. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3630. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3631. },
  3632. {
  3633. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3634. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3635. .name = "MultiMedia1 Output Channel14",
  3636. .info = msm_pcm_channel_weight_info,
  3637. .get = msm_pcm_channel_weight_get,
  3638. .put = msm_pcm_channel_weight_put,
  3639. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3640. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3641. },
  3642. {
  3643. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3644. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3645. .name = "MultiMedia2 Output Channel1",
  3646. .info = msm_pcm_channel_weight_info,
  3647. .get = msm_pcm_channel_weight_get,
  3648. .put = msm_pcm_channel_weight_put,
  3649. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3650. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3651. },
  3652. {
  3653. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3654. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3655. .name = "MultiMedia2 Output Channel2",
  3656. .info = msm_pcm_channel_weight_info,
  3657. .get = msm_pcm_channel_weight_get,
  3658. .put = msm_pcm_channel_weight_put,
  3659. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3660. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3661. },
  3662. {
  3663. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3664. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3665. .name = "MultiMedia2 Output Channel3",
  3666. .info = msm_pcm_channel_weight_info,
  3667. .get = msm_pcm_channel_weight_get,
  3668. .put = msm_pcm_channel_weight_put,
  3669. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3670. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3671. },
  3672. {
  3673. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3674. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3675. .name = "MultiMedia3 Output Channel1",
  3676. .info = msm_pcm_channel_weight_info,
  3677. .get = msm_pcm_channel_weight_get,
  3678. .put = msm_pcm_channel_weight_put,
  3679. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3680. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3681. },
  3682. {
  3683. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3684. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3685. .name = "MultiMedia3 Output Channel2",
  3686. .info = msm_pcm_channel_weight_info,
  3687. .get = msm_pcm_channel_weight_get,
  3688. .put = msm_pcm_channel_weight_put,
  3689. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3690. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3691. },
  3692. {
  3693. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3694. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3695. .name = "MultiMedia18 Output Channel1",
  3696. .info = msm_pcm_channel_weight_info,
  3697. .get = msm_pcm_channel_weight_get,
  3698. .put = msm_pcm_channel_weight_put,
  3699. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3700. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3701. },
  3702. {
  3703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3704. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3705. .name = "MultiMedia18 Output Channel2",
  3706. .info = msm_pcm_channel_weight_info,
  3707. .get = msm_pcm_channel_weight_get,
  3708. .put = msm_pcm_channel_weight_put,
  3709. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3710. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3711. },
  3712. {
  3713. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3714. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3715. .name = "MultiMedia18 Output Channel3",
  3716. .info = msm_pcm_channel_weight_info,
  3717. .get = msm_pcm_channel_weight_get,
  3718. .put = msm_pcm_channel_weight_put,
  3719. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3720. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3721. },
  3722. {
  3723. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3725. .name = "MultiMedia18 Output Channel4",
  3726. .info = msm_pcm_channel_weight_info,
  3727. .get = msm_pcm_channel_weight_get,
  3728. .put = msm_pcm_channel_weight_put,
  3729. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3730. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3731. },
  3732. {
  3733. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3734. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3735. .name = "MultiMedia18 Output Channel5",
  3736. .info = msm_pcm_channel_weight_info,
  3737. .get = msm_pcm_channel_weight_get,
  3738. .put = msm_pcm_channel_weight_put,
  3739. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3740. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3741. },
  3742. {
  3743. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3744. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3745. .name = "MultiMedia18 Output Channel6",
  3746. .info = msm_pcm_channel_weight_info,
  3747. .get = msm_pcm_channel_weight_get,
  3748. .put = msm_pcm_channel_weight_put,
  3749. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3750. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3751. },
  3752. {
  3753. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3754. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3755. .name = "MultiMedia18 Output Channel7",
  3756. .info = msm_pcm_channel_weight_info,
  3757. .get = msm_pcm_channel_weight_get,
  3758. .put = msm_pcm_channel_weight_put,
  3759. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3760. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3761. },
  3762. {
  3763. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3764. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3765. .name = "MultiMedia18 Output Channel8",
  3766. .info = msm_pcm_channel_weight_info,
  3767. .get = msm_pcm_channel_weight_get,
  3768. .put = msm_pcm_channel_weight_put,
  3769. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3770. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3771. },
  3772. {
  3773. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3774. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3775. .name = "MultiMedia18 Output Channel9",
  3776. .info = msm_pcm_channel_weight_info,
  3777. .get = msm_pcm_channel_weight_get,
  3778. .put = msm_pcm_channel_weight_put,
  3779. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3780. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3781. },
  3782. {
  3783. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3784. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3785. .name = "MultiMedia18 Output Channel10",
  3786. .info = msm_pcm_channel_weight_info,
  3787. .get = msm_pcm_channel_weight_get,
  3788. .put = msm_pcm_channel_weight_put,
  3789. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3790. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3791. },
  3792. {
  3793. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3794. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3795. .name = "MultiMedia18 Output Channel11",
  3796. .info = msm_pcm_channel_weight_info,
  3797. .get = msm_pcm_channel_weight_get,
  3798. .put = msm_pcm_channel_weight_put,
  3799. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3800. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3801. },
  3802. {
  3803. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3804. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3805. .name = "MultiMedia18 Output Channel12",
  3806. .info = msm_pcm_channel_weight_info,
  3807. .get = msm_pcm_channel_weight_get,
  3808. .put = msm_pcm_channel_weight_put,
  3809. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3810. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3811. },
  3812. {
  3813. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3814. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3815. .name = "MultiMedia18 Output Channel13",
  3816. .info = msm_pcm_channel_weight_info,
  3817. .get = msm_pcm_channel_weight_get,
  3818. .put = msm_pcm_channel_weight_put,
  3819. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3820. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3821. },
  3822. {
  3823. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3824. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3825. .name = "MultiMedia18 Output Channel14",
  3826. .info = msm_pcm_channel_weight_info,
  3827. .get = msm_pcm_channel_weight_get,
  3828. .put = msm_pcm_channel_weight_put,
  3829. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3830. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3831. },
  3832. {
  3833. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3834. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3835. .name = "MultiMedia19 Output Channel1",
  3836. .info = msm_pcm_channel_weight_info,
  3837. .get = msm_pcm_channel_weight_get,
  3838. .put = msm_pcm_channel_weight_put,
  3839. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3840. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3841. },
  3842. {
  3843. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3844. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3845. .name = "MultiMedia19 Output Channel2",
  3846. .info = msm_pcm_channel_weight_info,
  3847. .get = msm_pcm_channel_weight_get,
  3848. .put = msm_pcm_channel_weight_put,
  3849. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3850. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3851. },
  3852. {
  3853. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3854. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3855. .name = "MultiMedia19 Output Channel3",
  3856. .info = msm_pcm_channel_weight_info,
  3857. .get = msm_pcm_channel_weight_get,
  3858. .put = msm_pcm_channel_weight_put,
  3859. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3860. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3861. },
  3862. {
  3863. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3864. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3865. .name = "MultiMedia19 Output Channel4",
  3866. .info = msm_pcm_channel_weight_info,
  3867. .get = msm_pcm_channel_weight_get,
  3868. .put = msm_pcm_channel_weight_put,
  3869. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3870. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3871. },
  3872. {
  3873. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3874. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3875. .name = "MultiMedia19 Output Channel5",
  3876. .info = msm_pcm_channel_weight_info,
  3877. .get = msm_pcm_channel_weight_get,
  3878. .put = msm_pcm_channel_weight_put,
  3879. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3880. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3881. },
  3882. {
  3883. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3884. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3885. .name = "MultiMedia19 Output Channel6",
  3886. .info = msm_pcm_channel_weight_info,
  3887. .get = msm_pcm_channel_weight_get,
  3888. .put = msm_pcm_channel_weight_put,
  3889. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3890. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3891. },
  3892. {
  3893. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3894. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3895. .name = "MultiMedia19 Output Channel7",
  3896. .info = msm_pcm_channel_weight_info,
  3897. .get = msm_pcm_channel_weight_get,
  3898. .put = msm_pcm_channel_weight_put,
  3899. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3900. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3901. },
  3902. {
  3903. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3904. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3905. .name = "MultiMedia19 Output Channel8",
  3906. .info = msm_pcm_channel_weight_info,
  3907. .get = msm_pcm_channel_weight_get,
  3908. .put = msm_pcm_channel_weight_put,
  3909. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3910. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3911. },
  3912. {
  3913. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3914. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3915. .name = "MultiMedia19 Output Channel9",
  3916. .info = msm_pcm_channel_weight_info,
  3917. .get = msm_pcm_channel_weight_get,
  3918. .put = msm_pcm_channel_weight_put,
  3919. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3920. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3921. },
  3922. {
  3923. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3924. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3925. .name = "MultiMedia19 Output Channel10",
  3926. .info = msm_pcm_channel_weight_info,
  3927. .get = msm_pcm_channel_weight_get,
  3928. .put = msm_pcm_channel_weight_put,
  3929. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3930. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  3931. },
  3932. {
  3933. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3934. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3935. .name = "MultiMedia19 Output Channel11",
  3936. .info = msm_pcm_channel_weight_info,
  3937. .get = msm_pcm_channel_weight_get,
  3938. .put = msm_pcm_channel_weight_put,
  3939. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3940. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  3941. },
  3942. {
  3943. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3944. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3945. .name = "MultiMedia19 Output Channel12",
  3946. .info = msm_pcm_channel_weight_info,
  3947. .get = msm_pcm_channel_weight_get,
  3948. .put = msm_pcm_channel_weight_put,
  3949. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3950. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  3951. },
  3952. {
  3953. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3954. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3955. .name = "MultiMedia19 Output Channel13",
  3956. .info = msm_pcm_channel_weight_info,
  3957. .get = msm_pcm_channel_weight_get,
  3958. .put = msm_pcm_channel_weight_put,
  3959. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3960. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  3961. },
  3962. {
  3963. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3964. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3965. .name = "MultiMedia19 Output Channel14",
  3966. .info = msm_pcm_channel_weight_info,
  3967. .get = msm_pcm_channel_weight_get,
  3968. .put = msm_pcm_channel_weight_put,
  3969. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3970. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  3971. },
  3972. {
  3973. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3974. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3975. .name = "MultiMedia28 Output Channel1",
  3976. .info = msm_pcm_channel_weight_info,
  3977. .get = msm_pcm_channel_weight_get,
  3978. .put = msm_pcm_channel_weight_put,
  3979. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3980. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  3981. },
  3982. {
  3983. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3984. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3985. .name = "MultiMedia28 Output Channel2",
  3986. .info = msm_pcm_channel_weight_info,
  3987. .get = msm_pcm_channel_weight_get,
  3988. .put = msm_pcm_channel_weight_put,
  3989. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3990. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  3991. },
  3992. {
  3993. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3994. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3995. .name = "MultiMedia28 Output Channel3",
  3996. .info = msm_pcm_channel_weight_info,
  3997. .get = msm_pcm_channel_weight_get,
  3998. .put = msm_pcm_channel_weight_put,
  3999. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4000. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4001. },
  4002. {
  4003. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4004. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4005. .name = "MultiMedia28 Output Channel4",
  4006. .info = msm_pcm_channel_weight_info,
  4007. .get = msm_pcm_channel_weight_get,
  4008. .put = msm_pcm_channel_weight_put,
  4009. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4010. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4011. },
  4012. {
  4013. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4014. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4015. .name = "MultiMedia28 Output Channel5",
  4016. .info = msm_pcm_channel_weight_info,
  4017. .get = msm_pcm_channel_weight_get,
  4018. .put = msm_pcm_channel_weight_put,
  4019. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4020. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4021. },
  4022. {
  4023. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4024. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4025. .name = "MultiMedia28 Output Channel6",
  4026. .info = msm_pcm_channel_weight_info,
  4027. .get = msm_pcm_channel_weight_get,
  4028. .put = msm_pcm_channel_weight_put,
  4029. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4030. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4031. },
  4032. {
  4033. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4034. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4035. .name = "MultiMedia28 Output Channel7",
  4036. .info = msm_pcm_channel_weight_info,
  4037. .get = msm_pcm_channel_weight_get,
  4038. .put = msm_pcm_channel_weight_put,
  4039. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4040. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4041. },
  4042. {
  4043. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4044. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4045. .name = "MultiMedia28 Output Channel8",
  4046. .info = msm_pcm_channel_weight_info,
  4047. .get = msm_pcm_channel_weight_get,
  4048. .put = msm_pcm_channel_weight_put,
  4049. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4050. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4051. },
  4052. {
  4053. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4054. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4055. .name = "MultiMedia28 Output Channel9",
  4056. .info = msm_pcm_channel_weight_info,
  4057. .get = msm_pcm_channel_weight_get,
  4058. .put = msm_pcm_channel_weight_put,
  4059. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4060. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4061. },
  4062. {
  4063. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4064. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4065. .name = "MultiMedia28 Output Channel10",
  4066. .info = msm_pcm_channel_weight_info,
  4067. .get = msm_pcm_channel_weight_get,
  4068. .put = msm_pcm_channel_weight_put,
  4069. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4070. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4071. },
  4072. {
  4073. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4074. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4075. .name = "MultiMedia28 Output Channel11",
  4076. .info = msm_pcm_channel_weight_info,
  4077. .get = msm_pcm_channel_weight_get,
  4078. .put = msm_pcm_channel_weight_put,
  4079. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4080. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4081. },
  4082. {
  4083. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4084. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4085. .name = "MultiMedia28 Output Channel12",
  4086. .info = msm_pcm_channel_weight_info,
  4087. .get = msm_pcm_channel_weight_get,
  4088. .put = msm_pcm_channel_weight_put,
  4089. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4090. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4091. },
  4092. {
  4093. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4094. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4095. .name = "MultiMedia28 Output Channel13",
  4096. .info = msm_pcm_channel_weight_info,
  4097. .get = msm_pcm_channel_weight_get,
  4098. .put = msm_pcm_channel_weight_put,
  4099. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4100. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4101. },
  4102. {
  4103. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4104. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4105. .name = "MultiMedia28 Output Channel14",
  4106. .info = msm_pcm_channel_weight_info,
  4107. .get = msm_pcm_channel_weight_get,
  4108. .put = msm_pcm_channel_weight_put,
  4109. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4110. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4111. },
  4112. {
  4113. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4114. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4115. .name = "MultiMedia29 Output Channel1",
  4116. .info = msm_pcm_channel_weight_info,
  4117. .get = msm_pcm_channel_weight_get,
  4118. .put = msm_pcm_channel_weight_put,
  4119. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4120. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4121. },
  4122. {
  4123. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4124. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4125. .name = "MultiMedia29 Output Channel2",
  4126. .info = msm_pcm_channel_weight_info,
  4127. .get = msm_pcm_channel_weight_get,
  4128. .put = msm_pcm_channel_weight_put,
  4129. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4130. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4131. },
  4132. {
  4133. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4134. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4135. .name = "MultiMedia29 Output Channel3",
  4136. .info = msm_pcm_channel_weight_info,
  4137. .get = msm_pcm_channel_weight_get,
  4138. .put = msm_pcm_channel_weight_put,
  4139. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4140. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4141. },
  4142. {
  4143. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4144. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4145. .name = "MultiMedia29 Output Channel4",
  4146. .info = msm_pcm_channel_weight_info,
  4147. .get = msm_pcm_channel_weight_get,
  4148. .put = msm_pcm_channel_weight_put,
  4149. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4150. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4151. },
  4152. {
  4153. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4154. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4155. .name = "MultiMedia29 Output Channel5",
  4156. .info = msm_pcm_channel_weight_info,
  4157. .get = msm_pcm_channel_weight_get,
  4158. .put = msm_pcm_channel_weight_put,
  4159. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4160. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4161. },
  4162. {
  4163. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4164. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4165. .name = "MultiMedia29 Output Channel6",
  4166. .info = msm_pcm_channel_weight_info,
  4167. .get = msm_pcm_channel_weight_get,
  4168. .put = msm_pcm_channel_weight_put,
  4169. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4170. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4171. },
  4172. {
  4173. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4174. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4175. .name = "MultiMedia29 Output Channel7",
  4176. .info = msm_pcm_channel_weight_info,
  4177. .get = msm_pcm_channel_weight_get,
  4178. .put = msm_pcm_channel_weight_put,
  4179. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4180. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4181. },
  4182. {
  4183. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4184. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4185. .name = "MultiMedia29 Output Channel8",
  4186. .info = msm_pcm_channel_weight_info,
  4187. .get = msm_pcm_channel_weight_get,
  4188. .put = msm_pcm_channel_weight_put,
  4189. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4190. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4191. },
  4192. {
  4193. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4194. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4195. .name = "MultiMedia29 Output Channel9",
  4196. .info = msm_pcm_channel_weight_info,
  4197. .get = msm_pcm_channel_weight_get,
  4198. .put = msm_pcm_channel_weight_put,
  4199. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4200. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4201. },
  4202. {
  4203. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4204. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4205. .name = "MultiMedia29 Output Channel10",
  4206. .info = msm_pcm_channel_weight_info,
  4207. .get = msm_pcm_channel_weight_get,
  4208. .put = msm_pcm_channel_weight_put,
  4209. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4210. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4211. },
  4212. {
  4213. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4214. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4215. .name = "MultiMedia29 Output Channel11",
  4216. .info = msm_pcm_channel_weight_info,
  4217. .get = msm_pcm_channel_weight_get,
  4218. .put = msm_pcm_channel_weight_put,
  4219. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4220. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4221. },
  4222. {
  4223. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4224. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4225. .name = "MultiMedia29 Output Channel12",
  4226. .info = msm_pcm_channel_weight_info,
  4227. .get = msm_pcm_channel_weight_get,
  4228. .put = msm_pcm_channel_weight_put,
  4229. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4230. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4231. },
  4232. {
  4233. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4234. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4235. .name = "MultiMedia29 Output Channel13",
  4236. .info = msm_pcm_channel_weight_info,
  4237. .get = msm_pcm_channel_weight_get,
  4238. .put = msm_pcm_channel_weight_put,
  4239. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4240. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4241. },
  4242. {
  4243. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4244. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4245. .name = "MultiMedia29 Output Channel14",
  4246. .info = msm_pcm_channel_weight_info,
  4247. .get = msm_pcm_channel_weight_get,
  4248. .put = msm_pcm_channel_weight_put,
  4249. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4250. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4251. },
  4252. {
  4253. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4254. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4255. .name = "MultiMedia1 Channel1",
  4256. .info = msm_pcm_channel_input_be_info,
  4257. .get = msm_pcm_channel_input_be_get,
  4258. .put = msm_pcm_channel_input_be_put,
  4259. .private_value = (unsigned long)&(mm1_ch1_enum)
  4260. },
  4261. {
  4262. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4263. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4264. .name = "MultiMedia1 Channel2",
  4265. .info = msm_pcm_channel_input_be_info,
  4266. .get = msm_pcm_channel_input_be_get,
  4267. .put = msm_pcm_channel_input_be_put,
  4268. .private_value = (unsigned long)&(mm1_ch2_enum)
  4269. },
  4270. {
  4271. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4272. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4273. .name = "MultiMedia1 Channel3",
  4274. .info = msm_pcm_channel_input_be_info,
  4275. .get = msm_pcm_channel_input_be_get,
  4276. .put = msm_pcm_channel_input_be_put,
  4277. .private_value = (unsigned long)&(mm1_ch3_enum)
  4278. },
  4279. {
  4280. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4281. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4282. .name = "MultiMedia1 Channel4",
  4283. .info = msm_pcm_channel_input_be_info,
  4284. .get = msm_pcm_channel_input_be_get,
  4285. .put = msm_pcm_channel_input_be_put,
  4286. .private_value = (unsigned long)&(mm1_ch4_enum)
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia1 Channel5",
  4292. .info = msm_pcm_channel_input_be_info,
  4293. .get = msm_pcm_channel_input_be_get,
  4294. .put = msm_pcm_channel_input_be_put,
  4295. .private_value = (unsigned long)&(mm1_ch5_enum)
  4296. },
  4297. {
  4298. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4299. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4300. .name = "MultiMedia1 Channel6",
  4301. .info = msm_pcm_channel_input_be_info,
  4302. .get = msm_pcm_channel_input_be_get,
  4303. .put = msm_pcm_channel_input_be_put,
  4304. .private_value = (unsigned long)&(mm1_ch6_enum)
  4305. },
  4306. {
  4307. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4308. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4309. .name = "MultiMedia1 Channel7",
  4310. .info = msm_pcm_channel_input_be_info,
  4311. .get = msm_pcm_channel_input_be_get,
  4312. .put = msm_pcm_channel_input_be_put,
  4313. .private_value = (unsigned long)&(mm1_ch7_enum)
  4314. },
  4315. {
  4316. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4317. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4318. .name = "MultiMedia1 Channel8",
  4319. .info = msm_pcm_channel_input_be_info,
  4320. .get = msm_pcm_channel_input_be_get,
  4321. .put = msm_pcm_channel_input_be_put,
  4322. .private_value = (unsigned long)&(mm1_ch8_enum)
  4323. },
  4324. {
  4325. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4326. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4327. .name = "MultiMedia18 Channel1",
  4328. .info = msm_pcm_channel_input_be_info,
  4329. .get = msm_pcm_channel_input_be_get,
  4330. .put = msm_pcm_channel_input_be_put,
  4331. .private_value = (unsigned long)&(mm18_ch1_enum)
  4332. },
  4333. {
  4334. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4335. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4336. .name = "MultiMedia18 Channel2",
  4337. .info = msm_pcm_channel_input_be_info,
  4338. .get = msm_pcm_channel_input_be_get,
  4339. .put = msm_pcm_channel_input_be_put,
  4340. .private_value = (unsigned long)&(mm18_ch2_enum)
  4341. },
  4342. {
  4343. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4344. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4345. .name = "MultiMedia19 Channel1",
  4346. .info = msm_pcm_channel_input_be_info,
  4347. .get = msm_pcm_channel_input_be_get,
  4348. .put = msm_pcm_channel_input_be_put,
  4349. .private_value = (unsigned long)&(mm19_ch1_enum)
  4350. },
  4351. {
  4352. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4353. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4354. .name = "MultiMedia19 Channel2",
  4355. .info = msm_pcm_channel_input_be_info,
  4356. .get = msm_pcm_channel_input_be_get,
  4357. .put = msm_pcm_channel_input_be_put,
  4358. .private_value = (unsigned long)&(mm19_ch2_enum)
  4359. },
  4360. {
  4361. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4362. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4363. .name = "MultiMedia28 Channel1",
  4364. .info = msm_pcm_channel_input_be_info,
  4365. .get = msm_pcm_channel_input_be_get,
  4366. .put = msm_pcm_channel_input_be_put,
  4367. .private_value = (unsigned long)&(mm28_ch1_enum)
  4368. },
  4369. {
  4370. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4371. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4372. .name = "MultiMedia28 Channel2",
  4373. .info = msm_pcm_channel_input_be_info,
  4374. .get = msm_pcm_channel_input_be_get,
  4375. .put = msm_pcm_channel_input_be_put,
  4376. .private_value = (unsigned long)&(mm28_ch2_enum)
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia29 Channel1",
  4382. .info = msm_pcm_channel_input_be_info,
  4383. .get = msm_pcm_channel_input_be_get,
  4384. .put = msm_pcm_channel_input_be_put,
  4385. .private_value = (unsigned long)&(mm29_ch1_enum)
  4386. },
  4387. {
  4388. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4389. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4390. .name = "MultiMedia29 Channel2",
  4391. .info = msm_pcm_channel_input_be_info,
  4392. .get = msm_pcm_channel_input_be_get,
  4393. .put = msm_pcm_channel_input_be_put,
  4394. .private_value = (unsigned long)&(mm29_ch2_enum)
  4395. },
  4396. {
  4397. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4398. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4399. .name = "MultiMedia1 Output Channel Map",
  4400. .info = msm_pcm_channel_output_map_info,
  4401. .get = msm_pcm_channel_output_map_get,
  4402. .put = msm_pcm_channel_output_map_put,
  4403. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4404. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4405. },
  4406. {
  4407. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4408. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4409. .name = "MultiMedia2 Output Channel Map",
  4410. .info = msm_pcm_channel_output_map_info,
  4411. .get = msm_pcm_channel_output_map_get,
  4412. .put = msm_pcm_channel_output_map_put,
  4413. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4414. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4415. },
  4416. {
  4417. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4418. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4419. .name = "MultiMedia3 Output Channel Map",
  4420. .info = msm_pcm_channel_output_map_info,
  4421. .get = msm_pcm_channel_output_map_get,
  4422. .put = msm_pcm_channel_output_map_put,
  4423. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4424. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4425. },
  4426. {
  4427. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4428. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4429. .name = "MultiMedia4 Output Channel Map",
  4430. .info = msm_pcm_channel_output_map_info,
  4431. .get = msm_pcm_channel_output_map_get,
  4432. .put = msm_pcm_channel_output_map_put,
  4433. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4434. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4435. },
  4436. {
  4437. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4438. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4439. .name = "MultiMedia5 Output Channel Map",
  4440. .info = msm_pcm_channel_output_map_info,
  4441. .get = msm_pcm_channel_output_map_get,
  4442. .put = msm_pcm_channel_output_map_put,
  4443. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4444. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4445. },
  4446. {
  4447. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4448. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4449. .name = "MultiMedia6 Output Channel Map",
  4450. .info = msm_pcm_channel_output_map_info,
  4451. .get = msm_pcm_channel_output_map_get,
  4452. .put = msm_pcm_channel_output_map_put,
  4453. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4454. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4455. },
  4456. {
  4457. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4458. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4459. .name = "MultiMedia18 Output Channel Map",
  4460. .info = msm_pcm_channel_output_map_info,
  4461. .get = msm_pcm_channel_output_map_get,
  4462. .put = msm_pcm_channel_output_map_put,
  4463. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4464. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4465. },
  4466. {
  4467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4468. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4469. .name = "MultiMedia19 Output Channel Map",
  4470. .info = msm_pcm_channel_output_map_info,
  4471. .get = msm_pcm_channel_output_map_get,
  4472. .put = msm_pcm_channel_output_map_put,
  4473. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4474. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4475. },
  4476. {
  4477. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4478. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4479. .name = "MultiMedia28 Output Channel Map",
  4480. .info = msm_pcm_channel_output_map_info,
  4481. .get = msm_pcm_channel_output_map_get,
  4482. .put = msm_pcm_channel_output_map_put,
  4483. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4484. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4485. },
  4486. {
  4487. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4488. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4489. .name = "MultiMedia29 Output Channel Map",
  4490. .info = msm_pcm_channel_output_map_info,
  4491. .get = msm_pcm_channel_output_map_get,
  4492. .put = msm_pcm_channel_output_map_put,
  4493. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4494. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4495. },
  4496. };
  4497. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4498. struct snd_ctl_elem_value *ucontrol)
  4499. {
  4500. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4501. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4502. ucontrol->value.integer.value[0]);
  4503. return 0;
  4504. }
  4505. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4506. struct snd_ctl_elem_value *ucontrol)
  4507. {
  4508. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4509. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4510. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4511. return 0;
  4512. }
  4513. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4514. struct snd_ctl_elem_value *ucontrol)
  4515. {
  4516. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4517. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4518. ucontrol->value.integer.value[0]);
  4519. return 0;
  4520. }
  4521. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4522. struct snd_ctl_elem_value *ucontrol)
  4523. {
  4524. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4525. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4526. __func__, msm_ec_ref_ch_downmixed);
  4527. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4528. return 0;
  4529. }
  4530. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4531. struct snd_ctl_elem_value *ucontrol)
  4532. {
  4533. int i = 0, ret = 0;
  4534. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4535. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4536. kcontrol->private_value)->shift;
  4537. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4538. weights[i] = ucontrol->value.integer.value[i];
  4539. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4540. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4541. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4542. return ret;
  4543. }
  4544. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4545. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4546. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4547. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4548. struct snd_ctl_elem_value *ucontrol)
  4549. {
  4550. switch (msm_ec_ref_bit_format) {
  4551. case SNDRV_PCM_FORMAT_S24_LE:
  4552. ucontrol->value.integer.value[0] = 2;
  4553. break;
  4554. case SNDRV_PCM_FORMAT_S16_LE:
  4555. ucontrol->value.integer.value[0] = 1;
  4556. break;
  4557. default:
  4558. ucontrol->value.integer.value[0] = 0;
  4559. break;
  4560. }
  4561. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4562. __func__, ucontrol->value.integer.value[0]);
  4563. return 0;
  4564. }
  4565. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4566. struct snd_ctl_elem_value *ucontrol)
  4567. {
  4568. u16 bit_width = 0;
  4569. switch (ucontrol->value.integer.value[0]) {
  4570. case 2:
  4571. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4572. break;
  4573. case 1:
  4574. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4575. break;
  4576. default:
  4577. msm_ec_ref_bit_format = 0;
  4578. break;
  4579. }
  4580. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4581. bit_width = 16;
  4582. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4583. bit_width = 24;
  4584. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4585. __func__, msm_ec_ref_bit_format);
  4586. adm_ec_ref_rx_bit_width(bit_width);
  4587. return 0;
  4588. }
  4589. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4590. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4591. struct snd_ctl_elem_value *ucontrol)
  4592. {
  4593. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4594. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4595. __func__, ucontrol->value.integer.value[0]);
  4596. return 0;
  4597. }
  4598. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4599. struct snd_ctl_elem_value *ucontrol)
  4600. {
  4601. switch (ucontrol->value.integer.value[0]) {
  4602. case 0:
  4603. msm_ec_ref_sampling_rate = 0;
  4604. break;
  4605. case 1:
  4606. msm_ec_ref_sampling_rate = 8000;
  4607. break;
  4608. case 2:
  4609. msm_ec_ref_sampling_rate = 16000;
  4610. break;
  4611. case 3:
  4612. msm_ec_ref_sampling_rate = 32000;
  4613. break;
  4614. case 4:
  4615. msm_ec_ref_sampling_rate = 44100;
  4616. break;
  4617. case 5:
  4618. msm_ec_ref_sampling_rate = 48000;
  4619. break;
  4620. case 6:
  4621. msm_ec_ref_sampling_rate = 96000;
  4622. break;
  4623. case 7:
  4624. msm_ec_ref_sampling_rate = 192000;
  4625. break;
  4626. case 8:
  4627. msm_ec_ref_sampling_rate = 384000;
  4628. break;
  4629. default:
  4630. msm_ec_ref_sampling_rate = 48000;
  4631. break;
  4632. }
  4633. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4634. __func__, msm_ec_ref_sampling_rate);
  4635. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4636. return 0;
  4637. }
  4638. static int get_ec_ref_port_id(int value, int *index)
  4639. {
  4640. int port_id;
  4641. switch (value) {
  4642. case 0:
  4643. *index = 0;
  4644. port_id = AFE_PORT_INVALID;
  4645. break;
  4646. case 1:
  4647. *index = 1;
  4648. port_id = SLIMBUS_0_RX;
  4649. break;
  4650. case 2:
  4651. *index = 2;
  4652. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4653. break;
  4654. case 3:
  4655. *index = 3;
  4656. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4657. break;
  4658. case 4:
  4659. *index = 4;
  4660. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4661. break;
  4662. case 5:
  4663. *index = 5;
  4664. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4665. break;
  4666. case 6:
  4667. *index = 6;
  4668. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4669. break;
  4670. case 7:
  4671. *index = 7;
  4672. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4673. break;
  4674. case 9:
  4675. *index = 9;
  4676. port_id = SLIMBUS_5_RX;
  4677. break;
  4678. case 10:
  4679. *index = 10;
  4680. port_id = SLIMBUS_1_TX;
  4681. break;
  4682. case 11:
  4683. *index = 11;
  4684. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4685. break;
  4686. case 12:
  4687. *index = 12;
  4688. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4689. break;
  4690. case 13:
  4691. *index = 13;
  4692. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4693. break;
  4694. case 14:
  4695. *index = 14;
  4696. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4697. break;
  4698. case 15:
  4699. *index = 15;
  4700. port_id = SLIMBUS_6_RX;
  4701. break;
  4702. case 16:
  4703. *index = 16;
  4704. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4705. break;
  4706. case 17:
  4707. *index = 17;
  4708. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4709. break;
  4710. case 18:
  4711. *index = 18;
  4712. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4713. break;
  4714. case 19:
  4715. *index = 19;
  4716. port_id = AFE_PORT_ID_USB_RX;
  4717. break;
  4718. case 20:
  4719. *index = 20;
  4720. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4721. break;
  4722. case 21:
  4723. *index = 21;
  4724. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4725. break;
  4726. case 22:
  4727. *index = 22;
  4728. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4729. break;
  4730. case 23:
  4731. *index = 23;
  4732. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4733. break;
  4734. case 24:
  4735. *index = 24;
  4736. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4737. break;
  4738. case 25:
  4739. *index = 25;
  4740. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4741. break;
  4742. case 26:
  4743. *index = 26;
  4744. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4745. break;
  4746. case 27:
  4747. *index = 27;
  4748. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4749. break;
  4750. case 28:
  4751. *index = 28;
  4752. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4753. break;
  4754. case 29:
  4755. *index = 29;
  4756. port_id = SLIMBUS_7_RX;
  4757. break;
  4758. case 30:
  4759. *index = 30;
  4760. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  4761. break;
  4762. case 31:
  4763. *index = 31;
  4764. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4765. break;
  4766. case 32:
  4767. *index = 32;
  4768. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4769. break;
  4770. case 33:
  4771. *index = 33;
  4772. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  4773. break;
  4774. case 34:
  4775. *index = 34;
  4776. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  4777. break;
  4778. case 35:
  4779. *index = 35;
  4780. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  4781. break;
  4782. case 36:
  4783. *index = 36;
  4784. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  4785. break;
  4786. default:
  4787. *index = 0; /* NONE */
  4788. pr_err("%s: Invalid value %d\n", __func__, value);
  4789. port_id = AFE_PORT_INVALID;
  4790. break;
  4791. }
  4792. return port_id;
  4793. }
  4794. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  4795. struct snd_ctl_elem_value *ucontrol)
  4796. {
  4797. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  4798. mutex_lock(&routing_lock);
  4799. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  4800. mutex_unlock(&routing_lock);
  4801. return 0;
  4802. }
  4803. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  4804. struct snd_ctl_elem_value *ucontrol)
  4805. {
  4806. int value = ucontrol->value.integer.value[0];
  4807. mutex_lock(&routing_lock);
  4808. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  4809. &afe_loopback_tx_port_index);
  4810. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  4811. __func__, afe_loopback_tx_port_index);
  4812. mutex_unlock(&routing_lock);
  4813. return 0;
  4814. }
  4815. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  4816. "32000", "44100", "48000", "96000", "192000", "384000"};
  4817. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  4818. SOC_ENUM_SINGLE_EXT(17, ec_ref_ch_text),
  4819. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  4820. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  4821. };
  4822. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  4823. "PRI_MI2S_TX", "SEC_MI2S_TX",
  4824. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  4825. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  4826. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  4827. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  4828. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  4829. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  4830. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  4831. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  4832. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  4833. };
  4834. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  4835. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  4836. };
  4837. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  4838. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  4839. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  4840. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  4841. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  4842. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  4843. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  4844. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  4845. msm_route_ec_ref_params_enum[0],
  4846. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  4847. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  4848. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4849. msm_ec_ref_chmixer_weights_put),
  4850. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  4851. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4852. msm_ec_ref_chmixer_weights_put),
  4853. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  4854. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4855. msm_ec_ref_chmixer_weights_put),
  4856. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  4857. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4858. msm_ec_ref_chmixer_weights_put),
  4859. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  4860. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4861. msm_ec_ref_chmixer_weights_put),
  4862. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  4863. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4864. msm_ec_ref_chmixer_weights_put),
  4865. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  4866. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  4867. };
  4868. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  4869. struct snd_ctl_elem_value *ucontrol)
  4870. {
  4871. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  4872. mutex_lock(&routing_lock);
  4873. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  4874. mutex_unlock(&routing_lock);
  4875. return 0;
  4876. }
  4877. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  4878. struct snd_ctl_elem_value *ucontrol)
  4879. {
  4880. int value = ucontrol->value.integer.value[0];
  4881. struct snd_soc_dapm_widget *widget =
  4882. snd_soc_dapm_kcontrol_widget(kcontrol);
  4883. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  4884. struct snd_soc_dapm_update *update = NULL;
  4885. mutex_lock(&routing_lock);
  4886. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  4887. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  4888. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  4889. __func__, msm_route_ec_ref_rx);
  4890. mutex_unlock(&routing_lock);
  4891. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  4892. msm_route_ec_ref_rx, e, update);
  4893. return 0;
  4894. }
  4895. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  4896. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  4897. msm_route_ec_ref_rx_enum[0],
  4898. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4899. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  4900. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  4901. msm_route_ec_ref_rx_enum[0],
  4902. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4903. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  4904. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  4905. msm_route_ec_ref_rx_enum[0],
  4906. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4907. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  4908. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  4909. msm_route_ec_ref_rx_enum[0],
  4910. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4911. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  4912. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  4913. msm_route_ec_ref_rx_enum[0],
  4914. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4915. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  4916. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  4917. msm_route_ec_ref_rx_enum[0],
  4918. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4919. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  4920. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  4921. msm_route_ec_ref_rx_enum[0],
  4922. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4923. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  4924. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  4925. msm_route_ec_ref_rx_enum[0],
  4926. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4927. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  4928. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  4929. msm_route_ec_ref_rx_enum[0],
  4930. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4931. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  4932. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  4933. msm_route_ec_ref_rx_enum[0],
  4934. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4935. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  4936. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  4937. msm_route_ec_ref_rx_enum[0],
  4938. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4939. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  4940. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  4941. msm_route_ec_ref_rx_enum[0],
  4942. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4943. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  4944. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  4945. msm_route_ec_ref_rx_enum[0],
  4946. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4947. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  4948. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  4949. msm_route_ec_ref_rx_enum[0],
  4950. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4951. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  4952. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  4953. msm_route_ec_ref_rx_enum[0],
  4954. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4955. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  4956. struct snd_ctl_elem_value *ucontrol)
  4957. {
  4958. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  4959. mutex_lock(&routing_lock);
  4960. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  4961. mutex_unlock(&routing_lock);
  4962. return 0;
  4963. }
  4964. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  4965. struct snd_ctl_elem_value *ucontrol)
  4966. {
  4967. struct snd_soc_dapm_widget *widget =
  4968. snd_soc_dapm_kcontrol_widget(kcontrol);
  4969. int mux = ucontrol->value.enumerated.item[0];
  4970. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  4971. int ret = 1;
  4972. bool state = true;
  4973. uint16_t ext_ec_ref_port_id;
  4974. struct snd_soc_dapm_update *update = NULL;
  4975. if (mux >= e->items) {
  4976. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  4977. return -EINVAL;
  4978. }
  4979. mutex_lock(&routing_lock);
  4980. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  4981. switch (msm_route_ext_ec_ref) {
  4982. case EXT_EC_REF_PRI_MI2S_TX:
  4983. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4984. break;
  4985. case EXT_EC_REF_SEC_MI2S_TX:
  4986. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4987. break;
  4988. case EXT_EC_REF_TERT_MI2S_TX:
  4989. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4990. break;
  4991. case EXT_EC_REF_QUAT_MI2S_TX:
  4992. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4993. break;
  4994. case EXT_EC_REF_QUIN_MI2S_TX:
  4995. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  4996. break;
  4997. case EXT_EC_REF_SLIM_1_TX:
  4998. ext_ec_ref_port_id = SLIMBUS_1_TX;
  4999. break;
  5000. case EXT_EC_REF_SEC_TDM_TX:
  5001. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5002. break;
  5003. case EXT_EC_REF_NONE:
  5004. default:
  5005. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5006. state = false;
  5007. break;
  5008. }
  5009. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5010. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5011. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5012. mutex_unlock(&routing_lock);
  5013. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5014. update);
  5015. } else {
  5016. ret = -EINVAL;
  5017. mutex_unlock(&routing_lock);
  5018. }
  5019. return ret;
  5020. }
  5021. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5022. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5023. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5024. "SLIM_1_TX", "SEC_TDM_TX"};
  5025. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5026. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5027. };
  5028. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5029. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5030. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5031. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5032. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5033. MSM_BACKEND_DAI_PRI_I2S_RX,
  5034. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5035. msm_routing_put_audio_mixer),
  5036. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5037. MSM_BACKEND_DAI_PRI_I2S_RX,
  5038. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5039. msm_routing_put_audio_mixer),
  5040. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5041. MSM_BACKEND_DAI_PRI_I2S_RX,
  5042. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5043. msm_routing_put_audio_mixer),
  5044. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5045. MSM_BACKEND_DAI_PRI_I2S_RX,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5049. MSM_BACKEND_DAI_PRI_I2S_RX,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5053. MSM_BACKEND_DAI_PRI_I2S_RX,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5057. MSM_BACKEND_DAI_PRI_I2S_RX,
  5058. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5059. msm_routing_put_audio_mixer),
  5060. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5061. MSM_BACKEND_DAI_PRI_I2S_RX,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5065. MSM_BACKEND_DAI_PRI_I2S_RX,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5069. MSM_BACKEND_DAI_PRI_I2S_RX,
  5070. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5071. msm_routing_put_audio_mixer),
  5072. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5073. MSM_BACKEND_DAI_PRI_I2S_RX,
  5074. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5075. msm_routing_put_audio_mixer),
  5076. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5077. MSM_BACKEND_DAI_PRI_I2S_RX,
  5078. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5079. msm_routing_put_audio_mixer),
  5080. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5081. MSM_BACKEND_DAI_PRI_I2S_RX,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5085. MSM_BACKEND_DAI_PRI_I2S_RX,
  5086. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5087. msm_routing_put_audio_mixer),
  5088. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5089. MSM_BACKEND_DAI_PRI_I2S_RX,
  5090. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5091. msm_routing_put_audio_mixer),
  5092. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5093. MSM_BACKEND_DAI_PRI_I2S_RX,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5097. MSM_BACKEND_DAI_PRI_I2S_RX,
  5098. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5099. msm_routing_put_audio_mixer),
  5100. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5101. MSM_BACKEND_DAI_PRI_I2S_RX,
  5102. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5103. msm_routing_put_audio_mixer),
  5104. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5105. MSM_BACKEND_DAI_PRI_I2S_RX,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5109. MSM_BACKEND_DAI_PRI_I2S_RX,
  5110. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5111. msm_routing_put_audio_mixer),
  5112. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5113. MSM_BACKEND_DAI_PRI_I2S_RX,
  5114. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5115. msm_routing_put_audio_mixer),
  5116. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5117. MSM_BACKEND_DAI_PRI_I2S_RX,
  5118. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5119. msm_routing_put_audio_mixer),
  5120. };
  5121. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5122. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5123. MSM_BACKEND_DAI_SEC_I2S_RX,
  5124. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5125. msm_routing_put_audio_mixer),
  5126. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5127. MSM_BACKEND_DAI_SEC_I2S_RX,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5131. MSM_BACKEND_DAI_SEC_I2S_RX,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5135. MSM_BACKEND_DAI_SEC_I2S_RX,
  5136. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5137. msm_routing_put_audio_mixer),
  5138. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5139. MSM_BACKEND_DAI_SEC_I2S_RX,
  5140. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5141. msm_routing_put_audio_mixer),
  5142. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5143. MSM_BACKEND_DAI_SEC_I2S_RX,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5147. MSM_BACKEND_DAI_SEC_I2S_RX,
  5148. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5149. msm_routing_put_audio_mixer),
  5150. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5151. MSM_BACKEND_DAI_SEC_I2S_RX,
  5152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5153. msm_routing_put_audio_mixer),
  5154. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5155. MSM_BACKEND_DAI_SEC_I2S_RX,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5159. MSM_BACKEND_DAI_SEC_I2S_RX,
  5160. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5161. msm_routing_put_audio_mixer),
  5162. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5163. MSM_BACKEND_DAI_SEC_I2S_RX,
  5164. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5165. msm_routing_put_audio_mixer),
  5166. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5167. MSM_BACKEND_DAI_SEC_I2S_RX,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5171. MSM_BACKEND_DAI_SEC_I2S_RX,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5175. MSM_BACKEND_DAI_SEC_I2S_RX,
  5176. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5177. msm_routing_put_audio_mixer),
  5178. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5179. MSM_BACKEND_DAI_SEC_I2S_RX,
  5180. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5181. msm_routing_put_audio_mixer),
  5182. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5183. MSM_BACKEND_DAI_SEC_I2S_RX,
  5184. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5185. msm_routing_put_audio_mixer),
  5186. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5187. MSM_BACKEND_DAI_SEC_I2S_RX,
  5188. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5189. msm_routing_put_audio_mixer),
  5190. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5191. MSM_BACKEND_DAI_SEC_I2S_RX,
  5192. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5193. msm_routing_put_audio_mixer),
  5194. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5195. MSM_BACKEND_DAI_SEC_I2S_RX,
  5196. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5197. msm_routing_put_audio_mixer),
  5198. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5199. MSM_BACKEND_DAI_SEC_I2S_RX,
  5200. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5201. msm_routing_put_audio_mixer),
  5202. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5203. MSM_BACKEND_DAI_SEC_I2S_RX,
  5204. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5205. msm_routing_put_audio_mixer),
  5206. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5207. MSM_BACKEND_DAI_SEC_I2S_RX,
  5208. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5209. msm_routing_put_audio_mixer),
  5210. };
  5211. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5212. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5213. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5217. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5221. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5225. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5237. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5241. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5242. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5243. msm_routing_put_audio_mixer),
  5244. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5245. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5246. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5247. msm_routing_put_audio_mixer),
  5248. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5249. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5251. msm_routing_put_audio_mixer),
  5252. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5253. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5254. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5255. msm_routing_put_audio_mixer),
  5256. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5257. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5258. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5259. msm_routing_put_audio_mixer),
  5260. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5261. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5265. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5269. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5270. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5271. msm_routing_put_audio_mixer),
  5272. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5273. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5274. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5275. msm_routing_put_audio_mixer),
  5276. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5277. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5278. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5279. msm_routing_put_audio_mixer),
  5280. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5281. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5285. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5286. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5287. msm_routing_put_audio_mixer),
  5288. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5289. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5290. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5291. msm_routing_put_audio_mixer),
  5292. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5293. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5294. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5295. msm_routing_put_audio_mixer),
  5296. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5297. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5298. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5299. msm_routing_put_audio_mixer),
  5300. };
  5301. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5302. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. };
  5391. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5392. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. };
  5461. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5462. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. };
  5551. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5552. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. };
  5641. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5642. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_MI2S_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_MI2S_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_MI2S_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_MI2S_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_MI2S_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_MI2S_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_MI2S_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_MI2S_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_MI2S_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_MI2S_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_MI2S_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_MI2S_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_MI2S_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_MI2S_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_MI2S_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_MI2S_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_MI2S_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_MI2S_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_MI2S_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_MI2S_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_MI2S_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_MI2S_RX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. };
  5731. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  5732. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. };
  5821. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  5822. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. };
  5911. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  5912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. };
  6001. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6002. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. };
  6083. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6084. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. };
  6089. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6090. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6139. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. };
  6179. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6180. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6209. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6213. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6225. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6229. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. };
  6269. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6270. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6299. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA9, 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_INT0_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_INT0_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_INT0_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_INT0_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_INT0_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_INT0_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_INT0_MI2S_RX,
  6332. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6333. msm_routing_put_audio_mixer),
  6334. };
  6335. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6336. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. };
  6401. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6402. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_HDMI_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_HDMI_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_HDMI_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_HDMI_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_HDMI_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_HDMI_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_HDMI_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_HDMI_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_HDMI_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_HDMI_RX,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_HDMI_RX,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_HDMI_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_HDMI_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_HDMI_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_HDMI_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_HDMI_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_HDMI_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_HDMI_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_HDMI_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_HDMI_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_HDMI_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_HDMI_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. };
  6491. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6492. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. };
  6561. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  6562. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  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_DISPLAY_PORT_RX_1,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. };
  6631. /* incall music delivery mixer */
  6632. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  6633. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6638. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. };
  6650. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  6651. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. };
  6668. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  6669. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. };
  6686. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  6687. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6704. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6705. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6706. msm_routing_put_audio_mixer),
  6707. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6708. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6712. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6716. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6717. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6718. msm_routing_put_audio_mixer),
  6719. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. };
  6756. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  6757. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6770. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. };
  6826. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  6827. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6832. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6836. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6840. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. };
  6896. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  6897. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. };
  6966. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  6967. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6968. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6972. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6976. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. };
  7036. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7037. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7046. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7047. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7048. msm_routing_put_audio_mixer),
  7049. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7086. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7090. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. };
  7106. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7107. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. };
  7176. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7177. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. };
  7246. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7247. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. };
  7316. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7317. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. };
  7386. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7387. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. };
  7456. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7457. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. };
  7526. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  7527. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. };
  7596. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  7597. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_USB_RX,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_USB_RX,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_USB_RX,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_USB_RX,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_USB_RX,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_USB_RX,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_USB_RX,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_USB_RX,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_USB_RX,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_USB_RX,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_USB_RX,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_USB_RX,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_USB_RX,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_USB_RX,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_USB_RX,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_USB_RX,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_USB_RX,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. };
  7666. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  7667. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. };
  7756. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  7757. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. };
  7826. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  7827. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_INT_FM_RX,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_INT_FM_RX,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_INT_FM_RX,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_INT_FM_RX,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_INT_FM_RX,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_INT_FM_RX,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_INT_FM_RX,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_INT_FM_RX,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_INT_FM_RX,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_INT_FM_RX,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_INT_FM_RX,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_INT_FM_RX,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_INT_FM_RX,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_INT_FM_RX,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_INT_FM_RX,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_INT_FM_RX,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_INT_FM_RX,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_INT_FM_RX,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_INT_FM_RX,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_INT_FM_RX,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_INT_FM_RX,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_INT_FM_RX,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. };
  7916. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  7917. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_AFE_PCM_RX,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_AFE_PCM_RX,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_AFE_PCM_RX,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_AFE_PCM_RX,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_AFE_PCM_RX,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_AFE_PCM_RX,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_AFE_PCM_RX,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_AFE_PCM_RX,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_AFE_PCM_RX,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_AFE_PCM_RX,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_AFE_PCM_RX,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_AFE_PCM_RX,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_AFE_PCM_RX,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_AFE_PCM_RX,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_AFE_PCM_RX,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_AFE_PCM_RX,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_AFE_PCM_RX,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_AFE_PCM_RX,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_AFE_PCM_RX,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_AFE_PCM_RX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_AFE_PCM_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_AFE_PCM_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. };
  8006. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8007. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_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_AUXPCM_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_AUXPCM_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_AUXPCM_RX,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_AUXPCM_RX,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_AUXPCM_RX,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_AUXPCM_RX,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_AUXPCM_RX,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_AUXPCM_RX,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. };
  8100. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. };
  8194. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8195. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. };
  8264. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. };
  8334. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8335. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. };
  8404. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8405. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_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_SEN_AUXPCM_RX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. };
  8474. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8475. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. };
  8544. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  8545. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. };
  8614. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  8615. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. };
  8684. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  8685. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. };
  8754. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  8755. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. };
  8820. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  8821. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. };
  8890. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  8891. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. };
  8960. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  8961. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. };
  9030. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9031. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. };
  9100. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. };
  9166. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9167. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. };
  9236. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9237. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. };
  9302. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9303. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. };
  9372. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9373. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. };
  9442. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9443. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. };
  9512. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  9513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. };
  9582. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  9583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. };
  9656. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  9657. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. };
  9722. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  9723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. };
  9796. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  9797. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. };
  9870. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  9871. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. };
  9944. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  9945. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. };
  10018. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10019. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. };
  10084. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10085. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. };
  10158. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10159. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. };
  10232. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10233. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. };
  10306. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  10307. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. };
  10380. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  10381. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. };
  10446. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  10447. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10450. msm_routing_put_audio_mixer),
  10451. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10453. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10454. msm_routing_put_audio_mixer),
  10455. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10473. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10478. msm_routing_put_audio_mixer),
  10479. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. };
  10520. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  10521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. };
  10594. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  10595. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10597. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10598. msm_routing_put_audio_mixer),
  10599. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10601. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10602. msm_routing_put_audio_mixer),
  10603. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. };
  10668. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  10669. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_PRI_I2S_TX,
  10671. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_MI2S_TX,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10676. msm_routing_put_audio_mixer),
  10677. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10679. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10680. msm_routing_put_audio_mixer),
  10681. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10684. msm_routing_put_audio_mixer),
  10685. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10688. msm_routing_put_audio_mixer),
  10689. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10692. msm_routing_put_audio_mixer),
  10693. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10694. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10696. msm_routing_put_audio_mixer),
  10697. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10698. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10699. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10700. msm_routing_put_audio_mixer),
  10701. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10704. msm_routing_put_audio_mixer),
  10705. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10706. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10708. msm_routing_put_audio_mixer),
  10709. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_AUXPCM_TX,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_INT_FM_TX,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_AFE_PCM_TX,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10804. msm_routing_put_audio_mixer),
  10805. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_USB_TX,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. };
  10942. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  10943. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_INT_FM_TX,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10946. msm_routing_put_audio_mixer),
  10947. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_MI2S_TX,
  10949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_USB_TX,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. };
  11164. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11165. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_INT_FM_TX,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_MI2S_TX,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_AFE_PCM_TX,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_AUXPCM_TX,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. };
  11386. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  11387. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_INT_FM_TX,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_AFE_PCM_TX,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11429. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11430. msm_routing_put_audio_mixer),
  11431. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_USB_TX,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. };
  11600. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  11601. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_INT_FM_TX,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_MI2S_TX,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_AFE_PCM_TX,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_AUXPCM_TX,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_USB_TX,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. };
  11846. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  11847. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_INT_FM_TX,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_AUXPCM_TX,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_USB_TX,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12046. msm_routing_put_audio_mixer),
  12047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12049. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12050. msm_routing_put_audio_mixer),
  12051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12054. msm_routing_put_audio_mixer),
  12055. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12058. msm_routing_put_audio_mixer),
  12059. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. };
  12068. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12069. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_INT_FM_TX,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_AFE_PCM_TX,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_USB_TX,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. };
  12294. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  12295. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_INT_FM_TX,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_AFE_PCM_TX,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_USB_TX,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_MI2S_TX,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_AUXPCM_TX,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12433. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12434. msm_routing_put_audio_mixer),
  12435. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12466. msm_routing_get_audio_mixer,
  12467. msm_routing_put_audio_mixer),
  12468. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12470. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12471. msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12476. msm_routing_get_audio_mixer,
  12477. msm_routing_put_audio_mixer),
  12478. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12480. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12481. msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12486. msm_routing_get_audio_mixer,
  12487. msm_routing_put_audio_mixer),
  12488. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12490. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12491. msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. };
  12510. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  12511. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12513. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12514. msm_routing_put_audio_mixer),
  12515. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12517. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12518. msm_routing_put_audio_mixer),
  12519. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12521. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12522. msm_routing_put_audio_mixer),
  12523. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_INT_FM_TX,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_AFE_PCM_TX,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12561. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12562. msm_routing_put_audio_mixer),
  12563. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12565. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12566. msm_routing_put_audio_mixer),
  12567. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12570. msm_routing_put_audio_mixer),
  12571. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12573. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12574. msm_routing_put_audio_mixer),
  12575. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. };
  12672. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  12673. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12675. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12676. msm_routing_put_audio_mixer),
  12677. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12679. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12680. msm_routing_put_audio_mixer),
  12681. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12683. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12684. msm_routing_put_audio_mixer),
  12685. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_INT_FM_TX,
  12687. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12688. msm_routing_put_audio_mixer),
  12689. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_AFE_PCM_TX,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_USB_TX,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_MI2S_TX,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_AUXPCM_TX,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12764. msm_routing_put_audio_mixer),
  12765. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12808. msm_routing_get_audio_mixer,
  12809. msm_routing_put_audio_mixer),
  12810. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12811. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12813. msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12818. msm_routing_get_audio_mixer,
  12819. msm_routing_put_audio_mixer),
  12820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12822. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12823. msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12828. msm_routing_get_audio_mixer,
  12829. msm_routing_put_audio_mixer),
  12830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12832. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12833. msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. };
  12852. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  12853. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_INT_FM_TX,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_AFE_PCM_TX,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12924. msm_routing_get_audio_mixer,
  12925. msm_routing_put_audio_mixer),
  12926. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12928. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12929. msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12934. msm_routing_get_audio_mixer,
  12935. msm_routing_put_audio_mixer),
  12936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12938. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12939. msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12944. msm_routing_get_audio_mixer,
  12945. msm_routing_put_audio_mixer),
  12946. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12948. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12949. msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. };
  12964. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  12965. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_INT_FM_TX,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_AFE_PCM_TX,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13031. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13032. msm_routing_put_audio_mixer),
  13033. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13035. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13040. msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13045. 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_MULTIMEDIA18, 1, 0,
  13050. msm_routing_get_audio_mixer,
  13051. msm_routing_put_audio_mixer),
  13052. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13054. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13055. msm_routing_get_audio_mixer,
  13056. msm_routing_put_audio_mixer),
  13057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13059. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13060. msm_routing_get_audio_mixer,
  13061. msm_routing_put_audio_mixer),
  13062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13064. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13065. msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA18, 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_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. };
  13080. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13081. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA19, 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_MULTIMEDIA19, 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_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_INT_FM_TX,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_AFE_PCM_TX,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13156. msm_routing_get_audio_mixer,
  13157. msm_routing_put_audio_mixer),
  13158. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13159. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13160. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13161. msm_routing_get_audio_mixer,
  13162. msm_routing_put_audio_mixer),
  13163. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13165. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13166. msm_routing_get_audio_mixer,
  13167. msm_routing_put_audio_mixer),
  13168. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13170. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13171. msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13176. msm_routing_get_audio_mixer,
  13177. msm_routing_put_audio_mixer),
  13178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13180. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13181. msm_routing_get_audio_mixer,
  13182. msm_routing_put_audio_mixer),
  13183. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13185. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13186. msm_routing_put_audio_mixer),
  13187. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13189. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13190. msm_routing_put_audio_mixer),
  13191. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13192. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13193. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13194. msm_routing_put_audio_mixer),
  13195. };
  13196. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13197. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13248. msm_routing_put_audio_mixer),
  13249. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13251. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13252. msm_routing_put_audio_mixer),
  13253. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13255. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13256. msm_routing_put_audio_mixer),
  13257. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13259. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13260. msm_routing_put_audio_mixer),
  13261. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13262. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13263. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13272. msm_routing_put_audio_mixer),
  13273. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13275. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13276. msm_routing_put_audio_mixer),
  13277. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13279. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13280. msm_routing_put_audio_mixer),
  13281. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13283. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13284. msm_routing_put_audio_mixer),
  13285. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13287. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13288. msm_routing_put_audio_mixer),
  13289. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13291. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13292. msm_routing_put_audio_mixer),
  13293. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13295. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13296. msm_routing_put_audio_mixer),
  13297. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13299. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13300. msm_routing_put_audio_mixer),
  13301. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13303. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13304. msm_routing_put_audio_mixer),
  13305. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13307. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13316. msm_routing_put_audio_mixer),
  13317. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13319. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13320. msm_routing_put_audio_mixer),
  13321. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13323. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13324. msm_routing_put_audio_mixer),
  13325. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13327. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13347. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13348. msm_routing_put_audio_mixer),
  13349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13351. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13352. msm_routing_put_audio_mixer),
  13353. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13355. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13356. msm_routing_put_audio_mixer),
  13357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13359. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13360. msm_routing_put_audio_mixer),
  13361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13363. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13364. msm_routing_put_audio_mixer),
  13365. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13367. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13368. msm_routing_put_audio_mixer),
  13369. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13371. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13372. msm_routing_put_audio_mixer),
  13373. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13375. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13376. msm_routing_put_audio_mixer),
  13377. };
  13378. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  13379. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_AUXPCM_TX,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13382. msm_routing_put_audio_mixer),
  13383. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13385. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13386. msm_routing_put_audio_mixer),
  13387. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13389. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13390. msm_routing_put_audio_mixer),
  13391. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13393. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13406. msm_routing_put_audio_mixer),
  13407. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13409. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13410. msm_routing_put_audio_mixer),
  13411. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13413. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13414. msm_routing_put_audio_mixer),
  13415. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13421. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13422. msm_routing_put_audio_mixer),
  13423. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. };
  13544. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  13545. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13547. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13548. msm_routing_put_audio_mixer),
  13549. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13551. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13552. msm_routing_put_audio_mixer),
  13553. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13555. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13556. msm_routing_put_audio_mixer),
  13557. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13559. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13560. msm_routing_put_audio_mixer),
  13561. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13563. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13564. msm_routing_put_audio_mixer),
  13565. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13567. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13568. msm_routing_put_audio_mixer),
  13569. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13571. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13572. msm_routing_put_audio_mixer),
  13573. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13575. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13576. msm_routing_put_audio_mixer),
  13577. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13579. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13580. msm_routing_put_audio_mixer),
  13581. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13582. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13583. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13584. msm_routing_put_audio_mixer),
  13585. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13587. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13588. msm_routing_put_audio_mixer),
  13589. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13591. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13592. msm_routing_put_audio_mixer),
  13593. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13595. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13596. msm_routing_put_audio_mixer),
  13597. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13599. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13600. msm_routing_put_audio_mixer),
  13601. };
  13602. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  13603. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13605. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13614. msm_routing_put_audio_mixer),
  13615. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13617. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13618. msm_routing_put_audio_mixer),
  13619. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_INT_FM_TX,
  13621. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13622. msm_routing_put_audio_mixer),
  13623. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13625. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13626. msm_routing_put_audio_mixer),
  13627. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_AFE_PCM_TX,
  13629. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13630. msm_routing_put_audio_mixer),
  13631. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13633. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13634. msm_routing_put_audio_mixer),
  13635. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13637. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13638. msm_routing_put_audio_mixer),
  13639. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13641. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13642. msm_routing_put_audio_mixer),
  13643. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13645. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13646. msm_routing_put_audio_mixer),
  13647. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13649. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13650. msm_routing_put_audio_mixer),
  13651. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13653. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13654. msm_routing_put_audio_mixer),
  13655. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13678. msm_routing_get_audio_mixer,
  13679. msm_routing_put_audio_mixer),
  13680. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13682. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13683. msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13688. msm_routing_get_audio_mixer,
  13689. msm_routing_put_audio_mixer),
  13690. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13692. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13693. msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13698. msm_routing_get_audio_mixer,
  13699. msm_routing_put_audio_mixer),
  13700. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13701. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13702. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13703. msm_routing_get_audio_mixer,
  13704. msm_routing_put_audio_mixer),
  13705. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13707. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13708. msm_routing_put_audio_mixer),
  13709. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13711. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. };
  13718. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  13719. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13721. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13730. msm_routing_put_audio_mixer),
  13731. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13733. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13734. msm_routing_put_audio_mixer),
  13735. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_INT_FM_TX,
  13737. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13738. msm_routing_put_audio_mixer),
  13739. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13740. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13741. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13742. msm_routing_put_audio_mixer),
  13743. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_AFE_PCM_TX,
  13745. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13746. msm_routing_put_audio_mixer),
  13747. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13749. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13750. msm_routing_put_audio_mixer),
  13751. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13754. msm_routing_put_audio_mixer),
  13755. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13757. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13758. msm_routing_put_audio_mixer),
  13759. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13761. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13762. msm_routing_put_audio_mixer),
  13763. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13765. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13766. msm_routing_put_audio_mixer),
  13767. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13769. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13770. msm_routing_put_audio_mixer),
  13771. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13794. msm_routing_get_audio_mixer,
  13795. msm_routing_put_audio_mixer),
  13796. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13798. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13799. msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13804. msm_routing_get_audio_mixer,
  13805. msm_routing_put_audio_mixer),
  13806. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13807. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13808. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13809. msm_routing_get_audio_mixer,
  13810. msm_routing_put_audio_mixer),
  13811. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13814. msm_routing_get_audio_mixer,
  13815. msm_routing_put_audio_mixer),
  13816. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13818. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13819. msm_routing_get_audio_mixer,
  13820. msm_routing_put_audio_mixer),
  13821. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13823. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13824. msm_routing_put_audio_mixer),
  13825. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13827. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13828. msm_routing_put_audio_mixer),
  13829. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13831. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13832. msm_routing_put_audio_mixer),
  13833. };
  13834. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  13835. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_PRI_I2S_RX,
  13837. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13838. msm_routing_put_voice_mixer),
  13839. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_PRI_I2S_RX,
  13841. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13842. msm_routing_put_voice_mixer),
  13843. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_PRI_I2S_RX,
  13845. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13846. msm_routing_put_voice_mixer),
  13847. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_PRI_I2S_RX,
  13849. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13850. msm_routing_put_voice_mixer),
  13851. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_PRI_I2S_RX,
  13853. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13854. msm_routing_put_voice_mixer),
  13855. };
  13856. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  13857. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_SEC_I2S_RX,
  13859. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13860. msm_routing_put_voice_mixer),
  13861. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_SEC_I2S_RX,
  13863. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13864. msm_routing_put_voice_mixer),
  13865. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_SEC_I2S_RX,
  13867. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13868. msm_routing_put_voice_mixer),
  13869. };
  13870. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  13871. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13873. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13874. msm_routing_put_voice_mixer),
  13875. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13877. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13878. msm_routing_put_voice_mixer),
  13879. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13881. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13882. msm_routing_put_voice_mixer),
  13883. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13885. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13886. msm_routing_put_voice_mixer),
  13887. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13889. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13890. msm_routing_put_voice_mixer),
  13891. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13893. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13894. msm_routing_put_voice_mixer),
  13895. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13897. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13898. msm_routing_put_voice_mixer),
  13899. };
  13900. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  13901. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13903. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13904. msm_routing_put_voice_mixer),
  13905. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13907. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13908. msm_routing_put_voice_mixer),
  13909. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13911. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13912. msm_routing_put_voice_mixer),
  13913. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13915. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13916. msm_routing_put_voice_mixer),
  13917. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13919. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13920. msm_routing_put_voice_mixer),
  13921. };
  13922. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  13923. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13925. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13926. msm_routing_put_voice_mixer),
  13927. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13929. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13930. msm_routing_put_voice_mixer),
  13931. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13933. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13934. msm_routing_put_voice_mixer),
  13935. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13937. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13938. msm_routing_put_voice_mixer),
  13939. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13941. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13942. msm_routing_put_voice_mixer),
  13943. };
  13944. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  13945. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13946. MSM_BACKEND_DAI_USB_RX,
  13947. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13948. msm_routing_put_voice_mixer),
  13949. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13950. MSM_BACKEND_DAI_USB_RX,
  13951. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13952. msm_routing_put_voice_mixer),
  13953. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_USB_RX,
  13955. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13956. msm_routing_put_voice_mixer),
  13957. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_USB_RX,
  13959. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13960. msm_routing_put_voice_mixer),
  13961. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_USB_RX,
  13963. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13964. msm_routing_put_voice_mixer),
  13965. };
  13966. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  13967. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13969. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13970. msm_routing_put_voice_mixer),
  13971. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13973. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13974. msm_routing_put_voice_mixer),
  13975. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13977. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13978. msm_routing_put_voice_mixer),
  13979. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13981. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13982. msm_routing_put_voice_mixer),
  13983. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13985. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13986. msm_routing_put_voice_mixer),
  13987. };
  13988. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  13989. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13991. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13992. msm_routing_put_voice_mixer),
  13993. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13995. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13996. msm_routing_put_voice_mixer),
  13997. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13999. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14000. msm_routing_put_voice_mixer),
  14001. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14003. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14004. msm_routing_put_voice_mixer),
  14005. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14007. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14008. msm_routing_put_voice_mixer),
  14009. };
  14010. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14011. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14012. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14013. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14014. msm_routing_put_voice_mixer),
  14015. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14016. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14017. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14018. msm_routing_put_voice_mixer),
  14019. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14021. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14022. msm_routing_put_voice_mixer),
  14023. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14025. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14026. msm_routing_put_voice_mixer),
  14027. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14028. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14029. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14030. msm_routing_put_voice_mixer),
  14031. };
  14032. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14033. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_MI2S_RX,
  14035. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14036. msm_routing_put_voice_mixer),
  14037. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_MI2S_RX,
  14039. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14040. msm_routing_put_voice_mixer),
  14041. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_MI2S_RX,
  14043. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14044. msm_routing_put_voice_mixer),
  14045. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_MI2S_RX,
  14047. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14048. msm_routing_put_voice_mixer),
  14049. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_MI2S_RX,
  14051. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14052. msm_routing_put_voice_mixer),
  14053. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_MI2S_RX,
  14055. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14056. msm_routing_put_voice_mixer),
  14057. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_MI2S_RX,
  14059. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14060. msm_routing_put_voice_mixer),
  14061. };
  14062. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  14063. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14065. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14066. msm_routing_put_voice_mixer),
  14067. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14069. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14070. msm_routing_put_voice_mixer),
  14071. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14073. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14074. msm_routing_put_voice_mixer),
  14075. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14077. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14078. msm_routing_put_voice_mixer),
  14079. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14081. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14082. msm_routing_put_voice_mixer),
  14083. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14085. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14086. msm_routing_put_voice_mixer),
  14087. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14089. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14090. msm_routing_put_voice_mixer),
  14091. };
  14092. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  14093. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14095. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14096. msm_routing_put_voice_mixer),
  14097. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14098. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14099. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14100. msm_routing_put_voice_mixer),
  14101. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14104. msm_routing_put_voice_mixer),
  14105. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14107. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14108. msm_routing_put_voice_mixer),
  14109. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14111. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14112. msm_routing_put_voice_mixer),
  14113. };
  14114. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  14115. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14118. msm_routing_put_voice_mixer),
  14119. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14121. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14122. msm_routing_put_voice_mixer),
  14123. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14125. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14126. msm_routing_put_voice_mixer),
  14127. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14129. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14130. msm_routing_put_voice_mixer),
  14131. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14133. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14134. msm_routing_put_voice_mixer),
  14135. };
  14136. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  14137. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14139. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14140. msm_routing_put_voice_mixer),
  14141. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14143. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14144. msm_routing_put_voice_mixer),
  14145. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14147. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14148. msm_routing_put_voice_mixer),
  14149. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14151. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14152. msm_routing_put_voice_mixer),
  14153. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14155. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14156. msm_routing_put_voice_mixer),
  14157. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14159. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14160. msm_routing_put_voice_mixer),
  14161. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14163. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14164. msm_routing_put_voice_mixer),
  14165. };
  14166. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  14167. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14169. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14170. msm_routing_put_voice_mixer),
  14171. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14173. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14174. msm_routing_put_voice_mixer),
  14175. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14177. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14178. msm_routing_put_voice_mixer),
  14179. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14181. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14182. msm_routing_put_voice_mixer),
  14183. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14185. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14186. msm_routing_put_voice_mixer),
  14187. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14189. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14190. msm_routing_put_voice_mixer),
  14191. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14193. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14194. msm_routing_put_voice_mixer),
  14195. };
  14196. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  14197. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14199. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14200. msm_routing_put_voice_mixer),
  14201. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14203. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14204. msm_routing_put_voice_stub_mixer),
  14205. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14207. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14208. msm_routing_put_voice_stub_mixer),
  14209. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14211. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14212. msm_routing_put_voice_mixer),
  14213. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14215. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14216. msm_routing_put_voice_mixer),
  14217. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14219. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14220. msm_routing_put_voice_mixer),
  14221. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14223. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14224. msm_routing_put_voice_mixer),
  14225. };
  14226. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  14227. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14228. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14229. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14230. msm_routing_put_voice_mixer),
  14231. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14232. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14233. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14234. msm_routing_put_voice_mixer),
  14235. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14237. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14238. msm_routing_put_voice_mixer),
  14239. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14241. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14242. msm_routing_put_voice_mixer),
  14243. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14245. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14246. msm_routing_put_voice_mixer),
  14247. };
  14248. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  14249. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_AFE_PCM_RX,
  14251. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14252. msm_routing_put_voice_mixer),
  14253. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_AFE_PCM_RX,
  14255. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14256. msm_routing_put_voice_mixer),
  14257. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_AFE_PCM_RX,
  14259. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14260. msm_routing_put_voice_mixer),
  14261. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_AFE_PCM_RX,
  14263. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14264. msm_routing_put_voice_mixer),
  14265. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_AFE_PCM_RX,
  14267. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14268. msm_routing_put_voice_mixer),
  14269. };
  14270. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  14271. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14272. MSM_BACKEND_DAI_AUXPCM_RX,
  14273. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14274. msm_routing_put_voice_mixer),
  14275. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_AUXPCM_RX,
  14277. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14278. msm_routing_put_voice_mixer),
  14279. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_AUXPCM_RX,
  14281. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14282. msm_routing_put_voice_mixer),
  14283. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_AUXPCM_RX,
  14285. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14286. msm_routing_put_voice_mixer),
  14287. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_AUXPCM_RX,
  14289. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14290. msm_routing_put_voice_mixer),
  14291. };
  14292. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  14293. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14295. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14296. msm_routing_put_voice_mixer),
  14297. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14299. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14300. msm_routing_put_voice_mixer),
  14301. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14303. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14304. msm_routing_put_voice_mixer),
  14305. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14307. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14308. msm_routing_put_voice_mixer),
  14309. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14311. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14312. msm_routing_put_voice_mixer),
  14313. };
  14314. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  14315. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14317. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14318. msm_routing_put_voice_mixer),
  14319. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14321. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14322. msm_routing_put_voice_mixer),
  14323. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14325. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14326. msm_routing_put_voice_mixer),
  14327. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14329. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14330. msm_routing_put_voice_mixer),
  14331. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14333. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14334. msm_routing_put_voice_mixer),
  14335. };
  14336. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  14337. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14339. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14340. msm_routing_put_voice_mixer),
  14341. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14343. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14344. msm_routing_put_voice_mixer),
  14345. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14347. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14348. msm_routing_put_voice_mixer),
  14349. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14351. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14352. msm_routing_put_voice_mixer),
  14353. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14355. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14356. msm_routing_put_voice_mixer),
  14357. };
  14358. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  14359. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14361. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14362. msm_routing_put_voice_mixer),
  14363. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14365. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14366. msm_routing_put_voice_mixer),
  14367. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14369. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14370. msm_routing_put_voice_mixer),
  14371. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14373. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14374. msm_routing_put_voice_mixer),
  14375. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14377. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14378. msm_routing_put_voice_mixer),
  14379. };
  14380. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  14381. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14382. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14383. msm_routing_put_voice_mixer),
  14384. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14385. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14386. msm_routing_put_voice_mixer),
  14387. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14388. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14389. msm_routing_put_voice_mixer),
  14390. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14392. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14393. msm_routing_put_voice_mixer),
  14394. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14395. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14396. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14397. msm_routing_put_voice_mixer),
  14398. };
  14399. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  14400. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_HDMI_RX,
  14402. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14403. msm_routing_put_voice_mixer),
  14404. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14405. MSM_BACKEND_DAI_HDMI_RX,
  14406. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14407. msm_routing_put_voice_mixer),
  14408. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14409. MSM_BACKEND_DAI_HDMI_RX,
  14410. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14411. msm_routing_put_voice_mixer),
  14412. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_HDMI_RX,
  14414. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14415. msm_routing_put_voice_mixer),
  14416. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_HDMI_RX,
  14418. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14419. msm_routing_put_voice_mixer),
  14420. };
  14421. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  14422. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14423. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14424. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14425. msm_routing_put_voice_mixer),
  14426. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14427. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14428. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14429. msm_routing_put_voice_mixer),
  14430. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14431. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14432. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14433. msm_routing_put_voice_mixer),
  14434. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14435. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14436. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14437. msm_routing_put_voice_mixer),
  14438. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14439. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14440. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14441. msm_routing_put_voice_mixer),
  14442. };
  14443. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  14444. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14446. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14447. msm_routing_put_voice_mixer),
  14448. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14450. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14451. msm_routing_put_voice_mixer),
  14452. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14454. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14455. msm_routing_put_voice_mixer),
  14456. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14458. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14459. msm_routing_put_voice_mixer),
  14460. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14462. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14463. msm_routing_put_voice_mixer),
  14464. };
  14465. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  14466. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14468. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14469. msm_routing_put_voice_mixer),
  14470. };
  14471. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  14472. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14474. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14475. msm_routing_put_voice_mixer),
  14476. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14478. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14479. msm_routing_put_voice_mixer),
  14480. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14481. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14482. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14483. msm_routing_put_voice_mixer),
  14484. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14485. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14486. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14487. msm_routing_put_voice_mixer),
  14488. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14489. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14490. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14491. msm_routing_put_voice_mixer),
  14492. };
  14493. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  14494. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14496. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14497. msm_routing_put_voice_mixer),
  14498. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14500. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14501. msm_routing_put_voice_mixer),
  14502. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14504. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14505. msm_routing_put_voice_mixer),
  14506. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14508. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14509. msm_routing_put_voice_mixer),
  14510. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14512. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14513. msm_routing_put_voice_mixer),
  14514. };
  14515. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  14516. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14517. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14518. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14519. msm_routing_put_voice_mixer),
  14520. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14521. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14522. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14523. msm_routing_put_voice_mixer),
  14524. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14526. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14527. msm_routing_put_voice_mixer),
  14528. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14530. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14531. msm_routing_put_voice_mixer),
  14532. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14534. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14535. msm_routing_put_voice_mixer),
  14536. };
  14537. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  14538. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14540. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14541. msm_routing_put_voice_mixer),
  14542. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14544. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14545. msm_routing_put_voice_mixer),
  14546. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14548. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14549. msm_routing_put_voice_mixer),
  14550. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14552. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14553. msm_routing_put_voice_mixer),
  14554. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14556. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14557. msm_routing_put_voice_mixer),
  14558. };
  14559. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  14560. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14561. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14562. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14563. msm_routing_put_voice_mixer),
  14564. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14566. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14567. msm_routing_put_voice_mixer),
  14568. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14570. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14571. msm_routing_put_voice_mixer),
  14572. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14574. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14575. msm_routing_put_voice_mixer),
  14576. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14578. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14579. msm_routing_put_voice_mixer),
  14580. };
  14581. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  14582. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14583. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14584. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14585. msm_routing_put_voice_mixer),
  14586. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14588. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14589. msm_routing_put_voice_mixer),
  14590. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14591. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14592. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14593. msm_routing_put_voice_mixer),
  14594. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14595. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14596. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14597. msm_routing_put_voice_mixer),
  14598. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14600. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14601. msm_routing_put_voice_mixer),
  14602. };
  14603. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  14604. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14606. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14607. msm_routing_put_voice_mixer),
  14608. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14610. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14611. msm_routing_put_voice_mixer),
  14612. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14614. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14615. msm_routing_put_voice_mixer),
  14616. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14618. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14619. msm_routing_put_voice_mixer),
  14620. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14622. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14623. msm_routing_put_voice_mixer),
  14624. };
  14625. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  14626. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14627. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  14628. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14629. msm_routing_put_voice_mixer),
  14630. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14631. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  14632. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14633. msm_routing_put_voice_mixer),
  14634. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14635. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  14636. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14637. msm_routing_put_voice_mixer),
  14638. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  14640. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14641. msm_routing_put_voice_mixer),
  14642. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  14644. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14645. msm_routing_put_voice_mixer),
  14646. };
  14647. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  14648. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  14650. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14651. msm_routing_put_voice_mixer),
  14652. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14653. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  14654. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14655. msm_routing_put_voice_mixer),
  14656. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  14658. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14659. msm_routing_put_voice_mixer),
  14660. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  14662. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14663. msm_routing_put_voice_mixer),
  14664. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  14666. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14667. msm_routing_put_voice_mixer),
  14668. };
  14669. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  14670. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  14672. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14673. msm_routing_put_voice_mixer),
  14674. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  14676. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14677. msm_routing_put_voice_mixer),
  14678. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  14680. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14681. msm_routing_put_voice_mixer),
  14682. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14683. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  14684. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14685. msm_routing_put_voice_mixer),
  14686. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14687. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  14688. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14689. msm_routing_put_voice_mixer),
  14690. };
  14691. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  14692. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14693. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14694. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14695. msm_routing_put_voice_mixer),
  14696. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14697. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14698. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14699. msm_routing_put_voice_stub_mixer),
  14700. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14702. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14703. msm_routing_put_voice_stub_mixer),
  14704. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  14705. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14706. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14707. msm_routing_put_voice_mixer),
  14708. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14710. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14711. msm_routing_put_voice_mixer),
  14712. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14713. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14714. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14715. msm_routing_put_voice_mixer),
  14716. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14717. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14718. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14719. msm_routing_put_voice_mixer),
  14720. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14721. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  14722. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14723. msm_routing_put_voice_mixer),
  14724. };
  14725. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  14726. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14727. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14728. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14729. msm_routing_put_voice_mixer),
  14730. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14732. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14733. msm_routing_put_voice_stub_mixer),
  14734. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14735. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14736. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14737. msm_routing_put_voice_stub_mixer),
  14738. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  14739. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14740. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14741. msm_routing_put_voice_mixer),
  14742. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14743. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14744. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14745. msm_routing_put_voice_mixer),
  14746. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14748. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14749. msm_routing_put_voice_mixer),
  14750. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14752. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14753. msm_routing_put_voice_mixer),
  14754. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14755. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  14756. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14757. msm_routing_put_voice_mixer),
  14758. };
  14759. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  14760. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14762. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14763. msm_routing_put_voice_mixer),
  14764. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14765. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14766. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14767. msm_routing_put_voice_stub_mixer),
  14768. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14770. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14771. msm_routing_put_voice_stub_mixer),
  14772. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14774. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14775. msm_routing_put_voice_mixer),
  14776. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14778. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14779. msm_routing_put_voice_mixer),
  14780. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14782. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14783. msm_routing_put_voice_mixer),
  14784. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14785. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14786. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14787. msm_routing_put_voice_mixer),
  14788. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14789. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  14790. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14791. msm_routing_put_voice_mixer),
  14792. };
  14793. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  14794. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14795. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14796. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14797. msm_routing_put_voice_mixer),
  14798. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14799. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14800. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14801. msm_routing_put_voice_stub_mixer),
  14802. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14803. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14804. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14805. msm_routing_put_voice_stub_mixer),
  14806. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  14807. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14808. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14809. msm_routing_put_voice_mixer),
  14810. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14811. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14812. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14813. msm_routing_put_voice_mixer),
  14814. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14815. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14816. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14817. msm_routing_put_voice_mixer),
  14818. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14819. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14820. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14821. msm_routing_put_voice_mixer),
  14822. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14824. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14825. msm_routing_put_voice_mixer),
  14826. };
  14827. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  14828. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14829. MSM_BACKEND_DAI_EXTPROC_RX,
  14830. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14831. msm_routing_put_voice_mixer),
  14832. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_EXTPROC_RX,
  14834. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14835. msm_routing_put_voice_mixer),
  14836. };
  14837. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  14838. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14839. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14840. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14841. msm_routing_put_voice_mixer),
  14842. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14844. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14845. msm_routing_put_voice_mixer),
  14846. };
  14847. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  14848. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14849. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14850. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14851. msm_routing_put_voice_mixer),
  14852. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14854. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14855. msm_routing_put_voice_mixer),
  14856. };
  14857. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  14858. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  14859. MSM_BACKEND_DAI_PRI_I2S_TX,
  14860. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14861. msm_routing_put_voice_mixer),
  14862. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_MI2S_TX,
  14864. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14865. msm_routing_put_voice_mixer),
  14866. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  14867. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14868. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14869. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14871. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14872. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  14874. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14875. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  14877. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14878. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14879. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14880. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14881. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14883. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14884. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14885. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14886. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14887. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14889. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14890. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14891. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14892. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14893. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  14895. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14896. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  14897. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14898. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14899. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14901. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14902. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14904. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14905. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14907. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14908. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_USB_TX,
  14910. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14911. msm_routing_put_voice_mixer),
  14912. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14914. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14915. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14917. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14918. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14919. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14920. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14921. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14923. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14924. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14926. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14929. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14930. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14931. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14932. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14933. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14935. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14936. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  14937. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  14938. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14939. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  14941. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14942. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  14943. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14944. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14945. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  14946. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14947. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14948. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  14949. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14950. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14951. };
  14952. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  14953. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  14954. MSM_BACKEND_DAI_PRI_I2S_TX,
  14955. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14956. msm_routing_put_voice_mixer),
  14957. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_MI2S_TX,
  14959. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14960. msm_routing_put_voice_mixer),
  14961. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14963. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14964. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14966. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14967. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14969. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14970. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14971. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14972. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14973. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14975. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14976. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14977. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14978. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14979. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14981. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14982. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14984. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14985. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14987. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14988. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  14989. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14990. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14991. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14993. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14994. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14996. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14997. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  14998. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14999. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15000. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15001. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15002. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15003. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15005. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15006. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15007. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15008. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15009. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15011. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15012. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15013. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15014. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15015. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15017. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15020. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15021. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15023. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15024. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  15025. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15026. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  15029. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15030. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  15032. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15033. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15035. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15036. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  15037. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15038. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15039. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15041. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15042. };
  15043. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  15044. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  15045. MSM_BACKEND_DAI_PRI_I2S_TX,
  15046. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15047. msm_routing_put_voice_mixer),
  15048. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  15049. MSM_BACKEND_DAI_MI2S_TX,
  15050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15051. msm_routing_put_voice_mixer),
  15052. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  15053. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15054. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15055. msm_routing_put_voice_mixer),
  15056. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15058. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15059. msm_routing_put_voice_mixer),
  15060. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  15061. MSM_BACKEND_DAI_AFE_PCM_TX,
  15062. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15063. msm_routing_put_voice_mixer),
  15064. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15065. MSM_BACKEND_DAI_AUXPCM_TX,
  15066. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15067. msm_routing_put_voice_mixer),
  15068. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15069. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15070. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15071. msm_routing_put_voice_mixer),
  15072. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15073. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15074. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15075. msm_routing_put_voice_mixer),
  15076. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15077. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15078. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15079. msm_routing_put_voice_mixer),
  15080. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15081. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15082. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15083. msm_routing_put_voice_mixer),
  15084. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15085. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15087. msm_routing_put_voice_mixer),
  15088. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  15089. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15090. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15091. msm_routing_put_voice_mixer),
  15092. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15094. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15095. msm_routing_put_voice_mixer),
  15096. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15098. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15099. msm_routing_put_voice_mixer),
  15100. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  15101. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15102. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15103. msm_routing_put_voice_mixer),
  15104. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15106. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15107. msm_routing_put_voice_mixer),
  15108. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  15109. MSM_BACKEND_DAI_USB_TX,
  15110. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15111. msm_routing_put_voice_mixer),
  15112. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15114. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15115. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15117. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15118. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15119. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15120. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15121. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15123. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15124. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15126. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15127. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15129. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15130. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  15131. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  15132. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15133. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  15135. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15136. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  15137. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  15138. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15139. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15140. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15141. msm_routing_put_voice_mixer),
  15142. };
  15143. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  15144. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15145. MSM_BACKEND_DAI_EXTPROC_TX,
  15146. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15147. msm_routing_put_voice_stub_mixer),
  15148. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15149. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15151. msm_routing_put_voice_stub_mixer),
  15152. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15153. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15154. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15155. msm_routing_put_voice_stub_mixer),
  15156. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15157. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15158. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15159. msm_routing_put_voice_stub_mixer),
  15160. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15161. MSM_BACKEND_DAI_MI2S_TX,
  15162. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15163. msm_routing_put_voice_stub_mixer),
  15164. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15165. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15166. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15167. msm_routing_put_voice_stub_mixer),
  15168. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15170. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15171. msm_routing_put_voice_stub_mixer),
  15172. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15174. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15175. msm_routing_put_voice_stub_mixer),
  15176. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15178. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15179. msm_routing_put_voice_stub_mixer),
  15180. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15181. MSM_BACKEND_DAI_AUXPCM_TX,
  15182. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15183. msm_routing_put_voice_stub_mixer),
  15184. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15185. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15186. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15187. msm_routing_put_voice_stub_mixer),
  15188. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15189. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15190. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15191. msm_routing_put_voice_stub_mixer),
  15192. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15193. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15194. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15195. msm_routing_put_voice_stub_mixer),
  15196. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15197. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15198. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15199. msm_routing_put_voice_stub_mixer),
  15200. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15202. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15203. msm_routing_put_voice_stub_mixer),
  15204. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15205. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15206. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15207. msm_routing_put_voice_stub_mixer),
  15208. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15210. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15211. msm_routing_put_voice_stub_mixer),
  15212. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_AFE_PCM_TX,
  15214. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15215. msm_routing_put_voice_stub_mixer),
  15216. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15218. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15219. msm_routing_put_voice_stub_mixer),
  15220. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15222. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15223. msm_routing_put_voice_stub_mixer),
  15224. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  15226. 1, 0, msm_routing_get_voice_stub_mixer,
  15227. msm_routing_put_voice_stub_mixer),
  15228. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15229. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  15230. 1, 0, msm_routing_get_voice_stub_mixer,
  15231. msm_routing_put_voice_stub_mixer),
  15232. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15233. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  15234. 1, 0, msm_routing_get_voice_stub_mixer,
  15235. msm_routing_put_voice_stub_mixer),
  15236. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15237. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  15238. 1, 0, msm_routing_get_voice_stub_mixer,
  15239. msm_routing_put_voice_stub_mixer),
  15240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  15242. 1, 0, msm_routing_get_voice_stub_mixer,
  15243. msm_routing_put_voice_stub_mixer),
  15244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  15246. 1, 0, msm_routing_get_voice_stub_mixer,
  15247. msm_routing_put_voice_stub_mixer),
  15248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  15250. 1, 0, msm_routing_get_voice_stub_mixer,
  15251. msm_routing_put_voice_stub_mixer),
  15252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  15254. 1, 0, msm_routing_get_voice_stub_mixer,
  15255. msm_routing_put_voice_stub_mixer),
  15256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  15258. 1, 0, msm_routing_get_voice_stub_mixer,
  15259. msm_routing_put_voice_stub_mixer),
  15260. };
  15261. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  15262. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_EXTPROC_TX,
  15264. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15265. msm_routing_put_voice_stub_mixer),
  15266. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15268. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15269. msm_routing_put_voice_stub_mixer),
  15270. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15272. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15273. msm_routing_put_voice_stub_mixer),
  15274. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_AUXPCM_TX,
  15276. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15277. msm_routing_put_voice_stub_mixer),
  15278. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15280. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15281. msm_routing_put_voice_stub_mixer),
  15282. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15283. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15284. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15285. msm_routing_put_voice_stub_mixer),
  15286. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15287. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15288. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15289. msm_routing_put_voice_stub_mixer),
  15290. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15292. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15293. msm_routing_put_voice_stub_mixer),
  15294. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15295. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15296. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15297. msm_routing_put_voice_stub_mixer),
  15298. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15299. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15300. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15301. msm_routing_put_voice_stub_mixer),
  15302. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15304. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15305. msm_routing_put_voice_stub_mixer),
  15306. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_AFE_PCM_TX,
  15308. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15309. msm_routing_put_voice_stub_mixer),
  15310. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15312. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15313. msm_routing_put_voice_stub_mixer),
  15314. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15316. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15317. msm_routing_put_voice_stub_mixer),
  15318. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15319. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15320. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15321. msm_routing_put_voice_stub_mixer),
  15322. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15323. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15324. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15325. msm_routing_put_voice_stub_mixer),
  15326. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15327. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15328. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15329. msm_routing_put_voice_stub_mixer),
  15330. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15331. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  15332. 1, 0, msm_routing_get_voice_stub_mixer,
  15333. msm_routing_put_voice_stub_mixer),
  15334. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15335. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  15336. 1, 0, msm_routing_get_voice_stub_mixer,
  15337. msm_routing_put_voice_stub_mixer),
  15338. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15339. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  15340. 1, 0, msm_routing_get_voice_stub_mixer,
  15341. msm_routing_put_voice_stub_mixer),
  15342. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  15344. 1, 0, msm_routing_get_voice_stub_mixer,
  15345. msm_routing_put_voice_stub_mixer),
  15346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  15348. 1, 0, msm_routing_get_voice_stub_mixer,
  15349. msm_routing_put_voice_stub_mixer),
  15350. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  15352. 1, 0, msm_routing_get_voice_stub_mixer,
  15353. msm_routing_put_voice_stub_mixer),
  15354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  15356. 1, 0, msm_routing_get_voice_stub_mixer,
  15357. msm_routing_put_voice_stub_mixer),
  15358. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  15360. 1, 0, msm_routing_get_voice_stub_mixer,
  15361. msm_routing_put_voice_stub_mixer),
  15362. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  15364. 1, 0, msm_routing_get_voice_stub_mixer,
  15365. msm_routing_put_voice_stub_mixer),
  15366. };
  15367. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  15368. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_EXTPROC_TX,
  15370. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15371. msm_routing_put_voice_stub_mixer),
  15372. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15374. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15375. msm_routing_put_voice_stub_mixer),
  15376. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15378. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15379. msm_routing_put_voice_stub_mixer),
  15380. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_AUXPCM_TX,
  15382. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15383. msm_routing_put_voice_stub_mixer),
  15384. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15386. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15387. msm_routing_put_voice_stub_mixer),
  15388. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15390. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15391. msm_routing_put_voice_stub_mixer),
  15392. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15393. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15394. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15395. msm_routing_put_voice_stub_mixer),
  15396. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15397. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15398. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15399. msm_routing_put_voice_stub_mixer),
  15400. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15401. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15402. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15403. msm_routing_put_voice_stub_mixer),
  15404. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15405. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15406. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15407. msm_routing_put_voice_stub_mixer),
  15408. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15410. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15411. msm_routing_put_voice_stub_mixer),
  15412. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15413. MSM_BACKEND_DAI_AFE_PCM_TX,
  15414. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15415. msm_routing_put_voice_stub_mixer),
  15416. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15417. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15418. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15419. msm_routing_put_voice_stub_mixer),
  15420. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15421. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15422. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15423. msm_routing_put_voice_stub_mixer),
  15424. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15426. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15427. msm_routing_put_voice_stub_mixer),
  15428. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15430. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15431. msm_routing_put_voice_stub_mixer),
  15432. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  15434. 1, 0, msm_routing_get_voice_stub_mixer,
  15435. msm_routing_put_voice_stub_mixer),
  15436. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  15438. 1, 0, msm_routing_get_voice_stub_mixer,
  15439. msm_routing_put_voice_stub_mixer),
  15440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  15442. 1, 0, msm_routing_get_voice_stub_mixer,
  15443. msm_routing_put_voice_stub_mixer),
  15444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  15446. 1, 0, msm_routing_get_voice_stub_mixer,
  15447. msm_routing_put_voice_stub_mixer),
  15448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  15450. 1, 0, msm_routing_get_voice_stub_mixer,
  15451. msm_routing_put_voice_stub_mixer),
  15452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  15454. 1, 0, msm_routing_get_voice_stub_mixer,
  15455. msm_routing_put_voice_stub_mixer),
  15456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  15458. 1, 0, msm_routing_get_voice_stub_mixer,
  15459. msm_routing_put_voice_stub_mixer),
  15460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  15462. 1, 0, msm_routing_get_voice_stub_mixer,
  15463. msm_routing_put_voice_stub_mixer),
  15464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  15466. 1, 0, msm_routing_get_voice_stub_mixer,
  15467. msm_routing_put_voice_stub_mixer),
  15468. };
  15469. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  15470. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_PRI_I2S_TX,
  15472. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15473. msm_routing_put_voice_mixer),
  15474. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15476. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15477. msm_routing_put_voice_mixer),
  15478. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  15479. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15480. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  15481. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15482. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_AFE_PCM_TX,
  15484. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15485. msm_routing_put_voice_mixer),
  15486. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15487. MSM_BACKEND_DAI_AUXPCM_TX,
  15488. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15489. msm_routing_put_voice_mixer),
  15490. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15492. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15493. msm_routing_put_voice_mixer),
  15494. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15496. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15497. msm_routing_put_voice_mixer),
  15498. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15500. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15501. msm_routing_put_voice_mixer),
  15502. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15504. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15505. msm_routing_put_voice_mixer),
  15506. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15508. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15509. msm_routing_put_voice_mixer),
  15510. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_MI2S_TX,
  15512. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15513. msm_routing_put_voice_mixer),
  15514. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15516. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15517. msm_routing_put_voice_mixer),
  15518. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15520. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15521. msm_routing_put_voice_mixer),
  15522. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15524. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15525. msm_routing_put_voice_mixer),
  15526. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  15527. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15528. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15529. msm_routing_put_voice_mixer),
  15530. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15532. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15533. msm_routing_put_voice_mixer),
  15534. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  15535. MSM_BACKEND_DAI_USB_TX,
  15536. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15537. msm_routing_put_voice_mixer),
  15538. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  15539. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  15540. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15541. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  15543. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15544. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  15546. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15547. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  15548. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  15549. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  15552. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15553. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  15554. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  15555. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15556. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  15558. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  15561. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15562. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  15564. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15565. };
  15566. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  15567. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15569. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15570. msm_routing_put_port_mixer),
  15571. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15572. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15573. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15574. msm_routing_put_port_mixer),
  15575. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15576. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15577. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15578. msm_routing_put_port_mixer),
  15579. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15580. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15581. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15582. msm_routing_put_port_mixer),
  15583. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15585. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15586. msm_routing_put_port_mixer),
  15587. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15589. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15590. msm_routing_put_port_mixer),
  15591. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15593. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15594. msm_routing_put_port_mixer),
  15595. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15596. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15597. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15598. msm_routing_put_port_mixer),
  15599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15600. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15601. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15602. msm_routing_put_port_mixer),
  15603. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15604. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15605. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15606. msm_routing_put_port_mixer),
  15607. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15609. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15610. msm_routing_put_port_mixer),
  15611. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15613. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15614. msm_routing_put_port_mixer),
  15615. };
  15616. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  15617. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15619. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15620. msm_routing_put_port_mixer),
  15621. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15623. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15624. msm_routing_put_port_mixer),
  15625. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15627. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15628. msm_routing_put_port_mixer),
  15629. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15630. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15631. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15632. msm_routing_put_port_mixer),
  15633. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15634. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15635. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15636. msm_routing_put_port_mixer),
  15637. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15639. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15640. msm_routing_put_port_mixer),
  15641. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15642. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15643. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15644. msm_routing_put_port_mixer),
  15645. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15646. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15647. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15648. msm_routing_put_port_mixer),
  15649. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15650. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15651. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15652. msm_routing_put_port_mixer),
  15653. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15654. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15655. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15656. msm_routing_put_port_mixer),
  15657. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15658. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15659. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15660. msm_routing_put_port_mixer),
  15661. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15663. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15664. msm_routing_put_port_mixer),
  15665. };
  15666. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  15667. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15669. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  15670. msm_routing_put_port_mixer),
  15671. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15673. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  15674. msm_routing_put_port_mixer),
  15675. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15676. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15677. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15678. msm_routing_put_port_mixer),
  15679. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15681. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15682. msm_routing_put_port_mixer),
  15683. };
  15684. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  15685. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15687. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  15688. msm_routing_put_port_mixer),
  15689. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15691. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15692. msm_routing_put_port_mixer),
  15693. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15695. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15696. msm_routing_put_port_mixer),
  15697. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15699. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15700. msm_routing_put_port_mixer),
  15701. };
  15702. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  15703. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15705. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15706. msm_routing_put_port_mixer),
  15707. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15709. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15710. msm_routing_put_port_mixer),
  15711. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15713. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15714. msm_routing_put_port_mixer),
  15715. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15717. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15718. msm_routing_put_port_mixer),
  15719. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15720. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15721. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15722. msm_routing_put_port_mixer),
  15723. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15725. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15726. msm_routing_put_port_mixer),
  15727. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15729. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15730. msm_routing_put_port_mixer),
  15731. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15733. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15734. msm_routing_put_port_mixer),
  15735. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15737. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15738. msm_routing_put_port_mixer),
  15739. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15741. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15742. msm_routing_put_port_mixer),
  15743. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15745. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15746. msm_routing_put_port_mixer),
  15747. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15749. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15750. msm_routing_put_port_mixer),
  15751. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15753. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15754. msm_routing_put_port_mixer),
  15755. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15757. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15758. msm_routing_put_port_mixer),
  15759. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15761. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15762. msm_routing_put_port_mixer),
  15763. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15765. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15766. msm_routing_put_port_mixer),
  15767. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15769. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15770. msm_routing_put_port_mixer),
  15771. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15773. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15774. msm_routing_put_port_mixer),
  15775. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15776. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15777. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15778. msm_routing_put_port_mixer),
  15779. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  15780. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15781. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15782. msm_routing_put_port_mixer),
  15783. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15785. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15786. msm_routing_put_port_mixer),
  15787. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  15788. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15789. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15790. msm_routing_put_port_mixer),
  15791. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  15792. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15793. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15794. msm_routing_put_port_mixer),
  15795. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  15796. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15797. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15798. msm_routing_put_port_mixer),
  15799. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  15800. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15801. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  15802. msm_routing_put_port_mixer),
  15803. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15804. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15805. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15806. msm_routing_put_port_mixer),
  15807. };
  15808. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  15809. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15810. MSM_BACKEND_DAI_AUXPCM_RX,
  15811. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15812. msm_routing_put_port_mixer),
  15813. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15814. MSM_BACKEND_DAI_AUXPCM_RX,
  15815. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15816. msm_routing_put_port_mixer),
  15817. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15818. MSM_BACKEND_DAI_AUXPCM_RX,
  15819. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15820. msm_routing_put_port_mixer),
  15821. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15822. MSM_BACKEND_DAI_AUXPCM_RX,
  15823. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15824. msm_routing_put_port_mixer),
  15825. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15826. MSM_BACKEND_DAI_AUXPCM_RX,
  15827. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  15828. msm_routing_put_port_mixer),
  15829. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15830. MSM_BACKEND_DAI_AUXPCM_RX,
  15831. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15832. msm_routing_put_port_mixer),
  15833. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_AUXPCM_RX,
  15835. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  15836. msm_routing_put_port_mixer),
  15837. };
  15838. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  15839. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15840. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15841. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15842. msm_routing_put_port_mixer),
  15843. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15844. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15845. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15846. msm_routing_put_port_mixer),
  15847. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15848. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15849. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15850. msm_routing_put_port_mixer),
  15851. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15852. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15853. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15854. msm_routing_put_port_mixer),
  15855. };
  15856. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  15857. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15858. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15859. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15860. msm_routing_put_port_mixer),
  15861. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15862. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15863. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15864. msm_routing_put_port_mixer),
  15865. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15866. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15867. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15868. msm_routing_put_port_mixer),
  15869. };
  15870. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  15871. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15872. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15873. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15874. msm_routing_put_port_mixer),
  15875. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15876. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15877. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15878. msm_routing_put_port_mixer),
  15879. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15880. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15881. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15882. msm_routing_put_port_mixer),
  15883. };
  15884. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  15885. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15887. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15888. msm_routing_put_port_mixer),
  15889. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15890. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15891. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15892. msm_routing_put_port_mixer),
  15893. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15895. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15896. msm_routing_put_port_mixer),
  15897. };
  15898. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  15899. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15901. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15902. msm_routing_put_port_mixer),
  15903. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15905. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15906. msm_routing_put_port_mixer),
  15907. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15909. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15910. msm_routing_put_port_mixer),
  15911. };
  15912. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  15913. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15914. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15915. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15916. msm_routing_put_port_mixer),
  15917. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15918. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15919. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  15920. msm_routing_put_port_mixer),
  15921. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15922. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15923. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15924. msm_routing_put_port_mixer),
  15925. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15927. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15928. msm_routing_put_port_mixer),
  15929. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15931. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15932. msm_routing_put_port_mixer),
  15933. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15935. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15936. msm_routing_put_port_mixer),
  15937. };
  15938. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  15939. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15941. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  15942. msm_routing_put_port_mixer),
  15943. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15944. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15945. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15946. msm_routing_put_port_mixer),
  15947. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15949. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  15950. msm_routing_put_port_mixer),
  15951. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  15952. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15953. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  15954. msm_routing_put_port_mixer),
  15955. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  15956. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15957. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  15958. msm_routing_put_port_mixer),
  15959. };
  15960. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  15961. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15963. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15964. msm_routing_put_port_mixer),
  15965. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15967. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15968. msm_routing_put_port_mixer),
  15969. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15970. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15971. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15972. msm_routing_put_port_mixer),
  15973. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15975. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15976. msm_routing_put_port_mixer),
  15977. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15979. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15980. msm_routing_put_port_mixer),
  15981. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15982. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15983. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15984. msm_routing_put_port_mixer),
  15985. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15986. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15987. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15988. msm_routing_put_port_mixer),
  15989. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15990. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15991. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15992. msm_routing_put_port_mixer),
  15993. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15994. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15995. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15996. msm_routing_put_port_mixer),
  15997. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15998. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15999. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16000. msm_routing_put_port_mixer),
  16001. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16002. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16003. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16004. msm_routing_put_port_mixer),
  16005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16007. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16008. msm_routing_put_port_mixer),
  16009. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16010. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16011. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16012. msm_routing_put_port_mixer),
  16013. };
  16014. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16015. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16016. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16017. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16018. msm_routing_put_port_mixer),
  16019. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16020. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16021. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16022. msm_routing_put_port_mixer),
  16023. };
  16024. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  16025. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_AFE_PCM_RX,
  16027. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16028. msm_routing_put_port_mixer),
  16029. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16030. MSM_BACKEND_DAI_AFE_PCM_RX,
  16031. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16032. msm_routing_put_port_mixer),
  16033. };
  16034. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  16035. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16036. MSM_BACKEND_DAI_HDMI_RX,
  16037. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16038. msm_routing_put_port_mixer),
  16039. };
  16040. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  16041. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16042. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  16043. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16044. msm_routing_put_port_mixer),
  16045. };
  16046. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  16047. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16048. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16049. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16050. msm_routing_put_port_mixer),
  16051. };
  16052. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  16053. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16054. MSM_BACKEND_DAI_SEC_I2S_RX,
  16055. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16056. msm_routing_put_port_mixer),
  16057. };
  16058. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  16059. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16060. MSM_BACKEND_DAI_MI2S_RX,
  16061. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16062. msm_routing_put_port_mixer),
  16063. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16064. MSM_BACKEND_DAI_MI2S_RX,
  16065. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16066. msm_routing_put_port_mixer),
  16067. };
  16068. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  16069. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16070. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16071. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16072. msm_routing_put_port_mixer),
  16073. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16075. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16076. msm_routing_put_port_mixer),
  16077. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16079. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16080. msm_routing_put_port_mixer),
  16081. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16082. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16083. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16084. msm_routing_put_port_mixer),
  16085. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16086. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16087. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16088. msm_routing_put_port_mixer),
  16089. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16090. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16091. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16092. msm_routing_put_port_mixer),
  16093. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16094. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16095. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16096. msm_routing_put_port_mixer),
  16097. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16098. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16099. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16100. msm_routing_put_port_mixer),
  16101. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16102. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16103. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16104. msm_routing_put_port_mixer),
  16105. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16106. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16107. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16108. msm_routing_put_port_mixer),
  16109. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16111. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16112. msm_routing_put_port_mixer),
  16113. };
  16114. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  16115. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_USB_RX,
  16117. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  16118. msm_routing_put_port_mixer),
  16119. };
  16120. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  16121. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16122. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16123. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16124. msm_routing_put_port_mixer),
  16125. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16126. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16127. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16128. msm_routing_put_port_mixer),
  16129. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16130. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16131. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16132. msm_routing_put_port_mixer),
  16133. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16134. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16135. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16136. msm_routing_put_port_mixer),
  16137. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16138. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16139. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16140. msm_routing_put_port_mixer),
  16141. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16142. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16143. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16144. msm_routing_put_port_mixer),
  16145. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16146. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16147. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16148. msm_routing_put_port_mixer),
  16149. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16150. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16151. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16152. msm_routing_put_port_mixer),
  16153. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16154. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16155. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16156. msm_routing_put_port_mixer),
  16157. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16158. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16159. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16160. msm_routing_put_port_mixer),
  16161. };
  16162. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  16163. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16164. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16165. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16166. msm_routing_put_port_mixer),
  16167. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16169. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16170. msm_routing_put_port_mixer),
  16171. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16173. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16174. msm_routing_put_port_mixer),
  16175. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16176. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16177. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16178. msm_routing_put_port_mixer),
  16179. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16180. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16181. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16182. msm_routing_put_port_mixer),
  16183. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16185. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16186. msm_routing_put_port_mixer),
  16187. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16189. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16190. msm_routing_put_port_mixer),
  16191. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16192. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16193. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16194. msm_routing_put_port_mixer),
  16195. };
  16196. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  16197. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16198. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16199. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16200. msm_routing_put_port_mixer),
  16201. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16202. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16203. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16204. msm_routing_put_port_mixer),
  16205. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16206. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16207. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16208. msm_routing_put_port_mixer),
  16209. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16210. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16211. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16212. msm_routing_put_port_mixer),
  16213. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16214. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16215. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16216. msm_routing_put_port_mixer),
  16217. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16218. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16219. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16220. msm_routing_put_port_mixer),
  16221. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16222. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16223. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16224. msm_routing_put_port_mixer),
  16225. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16226. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16227. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16228. msm_routing_put_port_mixer),
  16229. };
  16230. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  16231. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16233. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16234. msm_routing_get_port_mixer,
  16235. msm_routing_put_port_mixer),
  16236. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16237. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16238. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16239. msm_routing_get_port_mixer,
  16240. msm_routing_put_port_mixer),
  16241. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16242. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16243. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16244. msm_routing_get_port_mixer,
  16245. msm_routing_put_port_mixer),
  16246. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16247. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16248. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16249. msm_routing_get_port_mixer,
  16250. msm_routing_put_port_mixer),
  16251. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16252. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16253. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16254. msm_routing_get_port_mixer,
  16255. msm_routing_put_port_mixer),
  16256. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16258. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16259. msm_routing_get_port_mixer,
  16260. msm_routing_put_port_mixer),
  16261. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16262. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16263. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16264. msm_routing_get_port_mixer,
  16265. msm_routing_put_port_mixer),
  16266. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16267. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16268. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16269. msm_routing_get_port_mixer,
  16270. msm_routing_put_port_mixer),
  16271. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16272. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16273. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16274. msm_routing_get_port_mixer,
  16275. msm_routing_put_port_mixer),
  16276. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16278. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16279. msm_routing_get_port_mixer,
  16280. msm_routing_put_port_mixer),
  16281. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16283. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16284. msm_routing_get_port_mixer,
  16285. msm_routing_put_port_mixer),
  16286. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16288. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16289. msm_routing_get_port_mixer,
  16290. msm_routing_put_port_mixer),
  16291. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16292. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16293. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16294. msm_routing_get_port_mixer,
  16295. msm_routing_put_port_mixer),
  16296. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16298. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16299. msm_routing_get_port_mixer,
  16300. msm_routing_put_port_mixer),
  16301. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16302. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16303. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16304. msm_routing_get_port_mixer,
  16305. msm_routing_put_port_mixer),
  16306. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16308. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16309. msm_routing_get_port_mixer,
  16310. msm_routing_put_port_mixer),
  16311. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16312. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16313. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16314. msm_routing_get_port_mixer,
  16315. msm_routing_put_port_mixer),
  16316. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16318. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16319. msm_routing_get_port_mixer,
  16320. msm_routing_put_port_mixer),
  16321. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16323. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16324. msm_routing_get_port_mixer,
  16325. msm_routing_put_port_mixer),
  16326. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16328. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16329. msm_routing_get_port_mixer,
  16330. msm_routing_put_port_mixer),
  16331. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16333. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16334. msm_routing_get_port_mixer,
  16335. msm_routing_put_port_mixer),
  16336. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16338. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16339. msm_routing_get_port_mixer,
  16340. msm_routing_put_port_mixer),
  16341. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16343. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16344. msm_routing_get_port_mixer,
  16345. msm_routing_put_port_mixer),
  16346. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16347. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16348. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16349. msm_routing_get_port_mixer,
  16350. msm_routing_put_port_mixer),
  16351. };
  16352. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  16353. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16355. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16356. msm_routing_get_port_mixer,
  16357. msm_routing_put_port_mixer),
  16358. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16360. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16361. msm_routing_get_port_mixer,
  16362. msm_routing_put_port_mixer),
  16363. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16364. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16365. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16366. msm_routing_get_port_mixer,
  16367. msm_routing_put_port_mixer),
  16368. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16369. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16370. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16371. msm_routing_get_port_mixer,
  16372. msm_routing_put_port_mixer),
  16373. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16374. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16375. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16376. msm_routing_get_port_mixer,
  16377. msm_routing_put_port_mixer),
  16378. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16379. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16380. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16381. msm_routing_get_port_mixer,
  16382. msm_routing_put_port_mixer),
  16383. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16384. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16385. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16386. msm_routing_get_port_mixer,
  16387. msm_routing_put_port_mixer),
  16388. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16390. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16391. msm_routing_get_port_mixer,
  16392. msm_routing_put_port_mixer),
  16393. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16394. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16395. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16396. msm_routing_get_port_mixer,
  16397. msm_routing_put_port_mixer),
  16398. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16399. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16400. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16401. msm_routing_get_port_mixer,
  16402. msm_routing_put_port_mixer),
  16403. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16405. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16406. msm_routing_get_port_mixer,
  16407. msm_routing_put_port_mixer),
  16408. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16409. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16410. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16411. msm_routing_get_port_mixer,
  16412. msm_routing_put_port_mixer),
  16413. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16414. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16415. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16416. msm_routing_get_port_mixer,
  16417. msm_routing_put_port_mixer),
  16418. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16420. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16421. msm_routing_get_port_mixer,
  16422. msm_routing_put_port_mixer),
  16423. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16425. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16426. msm_routing_get_port_mixer,
  16427. msm_routing_put_port_mixer),
  16428. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16430. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16431. msm_routing_get_port_mixer,
  16432. msm_routing_put_port_mixer),
  16433. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16434. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16435. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16436. msm_routing_get_port_mixer,
  16437. msm_routing_put_port_mixer),
  16438. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16440. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16441. msm_routing_get_port_mixer,
  16442. msm_routing_put_port_mixer),
  16443. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16444. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16445. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16446. msm_routing_get_port_mixer,
  16447. msm_routing_put_port_mixer),
  16448. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16450. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16451. msm_routing_get_port_mixer,
  16452. msm_routing_put_port_mixer),
  16453. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16454. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16455. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16456. msm_routing_get_port_mixer,
  16457. msm_routing_put_port_mixer),
  16458. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16459. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16460. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16461. msm_routing_get_port_mixer,
  16462. msm_routing_put_port_mixer),
  16463. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16464. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16465. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16466. msm_routing_get_port_mixer,
  16467. msm_routing_put_port_mixer),
  16468. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16469. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16470. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16471. msm_routing_get_port_mixer,
  16472. msm_routing_put_port_mixer),
  16473. };
  16474. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  16475. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16476. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16477. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16478. msm_routing_get_port_mixer,
  16479. msm_routing_put_port_mixer),
  16480. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16482. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16483. msm_routing_get_port_mixer,
  16484. msm_routing_put_port_mixer),
  16485. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16487. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16488. msm_routing_get_port_mixer,
  16489. msm_routing_put_port_mixer),
  16490. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16491. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16492. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16493. msm_routing_get_port_mixer,
  16494. msm_routing_put_port_mixer),
  16495. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16497. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16498. msm_routing_get_port_mixer,
  16499. msm_routing_put_port_mixer),
  16500. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16501. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16502. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16503. msm_routing_get_port_mixer,
  16504. msm_routing_put_port_mixer),
  16505. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16507. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16508. msm_routing_get_port_mixer,
  16509. msm_routing_put_port_mixer),
  16510. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16512. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16513. msm_routing_get_port_mixer,
  16514. msm_routing_put_port_mixer),
  16515. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16516. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16517. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16518. msm_routing_get_port_mixer,
  16519. msm_routing_put_port_mixer),
  16520. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16521. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16522. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16523. msm_routing_get_port_mixer,
  16524. msm_routing_put_port_mixer),
  16525. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16527. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16528. msm_routing_get_port_mixer,
  16529. msm_routing_put_port_mixer),
  16530. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16531. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16532. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16533. msm_routing_get_port_mixer,
  16534. msm_routing_put_port_mixer),
  16535. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16536. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16537. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16538. msm_routing_get_port_mixer,
  16539. msm_routing_put_port_mixer),
  16540. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16541. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16542. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16543. msm_routing_get_port_mixer,
  16544. msm_routing_put_port_mixer),
  16545. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16547. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16548. msm_routing_get_port_mixer,
  16549. msm_routing_put_port_mixer),
  16550. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16552. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16553. msm_routing_get_port_mixer,
  16554. msm_routing_put_port_mixer),
  16555. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16556. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16557. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16558. msm_routing_get_port_mixer,
  16559. msm_routing_put_port_mixer),
  16560. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16562. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16563. msm_routing_get_port_mixer,
  16564. msm_routing_put_port_mixer),
  16565. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16567. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16568. msm_routing_get_port_mixer,
  16569. msm_routing_put_port_mixer),
  16570. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16571. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16572. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16573. msm_routing_get_port_mixer,
  16574. msm_routing_put_port_mixer),
  16575. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16577. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16578. msm_routing_get_port_mixer,
  16579. msm_routing_put_port_mixer),
  16580. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16581. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16582. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16583. msm_routing_get_port_mixer,
  16584. msm_routing_put_port_mixer),
  16585. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16586. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16587. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16588. msm_routing_get_port_mixer,
  16589. msm_routing_put_port_mixer),
  16590. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16592. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16593. msm_routing_get_port_mixer,
  16594. msm_routing_put_port_mixer),
  16595. };
  16596. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  16597. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16598. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16599. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16600. msm_routing_get_port_mixer,
  16601. msm_routing_put_port_mixer),
  16602. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16604. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16605. msm_routing_get_port_mixer,
  16606. msm_routing_put_port_mixer),
  16607. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16609. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16610. msm_routing_get_port_mixer,
  16611. msm_routing_put_port_mixer),
  16612. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16613. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16614. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16615. msm_routing_get_port_mixer,
  16616. msm_routing_put_port_mixer),
  16617. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16619. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16620. msm_routing_get_port_mixer,
  16621. msm_routing_put_port_mixer),
  16622. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16623. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16624. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16625. msm_routing_get_port_mixer,
  16626. msm_routing_put_port_mixer),
  16627. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16628. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16629. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16630. msm_routing_get_port_mixer,
  16631. msm_routing_put_port_mixer),
  16632. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16634. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16635. msm_routing_get_port_mixer,
  16636. msm_routing_put_port_mixer),
  16637. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16638. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16639. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16640. msm_routing_get_port_mixer,
  16641. msm_routing_put_port_mixer),
  16642. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16643. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16644. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16645. msm_routing_get_port_mixer,
  16646. msm_routing_put_port_mixer),
  16647. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16648. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16649. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16650. msm_routing_get_port_mixer,
  16651. msm_routing_put_port_mixer),
  16652. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16653. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16654. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16655. msm_routing_get_port_mixer,
  16656. msm_routing_put_port_mixer),
  16657. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16659. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16660. msm_routing_get_port_mixer,
  16661. msm_routing_put_port_mixer),
  16662. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16663. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16664. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16665. msm_routing_get_port_mixer,
  16666. msm_routing_put_port_mixer),
  16667. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16669. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16670. msm_routing_get_port_mixer,
  16671. msm_routing_put_port_mixer),
  16672. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16673. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16674. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16675. msm_routing_get_port_mixer,
  16676. msm_routing_put_port_mixer),
  16677. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16678. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16679. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16680. msm_routing_get_port_mixer,
  16681. msm_routing_put_port_mixer),
  16682. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16683. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16684. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16685. msm_routing_get_port_mixer,
  16686. msm_routing_put_port_mixer),
  16687. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16688. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16689. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16690. msm_routing_get_port_mixer,
  16691. msm_routing_put_port_mixer),
  16692. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16693. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16694. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16695. msm_routing_get_port_mixer,
  16696. msm_routing_put_port_mixer),
  16697. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16699. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16700. msm_routing_get_port_mixer,
  16701. msm_routing_put_port_mixer),
  16702. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16703. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16704. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16705. msm_routing_get_port_mixer,
  16706. msm_routing_put_port_mixer),
  16707. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16708. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16709. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16710. msm_routing_get_port_mixer,
  16711. msm_routing_put_port_mixer),
  16712. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16713. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16714. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16715. msm_routing_get_port_mixer,
  16716. msm_routing_put_port_mixer),
  16717. };
  16718. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  16719. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16720. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16721. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16722. msm_routing_get_port_mixer,
  16723. msm_routing_put_port_mixer),
  16724. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16726. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16727. msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16731. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16732. msm_routing_get_port_mixer,
  16733. msm_routing_put_port_mixer),
  16734. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16736. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16737. msm_routing_get_port_mixer,
  16738. msm_routing_put_port_mixer),
  16739. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16741. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16742. msm_routing_get_port_mixer,
  16743. msm_routing_put_port_mixer),
  16744. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16745. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16746. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16747. msm_routing_get_port_mixer,
  16748. msm_routing_put_port_mixer),
  16749. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16750. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16751. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16752. msm_routing_get_port_mixer,
  16753. msm_routing_put_port_mixer),
  16754. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16756. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16757. msm_routing_get_port_mixer,
  16758. msm_routing_put_port_mixer),
  16759. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16761. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16762. msm_routing_get_port_mixer,
  16763. msm_routing_put_port_mixer),
  16764. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16765. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16766. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16767. msm_routing_get_port_mixer,
  16768. msm_routing_put_port_mixer),
  16769. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16771. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16772. msm_routing_get_port_mixer,
  16773. msm_routing_put_port_mixer),
  16774. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16775. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16776. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16777. msm_routing_get_port_mixer,
  16778. msm_routing_put_port_mixer),
  16779. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16781. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16782. msm_routing_get_port_mixer,
  16783. msm_routing_put_port_mixer),
  16784. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16785. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16786. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16787. msm_routing_get_port_mixer,
  16788. msm_routing_put_port_mixer),
  16789. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16791. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16792. msm_routing_get_port_mixer,
  16793. msm_routing_put_port_mixer),
  16794. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16795. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16796. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16797. msm_routing_get_port_mixer,
  16798. msm_routing_put_port_mixer),
  16799. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16801. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16802. msm_routing_get_port_mixer,
  16803. msm_routing_put_port_mixer),
  16804. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16805. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16806. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16807. msm_routing_get_port_mixer,
  16808. msm_routing_put_port_mixer),
  16809. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16810. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16811. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16812. msm_routing_get_port_mixer,
  16813. msm_routing_put_port_mixer),
  16814. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16815. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16816. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16817. msm_routing_get_port_mixer,
  16818. msm_routing_put_port_mixer),
  16819. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16820. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16821. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16822. msm_routing_get_port_mixer,
  16823. msm_routing_put_port_mixer),
  16824. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16825. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16826. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16827. msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16831. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16832. msm_routing_get_port_mixer,
  16833. msm_routing_put_port_mixer),
  16834. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16835. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16836. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16837. msm_routing_get_port_mixer,
  16838. msm_routing_put_port_mixer),
  16839. };
  16840. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  16841. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16843. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16844. msm_routing_get_port_mixer,
  16845. msm_routing_put_port_mixer),
  16846. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16847. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16848. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16849. msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16853. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16854. msm_routing_get_port_mixer,
  16855. msm_routing_put_port_mixer),
  16856. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16857. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16858. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16859. msm_routing_get_port_mixer,
  16860. msm_routing_put_port_mixer),
  16861. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16863. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16864. msm_routing_get_port_mixer,
  16865. msm_routing_put_port_mixer),
  16866. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16867. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16868. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16869. msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16873. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16874. msm_routing_get_port_mixer,
  16875. msm_routing_put_port_mixer),
  16876. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16877. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16878. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16879. msm_routing_get_port_mixer,
  16880. msm_routing_put_port_mixer),
  16881. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16883. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16884. msm_routing_get_port_mixer,
  16885. msm_routing_put_port_mixer),
  16886. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16887. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16888. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16889. msm_routing_get_port_mixer,
  16890. msm_routing_put_port_mixer),
  16891. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16892. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16893. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16894. msm_routing_get_port_mixer,
  16895. msm_routing_put_port_mixer),
  16896. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16897. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16898. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16899. msm_routing_get_port_mixer,
  16900. msm_routing_put_port_mixer),
  16901. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16903. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16904. msm_routing_get_port_mixer,
  16905. msm_routing_put_port_mixer),
  16906. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16907. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16908. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16909. msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16913. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16914. msm_routing_get_port_mixer,
  16915. msm_routing_put_port_mixer),
  16916. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16917. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16918. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16919. msm_routing_get_port_mixer,
  16920. msm_routing_put_port_mixer),
  16921. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16923. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16924. msm_routing_get_port_mixer,
  16925. msm_routing_put_port_mixer),
  16926. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16927. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16928. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16929. msm_routing_get_port_mixer,
  16930. msm_routing_put_port_mixer),
  16931. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16932. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16933. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16934. msm_routing_get_port_mixer,
  16935. msm_routing_put_port_mixer),
  16936. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16937. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16938. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16939. msm_routing_get_port_mixer,
  16940. msm_routing_put_port_mixer),
  16941. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16943. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16944. msm_routing_get_port_mixer,
  16945. msm_routing_put_port_mixer),
  16946. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16947. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16948. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16949. msm_routing_get_port_mixer,
  16950. msm_routing_put_port_mixer),
  16951. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16952. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16953. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16954. msm_routing_get_port_mixer,
  16955. msm_routing_put_port_mixer),
  16956. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16957. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16958. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16959. msm_routing_get_port_mixer,
  16960. msm_routing_put_port_mixer),
  16961. };
  16962. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  16963. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16964. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16965. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16966. msm_routing_get_port_mixer,
  16967. msm_routing_put_port_mixer),
  16968. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16970. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16971. msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16975. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16976. msm_routing_get_port_mixer,
  16977. msm_routing_put_port_mixer),
  16978. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16979. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16980. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16981. msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16985. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16986. msm_routing_get_port_mixer,
  16987. msm_routing_put_port_mixer),
  16988. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16990. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16991. msm_routing_get_port_mixer,
  16992. msm_routing_put_port_mixer),
  16993. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16995. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16996. msm_routing_get_port_mixer,
  16997. msm_routing_put_port_mixer),
  16998. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16999. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17000. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17001. msm_routing_get_port_mixer,
  17002. msm_routing_put_port_mixer),
  17003. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17005. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17006. msm_routing_get_port_mixer,
  17007. msm_routing_put_port_mixer),
  17008. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17010. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17011. msm_routing_get_port_mixer,
  17012. msm_routing_put_port_mixer),
  17013. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17014. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17015. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17016. msm_routing_get_port_mixer,
  17017. msm_routing_put_port_mixer),
  17018. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17019. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17020. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17021. msm_routing_get_port_mixer,
  17022. msm_routing_put_port_mixer),
  17023. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17025. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17026. msm_routing_get_port_mixer,
  17027. msm_routing_put_port_mixer),
  17028. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17029. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17030. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17031. msm_routing_get_port_mixer,
  17032. msm_routing_put_port_mixer),
  17033. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17034. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17035. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17036. msm_routing_get_port_mixer,
  17037. msm_routing_put_port_mixer),
  17038. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17039. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17040. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17041. msm_routing_get_port_mixer,
  17042. msm_routing_put_port_mixer),
  17043. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17045. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17046. msm_routing_get_port_mixer,
  17047. msm_routing_put_port_mixer),
  17048. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17050. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17051. msm_routing_get_port_mixer,
  17052. msm_routing_put_port_mixer),
  17053. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17054. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17055. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17056. msm_routing_get_port_mixer,
  17057. msm_routing_put_port_mixer),
  17058. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17059. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17060. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17061. msm_routing_get_port_mixer,
  17062. msm_routing_put_port_mixer),
  17063. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17064. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17065. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17066. msm_routing_get_port_mixer,
  17067. msm_routing_put_port_mixer),
  17068. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17069. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17070. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17071. msm_routing_get_port_mixer,
  17072. msm_routing_put_port_mixer),
  17073. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17074. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17075. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17076. msm_routing_get_port_mixer,
  17077. msm_routing_put_port_mixer),
  17078. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17079. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17080. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17081. msm_routing_get_port_mixer,
  17082. msm_routing_put_port_mixer),
  17083. };
  17084. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  17085. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17086. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17087. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17088. msm_routing_get_port_mixer,
  17089. msm_routing_put_port_mixer),
  17090. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17091. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17092. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17093. msm_routing_get_port_mixer,
  17094. msm_routing_put_port_mixer),
  17095. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17097. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17098. msm_routing_get_port_mixer,
  17099. msm_routing_put_port_mixer),
  17100. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17101. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17102. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17103. msm_routing_get_port_mixer,
  17104. msm_routing_put_port_mixer),
  17105. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17106. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17107. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17108. msm_routing_get_port_mixer,
  17109. msm_routing_put_port_mixer),
  17110. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17111. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17112. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17113. msm_routing_get_port_mixer,
  17114. msm_routing_put_port_mixer),
  17115. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17116. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17117. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17118. msm_routing_get_port_mixer,
  17119. msm_routing_put_port_mixer),
  17120. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17121. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17122. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17123. msm_routing_get_port_mixer,
  17124. msm_routing_put_port_mixer),
  17125. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17127. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17128. msm_routing_get_port_mixer,
  17129. msm_routing_put_port_mixer),
  17130. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17131. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17132. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17133. msm_routing_get_port_mixer,
  17134. msm_routing_put_port_mixer),
  17135. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17136. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17137. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17138. msm_routing_get_port_mixer,
  17139. msm_routing_put_port_mixer),
  17140. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17141. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17142. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17143. msm_routing_get_port_mixer,
  17144. msm_routing_put_port_mixer),
  17145. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17147. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17148. msm_routing_get_port_mixer,
  17149. msm_routing_put_port_mixer),
  17150. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17151. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17152. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17153. msm_routing_get_port_mixer,
  17154. msm_routing_put_port_mixer),
  17155. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17156. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17157. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17158. msm_routing_get_port_mixer,
  17159. msm_routing_put_port_mixer),
  17160. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17162. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17163. msm_routing_get_port_mixer,
  17164. msm_routing_put_port_mixer),
  17165. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17167. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17168. msm_routing_get_port_mixer,
  17169. msm_routing_put_port_mixer),
  17170. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17171. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17172. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17173. msm_routing_get_port_mixer,
  17174. msm_routing_put_port_mixer),
  17175. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17177. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17178. msm_routing_get_port_mixer,
  17179. msm_routing_put_port_mixer),
  17180. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17181. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17182. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17183. msm_routing_get_port_mixer,
  17184. msm_routing_put_port_mixer),
  17185. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17186. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17187. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17188. msm_routing_get_port_mixer,
  17189. msm_routing_put_port_mixer),
  17190. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17191. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17192. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17193. msm_routing_get_port_mixer,
  17194. msm_routing_put_port_mixer),
  17195. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17197. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17198. msm_routing_get_port_mixer,
  17199. msm_routing_put_port_mixer),
  17200. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17202. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17203. msm_routing_get_port_mixer,
  17204. msm_routing_put_port_mixer),
  17205. };
  17206. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  17207. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  17209. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  17210. msm_routing_get_port_mixer,
  17211. msm_routing_put_port_mixer),
  17212. };
  17213. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  17214. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17215. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17216. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17217. msm_routing_get_port_mixer,
  17218. msm_routing_put_port_mixer),
  17219. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17220. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17221. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17222. msm_routing_get_port_mixer,
  17223. msm_routing_put_port_mixer),
  17224. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17225. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17226. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17227. msm_routing_get_port_mixer,
  17228. msm_routing_put_port_mixer),
  17229. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17230. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17231. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17232. msm_routing_get_port_mixer,
  17233. msm_routing_put_port_mixer),
  17234. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17235. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17236. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17237. msm_routing_get_port_mixer,
  17238. msm_routing_put_port_mixer),
  17239. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17240. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17241. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17242. msm_routing_get_port_mixer,
  17243. msm_routing_put_port_mixer),
  17244. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17245. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17246. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17247. msm_routing_get_port_mixer,
  17248. msm_routing_put_port_mixer),
  17249. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17250. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17251. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17252. msm_routing_get_port_mixer,
  17253. msm_routing_put_port_mixer),
  17254. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17255. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17256. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17257. msm_routing_get_port_mixer,
  17258. msm_routing_put_port_mixer),
  17259. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17261. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17262. msm_routing_get_port_mixer,
  17263. msm_routing_put_port_mixer),
  17264. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17265. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17266. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17267. msm_routing_get_port_mixer,
  17268. msm_routing_put_port_mixer),
  17269. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17270. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17271. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17272. msm_routing_get_port_mixer,
  17273. msm_routing_put_port_mixer),
  17274. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17275. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17276. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17277. msm_routing_get_port_mixer,
  17278. msm_routing_put_port_mixer),
  17279. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17280. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17281. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17282. msm_routing_get_port_mixer,
  17283. msm_routing_put_port_mixer),
  17284. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17286. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17287. msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17291. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17292. msm_routing_get_port_mixer,
  17293. msm_routing_put_port_mixer),
  17294. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17295. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17296. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17297. msm_routing_get_port_mixer,
  17298. msm_routing_put_port_mixer),
  17299. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17301. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17302. msm_routing_get_port_mixer,
  17303. msm_routing_put_port_mixer),
  17304. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17305. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17306. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17307. msm_routing_get_port_mixer,
  17308. msm_routing_put_port_mixer),
  17309. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17311. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17312. msm_routing_get_port_mixer,
  17313. msm_routing_put_port_mixer),
  17314. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17316. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17317. msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17320. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17321. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17322. msm_routing_get_port_mixer,
  17323. msm_routing_put_port_mixer),
  17324. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17325. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17326. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17327. msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17331. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17332. msm_routing_get_port_mixer,
  17333. msm_routing_put_port_mixer),
  17334. };
  17335. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  17336. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17337. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17338. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17339. msm_routing_get_port_mixer,
  17340. msm_routing_put_port_mixer),
  17341. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17342. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17343. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17344. msm_routing_get_port_mixer,
  17345. msm_routing_put_port_mixer),
  17346. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17347. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17348. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17349. msm_routing_get_port_mixer,
  17350. msm_routing_put_port_mixer),
  17351. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17352. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17353. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17354. msm_routing_get_port_mixer,
  17355. msm_routing_put_port_mixer),
  17356. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17357. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17358. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17359. msm_routing_get_port_mixer,
  17360. msm_routing_put_port_mixer),
  17361. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17363. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17364. msm_routing_get_port_mixer,
  17365. msm_routing_put_port_mixer),
  17366. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17367. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17368. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17369. msm_routing_get_port_mixer,
  17370. msm_routing_put_port_mixer),
  17371. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17372. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17373. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17374. msm_routing_get_port_mixer,
  17375. msm_routing_put_port_mixer),
  17376. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17377. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17378. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17379. msm_routing_get_port_mixer,
  17380. msm_routing_put_port_mixer),
  17381. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17382. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17383. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17384. msm_routing_get_port_mixer,
  17385. msm_routing_put_port_mixer),
  17386. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17387. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17388. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17389. msm_routing_get_port_mixer,
  17390. msm_routing_put_port_mixer),
  17391. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17392. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17393. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17394. msm_routing_get_port_mixer,
  17395. msm_routing_put_port_mixer),
  17396. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17397. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17398. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17399. msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17402. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17403. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17404. msm_routing_get_port_mixer,
  17405. msm_routing_put_port_mixer),
  17406. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17407. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17408. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17409. msm_routing_get_port_mixer,
  17410. msm_routing_put_port_mixer),
  17411. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17413. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17414. msm_routing_get_port_mixer,
  17415. msm_routing_put_port_mixer),
  17416. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17417. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17418. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17419. msm_routing_get_port_mixer,
  17420. msm_routing_put_port_mixer),
  17421. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17422. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17423. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17424. msm_routing_get_port_mixer,
  17425. msm_routing_put_port_mixer),
  17426. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17427. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17428. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17429. msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17433. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17434. msm_routing_get_port_mixer,
  17435. msm_routing_put_port_mixer),
  17436. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17437. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17438. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17439. msm_routing_get_port_mixer,
  17440. msm_routing_put_port_mixer),
  17441. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17442. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17443. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17444. msm_routing_get_port_mixer,
  17445. msm_routing_put_port_mixer),
  17446. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17447. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17448. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17449. msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17453. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17454. msm_routing_get_port_mixer,
  17455. msm_routing_put_port_mixer),
  17456. };
  17457. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  17458. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17459. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17460. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17461. msm_routing_get_port_mixer,
  17462. msm_routing_put_port_mixer),
  17463. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17464. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17465. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17466. msm_routing_get_port_mixer,
  17467. msm_routing_put_port_mixer),
  17468. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17469. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17470. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17471. msm_routing_get_port_mixer,
  17472. msm_routing_put_port_mixer),
  17473. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17475. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17476. msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17480. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17481. msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17485. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17486. msm_routing_get_port_mixer,
  17487. msm_routing_put_port_mixer),
  17488. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17489. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17490. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17491. msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17495. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17496. msm_routing_get_port_mixer,
  17497. msm_routing_put_port_mixer),
  17498. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17500. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17501. msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17505. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17506. msm_routing_get_port_mixer,
  17507. msm_routing_put_port_mixer),
  17508. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17509. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17510. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17511. msm_routing_get_port_mixer,
  17512. msm_routing_put_port_mixer),
  17513. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17515. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17516. msm_routing_get_port_mixer,
  17517. msm_routing_put_port_mixer),
  17518. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17520. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17521. msm_routing_get_port_mixer,
  17522. msm_routing_put_port_mixer),
  17523. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17524. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17525. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17526. msm_routing_get_port_mixer,
  17527. msm_routing_put_port_mixer),
  17528. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17529. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17530. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17531. msm_routing_get_port_mixer,
  17532. msm_routing_put_port_mixer),
  17533. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17535. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17536. msm_routing_get_port_mixer,
  17537. msm_routing_put_port_mixer),
  17538. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17540. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17541. msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17545. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17546. msm_routing_get_port_mixer,
  17547. msm_routing_put_port_mixer),
  17548. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17549. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17550. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17551. msm_routing_get_port_mixer,
  17552. msm_routing_put_port_mixer),
  17553. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17555. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17556. msm_routing_get_port_mixer,
  17557. msm_routing_put_port_mixer),
  17558. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17559. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17560. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17561. msm_routing_get_port_mixer,
  17562. msm_routing_put_port_mixer),
  17563. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17564. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17565. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17566. msm_routing_get_port_mixer,
  17567. msm_routing_put_port_mixer),
  17568. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17570. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17571. msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17574. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17575. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17576. msm_routing_get_port_mixer,
  17577. msm_routing_put_port_mixer),
  17578. };
  17579. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  17580. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17581. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17582. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17583. msm_routing_get_port_mixer,
  17584. msm_routing_put_port_mixer),
  17585. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17586. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17587. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17588. msm_routing_get_port_mixer,
  17589. msm_routing_put_port_mixer),
  17590. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17591. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17592. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17593. msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17597. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17598. msm_routing_get_port_mixer,
  17599. msm_routing_put_port_mixer),
  17600. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17601. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17602. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17603. msm_routing_get_port_mixer,
  17604. msm_routing_put_port_mixer),
  17605. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17606. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17607. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17608. msm_routing_get_port_mixer,
  17609. msm_routing_put_port_mixer),
  17610. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17611. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17612. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17613. msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17617. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17618. msm_routing_get_port_mixer,
  17619. msm_routing_put_port_mixer),
  17620. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17621. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17622. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17623. msm_routing_get_port_mixer,
  17624. msm_routing_put_port_mixer),
  17625. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17627. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17628. msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17631. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17632. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17633. msm_routing_get_port_mixer,
  17634. msm_routing_put_port_mixer),
  17635. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17636. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17637. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17638. msm_routing_get_port_mixer,
  17639. msm_routing_put_port_mixer),
  17640. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17641. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17642. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17643. msm_routing_get_port_mixer,
  17644. msm_routing_put_port_mixer),
  17645. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17646. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17647. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17648. msm_routing_get_port_mixer,
  17649. msm_routing_put_port_mixer),
  17650. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17651. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17652. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17653. msm_routing_get_port_mixer,
  17654. msm_routing_put_port_mixer),
  17655. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17656. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17657. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17658. msm_routing_get_port_mixer,
  17659. msm_routing_put_port_mixer),
  17660. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17661. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17662. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17663. msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17666. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17667. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17668. msm_routing_get_port_mixer,
  17669. msm_routing_put_port_mixer),
  17670. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17671. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17672. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17673. msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17677. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17678. msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17681. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17682. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17683. msm_routing_get_port_mixer,
  17684. msm_routing_put_port_mixer),
  17685. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17686. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17687. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17688. msm_routing_get_port_mixer,
  17689. msm_routing_put_port_mixer),
  17690. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17691. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17692. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17693. msm_routing_get_port_mixer,
  17694. msm_routing_put_port_mixer),
  17695. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17696. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17697. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17698. msm_routing_get_port_mixer,
  17699. msm_routing_put_port_mixer),
  17700. };
  17701. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  17702. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17704. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17705. msm_routing_get_port_mixer,
  17706. msm_routing_put_port_mixer),
  17707. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17709. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17710. msm_routing_get_port_mixer,
  17711. msm_routing_put_port_mixer),
  17712. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17714. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17715. msm_routing_get_port_mixer,
  17716. msm_routing_put_port_mixer),
  17717. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17718. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17719. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17720. msm_routing_get_port_mixer,
  17721. msm_routing_put_port_mixer),
  17722. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17723. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17724. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17725. msm_routing_get_port_mixer,
  17726. msm_routing_put_port_mixer),
  17727. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17728. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17729. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17730. msm_routing_get_port_mixer,
  17731. msm_routing_put_port_mixer),
  17732. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17733. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17734. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17735. msm_routing_get_port_mixer,
  17736. msm_routing_put_port_mixer),
  17737. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17738. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17739. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17740. msm_routing_get_port_mixer,
  17741. msm_routing_put_port_mixer),
  17742. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17743. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17744. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17745. msm_routing_get_port_mixer,
  17746. msm_routing_put_port_mixer),
  17747. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17748. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17749. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17750. msm_routing_get_port_mixer,
  17751. msm_routing_put_port_mixer),
  17752. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17753. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17754. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17755. msm_routing_get_port_mixer,
  17756. msm_routing_put_port_mixer),
  17757. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17758. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17759. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17760. msm_routing_get_port_mixer,
  17761. msm_routing_put_port_mixer),
  17762. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17763. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17764. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17765. msm_routing_get_port_mixer,
  17766. msm_routing_put_port_mixer),
  17767. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17768. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17769. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17770. msm_routing_get_port_mixer,
  17771. msm_routing_put_port_mixer),
  17772. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17773. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17774. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17775. msm_routing_get_port_mixer,
  17776. msm_routing_put_port_mixer),
  17777. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17779. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17780. msm_routing_get_port_mixer,
  17781. msm_routing_put_port_mixer),
  17782. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17783. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17784. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17785. msm_routing_get_port_mixer,
  17786. msm_routing_put_port_mixer),
  17787. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17788. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17789. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17790. msm_routing_get_port_mixer,
  17791. msm_routing_put_port_mixer),
  17792. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17793. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17794. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17795. msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17799. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17800. msm_routing_get_port_mixer,
  17801. msm_routing_put_port_mixer),
  17802. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17803. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17804. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17805. msm_routing_get_port_mixer,
  17806. msm_routing_put_port_mixer),
  17807. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17808. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17809. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17810. msm_routing_get_port_mixer,
  17811. msm_routing_put_port_mixer),
  17812. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17813. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17814. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17815. msm_routing_get_port_mixer,
  17816. msm_routing_put_port_mixer),
  17817. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17818. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17819. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17820. msm_routing_get_port_mixer,
  17821. msm_routing_put_port_mixer),
  17822. };
  17823. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  17824. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17826. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17827. msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17830. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17831. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17832. msm_routing_get_port_mixer,
  17833. msm_routing_put_port_mixer),
  17834. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17835. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17836. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17837. msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17841. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17842. msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17846. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17847. msm_routing_get_port_mixer,
  17848. msm_routing_put_port_mixer),
  17849. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17850. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17851. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17852. msm_routing_get_port_mixer,
  17853. msm_routing_put_port_mixer),
  17854. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17855. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17856. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17857. msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17860. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17861. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17862. msm_routing_get_port_mixer,
  17863. msm_routing_put_port_mixer),
  17864. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17865. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17866. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17867. msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17871. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17872. msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17875. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17876. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17877. msm_routing_get_port_mixer,
  17878. msm_routing_put_port_mixer),
  17879. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17880. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17881. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17882. msm_routing_get_port_mixer,
  17883. msm_routing_put_port_mixer),
  17884. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17886. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17887. msm_routing_get_port_mixer,
  17888. msm_routing_put_port_mixer),
  17889. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17890. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17891. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17892. msm_routing_get_port_mixer,
  17893. msm_routing_put_port_mixer),
  17894. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17895. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17896. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17897. msm_routing_get_port_mixer,
  17898. msm_routing_put_port_mixer),
  17899. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17900. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17901. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17902. msm_routing_get_port_mixer,
  17903. msm_routing_put_port_mixer),
  17904. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17905. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17906. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17907. msm_routing_get_port_mixer,
  17908. msm_routing_put_port_mixer),
  17909. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17910. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17911. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17912. msm_routing_get_port_mixer,
  17913. msm_routing_put_port_mixer),
  17914. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17915. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17916. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17917. msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17920. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17921. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17922. msm_routing_get_port_mixer,
  17923. msm_routing_put_port_mixer),
  17924. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17925. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17926. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17927. msm_routing_get_port_mixer,
  17928. msm_routing_put_port_mixer),
  17929. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17930. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17931. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17932. msm_routing_get_port_mixer,
  17933. msm_routing_put_port_mixer),
  17934. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17935. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17936. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17937. msm_routing_get_port_mixer,
  17938. msm_routing_put_port_mixer),
  17939. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17940. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17941. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17942. msm_routing_get_port_mixer,
  17943. msm_routing_put_port_mixer),
  17944. };
  17945. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  17946. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17948. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17949. msm_routing_get_port_mixer,
  17950. msm_routing_put_port_mixer),
  17951. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17953. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17954. msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17958. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17959. msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17963. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17964. msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17967. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17968. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17969. msm_routing_get_port_mixer,
  17970. msm_routing_put_port_mixer),
  17971. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17972. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17973. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17974. msm_routing_get_port_mixer,
  17975. msm_routing_put_port_mixer),
  17976. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17977. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17978. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17979. msm_routing_get_port_mixer,
  17980. msm_routing_put_port_mixer),
  17981. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17982. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17983. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17984. msm_routing_get_port_mixer,
  17985. msm_routing_put_port_mixer),
  17986. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17987. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17988. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17989. msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17993. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17994. msm_routing_get_port_mixer,
  17995. msm_routing_put_port_mixer),
  17996. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17998. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17999. msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18002. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18003. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18004. msm_routing_get_port_mixer,
  18005. msm_routing_put_port_mixer),
  18006. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18008. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18013. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18018. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18023. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18028. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18033. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18038. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18043. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18048. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18049. msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18053. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18054. msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18057. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18058. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18059. msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18062. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18063. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18064. msm_routing_get_port_mixer,
  18065. msm_routing_put_port_mixer),
  18066. };
  18067. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  18068. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18069. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18070. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18071. msm_routing_get_port_mixer,
  18072. msm_routing_put_port_mixer),
  18073. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18074. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18075. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18076. msm_routing_get_port_mixer,
  18077. msm_routing_put_port_mixer),
  18078. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18079. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18080. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18081. msm_routing_get_port_mixer,
  18082. msm_routing_put_port_mixer),
  18083. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18084. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18085. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18086. msm_routing_get_port_mixer,
  18087. msm_routing_put_port_mixer),
  18088. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18089. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18090. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18091. msm_routing_get_port_mixer,
  18092. msm_routing_put_port_mixer),
  18093. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18094. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18095. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18096. msm_routing_get_port_mixer,
  18097. msm_routing_put_port_mixer),
  18098. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18099. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18100. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18101. msm_routing_get_port_mixer,
  18102. msm_routing_put_port_mixer),
  18103. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18104. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18105. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18106. msm_routing_get_port_mixer,
  18107. msm_routing_put_port_mixer),
  18108. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18110. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18111. msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18115. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18116. msm_routing_get_port_mixer,
  18117. msm_routing_put_port_mixer),
  18118. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18119. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18120. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18121. msm_routing_get_port_mixer,
  18122. msm_routing_put_port_mixer),
  18123. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18124. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18125. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18126. msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18130. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18135. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18140. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18145. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18150. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18155. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18160. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18165. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18170. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18171. msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18175. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18176. msm_routing_get_port_mixer,
  18177. msm_routing_put_port_mixer),
  18178. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18179. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18180. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18181. msm_routing_get_port_mixer,
  18182. msm_routing_put_port_mixer),
  18183. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18184. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18185. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18186. msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. };
  18189. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  18190. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18191. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18192. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18193. msm_routing_get_port_mixer,
  18194. msm_routing_put_port_mixer),
  18195. };
  18196. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  18197. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18198. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18199. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18200. msm_routing_get_port_mixer,
  18201. msm_routing_put_port_mixer),
  18202. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18203. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18204. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18205. msm_routing_get_port_mixer,
  18206. msm_routing_put_port_mixer),
  18207. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18208. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18209. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18210. msm_routing_get_port_mixer,
  18211. msm_routing_put_port_mixer),
  18212. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18213. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18214. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18215. msm_routing_get_port_mixer,
  18216. msm_routing_put_port_mixer),
  18217. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18218. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18219. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18220. msm_routing_get_port_mixer,
  18221. msm_routing_put_port_mixer),
  18222. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18223. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18224. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18225. msm_routing_get_port_mixer,
  18226. msm_routing_put_port_mixer),
  18227. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18228. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18229. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18230. msm_routing_get_port_mixer,
  18231. msm_routing_put_port_mixer),
  18232. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18233. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18234. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18235. msm_routing_get_port_mixer,
  18236. msm_routing_put_port_mixer),
  18237. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18238. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18239. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18240. msm_routing_get_port_mixer,
  18241. msm_routing_put_port_mixer),
  18242. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18243. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18244. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18245. msm_routing_get_port_mixer,
  18246. msm_routing_put_port_mixer),
  18247. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18248. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18249. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18250. msm_routing_get_port_mixer,
  18251. msm_routing_put_port_mixer),
  18252. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18253. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18254. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18255. msm_routing_get_port_mixer,
  18256. msm_routing_put_port_mixer),
  18257. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18258. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18259. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18260. msm_routing_get_port_mixer,
  18261. msm_routing_put_port_mixer),
  18262. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18263. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18264. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18265. msm_routing_get_port_mixer,
  18266. msm_routing_put_port_mixer),
  18267. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18268. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18269. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18270. msm_routing_get_port_mixer,
  18271. msm_routing_put_port_mixer),
  18272. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18273. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18274. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18275. msm_routing_get_port_mixer,
  18276. msm_routing_put_port_mixer),
  18277. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18278. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18279. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18280. msm_routing_get_port_mixer,
  18281. msm_routing_put_port_mixer),
  18282. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18283. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18284. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18285. msm_routing_get_port_mixer,
  18286. msm_routing_put_port_mixer),
  18287. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18288. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18289. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18290. msm_routing_get_port_mixer,
  18291. msm_routing_put_port_mixer),
  18292. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18293. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18294. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18295. msm_routing_get_port_mixer,
  18296. msm_routing_put_port_mixer),
  18297. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18298. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18299. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18300. msm_routing_get_port_mixer,
  18301. msm_routing_put_port_mixer),
  18302. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18303. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18304. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18305. msm_routing_get_port_mixer,
  18306. msm_routing_put_port_mixer),
  18307. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18308. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18309. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18310. msm_routing_get_port_mixer,
  18311. msm_routing_put_port_mixer),
  18312. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18313. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18314. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18315. msm_routing_get_port_mixer,
  18316. msm_routing_put_port_mixer),
  18317. };
  18318. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  18319. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18320. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18321. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18322. msm_routing_get_port_mixer,
  18323. msm_routing_put_port_mixer),
  18324. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18325. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18326. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18327. msm_routing_get_port_mixer,
  18328. msm_routing_put_port_mixer),
  18329. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18330. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18331. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18332. msm_routing_get_port_mixer,
  18333. msm_routing_put_port_mixer),
  18334. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18335. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18336. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18337. msm_routing_get_port_mixer,
  18338. msm_routing_put_port_mixer),
  18339. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18340. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18341. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18342. msm_routing_get_port_mixer,
  18343. msm_routing_put_port_mixer),
  18344. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18345. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18346. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18347. msm_routing_get_port_mixer,
  18348. msm_routing_put_port_mixer),
  18349. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18350. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18351. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18352. msm_routing_get_port_mixer,
  18353. msm_routing_put_port_mixer),
  18354. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18355. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18356. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18357. msm_routing_get_port_mixer,
  18358. msm_routing_put_port_mixer),
  18359. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18360. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18361. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18362. msm_routing_get_port_mixer,
  18363. msm_routing_put_port_mixer),
  18364. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18365. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18366. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18367. msm_routing_get_port_mixer,
  18368. msm_routing_put_port_mixer),
  18369. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18370. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18371. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18372. msm_routing_get_port_mixer,
  18373. msm_routing_put_port_mixer),
  18374. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18375. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18376. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18377. msm_routing_get_port_mixer,
  18378. msm_routing_put_port_mixer),
  18379. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18380. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18381. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18382. msm_routing_get_port_mixer,
  18383. msm_routing_put_port_mixer),
  18384. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18385. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18386. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18387. msm_routing_get_port_mixer,
  18388. msm_routing_put_port_mixer),
  18389. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18390. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18391. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18392. msm_routing_get_port_mixer,
  18393. msm_routing_put_port_mixer),
  18394. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18395. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18396. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18397. msm_routing_get_port_mixer,
  18398. msm_routing_put_port_mixer),
  18399. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18400. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18401. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18402. msm_routing_get_port_mixer,
  18403. msm_routing_put_port_mixer),
  18404. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18405. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18406. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18407. msm_routing_get_port_mixer,
  18408. msm_routing_put_port_mixer),
  18409. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18410. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18411. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18412. msm_routing_get_port_mixer,
  18413. msm_routing_put_port_mixer),
  18414. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18415. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18416. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18417. msm_routing_get_port_mixer,
  18418. msm_routing_put_port_mixer),
  18419. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18420. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18421. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18422. msm_routing_get_port_mixer,
  18423. msm_routing_put_port_mixer),
  18424. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18425. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18426. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18427. msm_routing_get_port_mixer,
  18428. msm_routing_put_port_mixer),
  18429. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18430. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18431. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18432. msm_routing_get_port_mixer,
  18433. msm_routing_put_port_mixer),
  18434. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18435. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18436. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18437. msm_routing_get_port_mixer,
  18438. msm_routing_put_port_mixer),
  18439. };
  18440. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  18441. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18442. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18443. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18444. msm_routing_get_port_mixer,
  18445. msm_routing_put_port_mixer),
  18446. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18447. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18448. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18449. msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18453. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18454. msm_routing_get_port_mixer,
  18455. msm_routing_put_port_mixer),
  18456. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18458. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18463. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18467. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18468. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18469. msm_routing_get_port_mixer,
  18470. msm_routing_put_port_mixer),
  18471. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18472. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18473. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18474. msm_routing_get_port_mixer,
  18475. msm_routing_put_port_mixer),
  18476. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18477. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18478. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18479. msm_routing_get_port_mixer,
  18480. msm_routing_put_port_mixer),
  18481. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18483. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18484. msm_routing_get_port_mixer,
  18485. msm_routing_put_port_mixer),
  18486. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18487. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18488. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18489. msm_routing_get_port_mixer,
  18490. msm_routing_put_port_mixer),
  18491. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18492. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18493. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18494. msm_routing_get_port_mixer,
  18495. msm_routing_put_port_mixer),
  18496. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18497. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18498. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18499. msm_routing_get_port_mixer,
  18500. msm_routing_put_port_mixer),
  18501. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18502. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18503. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18504. msm_routing_get_port_mixer,
  18505. msm_routing_put_port_mixer),
  18506. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18507. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18508. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18509. msm_routing_get_port_mixer,
  18510. msm_routing_put_port_mixer),
  18511. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18512. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18513. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18514. msm_routing_get_port_mixer,
  18515. msm_routing_put_port_mixer),
  18516. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18517. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18518. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18519. msm_routing_get_port_mixer,
  18520. msm_routing_put_port_mixer),
  18521. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18522. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18523. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18524. msm_routing_get_port_mixer,
  18525. msm_routing_put_port_mixer),
  18526. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18527. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18528. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18529. msm_routing_get_port_mixer,
  18530. msm_routing_put_port_mixer),
  18531. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18532. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18533. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18534. msm_routing_get_port_mixer,
  18535. msm_routing_put_port_mixer),
  18536. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18537. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18538. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18539. msm_routing_get_port_mixer,
  18540. msm_routing_put_port_mixer),
  18541. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18542. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18543. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18544. msm_routing_get_port_mixer,
  18545. msm_routing_put_port_mixer),
  18546. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18547. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18548. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18549. msm_routing_get_port_mixer,
  18550. msm_routing_put_port_mixer),
  18551. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18552. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18553. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18554. msm_routing_get_port_mixer,
  18555. msm_routing_put_port_mixer),
  18556. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18557. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18558. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18559. msm_routing_get_port_mixer,
  18560. msm_routing_put_port_mixer),
  18561. };
  18562. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  18563. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18564. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18565. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18566. msm_routing_get_port_mixer,
  18567. msm_routing_put_port_mixer),
  18568. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18570. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18571. msm_routing_get_port_mixer,
  18572. msm_routing_put_port_mixer),
  18573. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18574. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18575. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18576. msm_routing_get_port_mixer,
  18577. msm_routing_put_port_mixer),
  18578. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18580. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18585. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18586. msm_routing_get_port_mixer,
  18587. msm_routing_put_port_mixer),
  18588. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18589. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18590. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18591. msm_routing_get_port_mixer,
  18592. msm_routing_put_port_mixer),
  18593. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18594. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18595. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18596. msm_routing_get_port_mixer,
  18597. msm_routing_put_port_mixer),
  18598. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18599. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18600. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18601. msm_routing_get_port_mixer,
  18602. msm_routing_put_port_mixer),
  18603. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18604. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18605. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18606. msm_routing_get_port_mixer,
  18607. msm_routing_put_port_mixer),
  18608. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18609. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18610. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18611. msm_routing_get_port_mixer,
  18612. msm_routing_put_port_mixer),
  18613. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18614. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18615. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18616. msm_routing_get_port_mixer,
  18617. msm_routing_put_port_mixer),
  18618. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18619. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18620. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18621. msm_routing_get_port_mixer,
  18622. msm_routing_put_port_mixer),
  18623. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18624. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18625. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18626. msm_routing_get_port_mixer,
  18627. msm_routing_put_port_mixer),
  18628. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18629. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18630. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18631. msm_routing_get_port_mixer,
  18632. msm_routing_put_port_mixer),
  18633. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18634. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18635. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18636. msm_routing_get_port_mixer,
  18637. msm_routing_put_port_mixer),
  18638. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18639. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18640. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18641. msm_routing_get_port_mixer,
  18642. msm_routing_put_port_mixer),
  18643. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18644. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18645. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18646. msm_routing_get_port_mixer,
  18647. msm_routing_put_port_mixer),
  18648. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18649. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18650. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18651. msm_routing_get_port_mixer,
  18652. msm_routing_put_port_mixer),
  18653. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18654. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18655. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18656. msm_routing_get_port_mixer,
  18657. msm_routing_put_port_mixer),
  18658. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18659. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18660. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18661. msm_routing_get_port_mixer,
  18662. msm_routing_put_port_mixer),
  18663. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18664. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18665. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18666. msm_routing_get_port_mixer,
  18667. msm_routing_put_port_mixer),
  18668. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18669. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18670. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18671. msm_routing_get_port_mixer,
  18672. msm_routing_put_port_mixer),
  18673. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18674. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18675. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18676. msm_routing_get_port_mixer,
  18677. msm_routing_put_port_mixer),
  18678. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18679. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18680. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18681. msm_routing_get_port_mixer,
  18682. msm_routing_put_port_mixer),
  18683. };
  18684. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  18685. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18687. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18692. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18697. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18702. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18707. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18708. msm_routing_get_port_mixer,
  18709. msm_routing_put_port_mixer),
  18710. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18711. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18712. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18713. msm_routing_get_port_mixer,
  18714. msm_routing_put_port_mixer),
  18715. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18716. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18717. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18718. msm_routing_get_port_mixer,
  18719. msm_routing_put_port_mixer),
  18720. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18721. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18722. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18723. msm_routing_get_port_mixer,
  18724. msm_routing_put_port_mixer),
  18725. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18726. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18727. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18728. msm_routing_get_port_mixer,
  18729. msm_routing_put_port_mixer),
  18730. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18731. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18732. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18733. msm_routing_get_port_mixer,
  18734. msm_routing_put_port_mixer),
  18735. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18736. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18737. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18738. msm_routing_get_port_mixer,
  18739. msm_routing_put_port_mixer),
  18740. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18741. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18742. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18743. msm_routing_get_port_mixer,
  18744. msm_routing_put_port_mixer),
  18745. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18746. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18747. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18748. msm_routing_get_port_mixer,
  18749. msm_routing_put_port_mixer),
  18750. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18751. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18752. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18753. msm_routing_get_port_mixer,
  18754. msm_routing_put_port_mixer),
  18755. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18756. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18757. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18758. msm_routing_get_port_mixer,
  18759. msm_routing_put_port_mixer),
  18760. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18761. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18762. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18763. msm_routing_get_port_mixer,
  18764. msm_routing_put_port_mixer),
  18765. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18766. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18767. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18768. msm_routing_get_port_mixer,
  18769. msm_routing_put_port_mixer),
  18770. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18771. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18772. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18773. msm_routing_get_port_mixer,
  18774. msm_routing_put_port_mixer),
  18775. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18776. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18777. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18778. msm_routing_get_port_mixer,
  18779. msm_routing_put_port_mixer),
  18780. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18781. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18782. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18783. msm_routing_get_port_mixer,
  18784. msm_routing_put_port_mixer),
  18785. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18786. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18787. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18788. msm_routing_get_port_mixer,
  18789. msm_routing_put_port_mixer),
  18790. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18791. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18792. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18793. msm_routing_get_port_mixer,
  18794. msm_routing_put_port_mixer),
  18795. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18796. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18797. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18798. msm_routing_get_port_mixer,
  18799. msm_routing_put_port_mixer),
  18800. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18801. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  18802. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18803. msm_routing_get_port_mixer,
  18804. msm_routing_put_port_mixer),
  18805. };
  18806. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  18807. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18809. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18814. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18819. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18824. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18828. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18829. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18830. msm_routing_get_port_mixer,
  18831. msm_routing_put_port_mixer),
  18832. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18834. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18835. msm_routing_get_port_mixer,
  18836. msm_routing_put_port_mixer),
  18837. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18838. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18839. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18840. msm_routing_get_port_mixer,
  18841. msm_routing_put_port_mixer),
  18842. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18843. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18844. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18845. msm_routing_get_port_mixer,
  18846. msm_routing_put_port_mixer),
  18847. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18848. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18849. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18850. msm_routing_get_port_mixer,
  18851. msm_routing_put_port_mixer),
  18852. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18853. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18854. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18855. msm_routing_get_port_mixer,
  18856. msm_routing_put_port_mixer),
  18857. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18858. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18859. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18860. msm_routing_get_port_mixer,
  18861. msm_routing_put_port_mixer),
  18862. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18863. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18864. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18865. msm_routing_get_port_mixer,
  18866. msm_routing_put_port_mixer),
  18867. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18868. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18869. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18870. msm_routing_get_port_mixer,
  18871. msm_routing_put_port_mixer),
  18872. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18873. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18874. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18875. msm_routing_get_port_mixer,
  18876. msm_routing_put_port_mixer),
  18877. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18878. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18879. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18880. msm_routing_get_port_mixer,
  18881. msm_routing_put_port_mixer),
  18882. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18883. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18884. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18885. msm_routing_get_port_mixer,
  18886. msm_routing_put_port_mixer),
  18887. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18888. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18889. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18890. msm_routing_get_port_mixer,
  18891. msm_routing_put_port_mixer),
  18892. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18893. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18894. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18895. msm_routing_get_port_mixer,
  18896. msm_routing_put_port_mixer),
  18897. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18898. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18899. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18900. msm_routing_get_port_mixer,
  18901. msm_routing_put_port_mixer),
  18902. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18903. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18904. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18905. msm_routing_get_port_mixer,
  18906. msm_routing_put_port_mixer),
  18907. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18908. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18909. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18910. msm_routing_get_port_mixer,
  18911. msm_routing_put_port_mixer),
  18912. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18913. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18914. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18915. msm_routing_get_port_mixer,
  18916. msm_routing_put_port_mixer),
  18917. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18918. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18919. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18920. msm_routing_get_port_mixer,
  18921. msm_routing_put_port_mixer),
  18922. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18923. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18924. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18925. msm_routing_get_port_mixer,
  18926. msm_routing_put_port_mixer),
  18927. };
  18928. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  18929. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18930. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18931. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18932. msm_routing_get_port_mixer,
  18933. msm_routing_put_port_mixer),
  18934. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18936. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18940. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18941. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18942. msm_routing_get_port_mixer,
  18943. msm_routing_put_port_mixer),
  18944. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18945. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18946. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18947. msm_routing_get_port_mixer,
  18948. msm_routing_put_port_mixer),
  18949. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18950. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18951. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18952. msm_routing_get_port_mixer,
  18953. msm_routing_put_port_mixer),
  18954. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18955. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18956. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18957. msm_routing_get_port_mixer,
  18958. msm_routing_put_port_mixer),
  18959. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18960. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18961. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18962. msm_routing_get_port_mixer,
  18963. msm_routing_put_port_mixer),
  18964. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18965. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18966. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18967. msm_routing_get_port_mixer,
  18968. msm_routing_put_port_mixer),
  18969. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18970. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18971. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18972. msm_routing_get_port_mixer,
  18973. msm_routing_put_port_mixer),
  18974. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18975. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18976. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18977. msm_routing_get_port_mixer,
  18978. msm_routing_put_port_mixer),
  18979. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18980. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18981. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18982. msm_routing_get_port_mixer,
  18983. msm_routing_put_port_mixer),
  18984. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18985. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18986. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18987. msm_routing_get_port_mixer,
  18988. msm_routing_put_port_mixer),
  18989. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18990. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18991. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18992. msm_routing_get_port_mixer,
  18993. msm_routing_put_port_mixer),
  18994. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18995. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18996. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18997. msm_routing_get_port_mixer,
  18998. msm_routing_put_port_mixer),
  18999. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19000. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19001. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19002. msm_routing_get_port_mixer,
  19003. msm_routing_put_port_mixer),
  19004. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19005. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19006. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19007. msm_routing_get_port_mixer,
  19008. msm_routing_put_port_mixer),
  19009. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19010. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19011. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19012. msm_routing_get_port_mixer,
  19013. msm_routing_put_port_mixer),
  19014. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19015. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19016. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19017. msm_routing_get_port_mixer,
  19018. msm_routing_put_port_mixer),
  19019. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19020. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19021. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19022. msm_routing_get_port_mixer,
  19023. msm_routing_put_port_mixer),
  19024. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19025. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19026. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19027. msm_routing_get_port_mixer,
  19028. msm_routing_put_port_mixer),
  19029. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19030. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19031. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19032. msm_routing_get_port_mixer,
  19033. msm_routing_put_port_mixer),
  19034. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19035. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19036. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19037. msm_routing_get_port_mixer,
  19038. msm_routing_put_port_mixer),
  19039. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19040. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19041. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19042. msm_routing_get_port_mixer,
  19043. msm_routing_put_port_mixer),
  19044. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19045. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19046. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19047. msm_routing_get_port_mixer,
  19048. msm_routing_put_port_mixer),
  19049. };
  19050. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  19051. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19052. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19053. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19054. msm_routing_get_port_mixer,
  19055. msm_routing_put_port_mixer),
  19056. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19057. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19058. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19059. msm_routing_get_port_mixer,
  19060. msm_routing_put_port_mixer),
  19061. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19062. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19063. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19064. msm_routing_get_port_mixer,
  19065. msm_routing_put_port_mixer),
  19066. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19067. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19068. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19069. msm_routing_get_port_mixer,
  19070. msm_routing_put_port_mixer),
  19071. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19072. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19073. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19074. msm_routing_get_port_mixer,
  19075. msm_routing_put_port_mixer),
  19076. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19077. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19078. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19079. msm_routing_get_port_mixer,
  19080. msm_routing_put_port_mixer),
  19081. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19082. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19083. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19084. msm_routing_get_port_mixer,
  19085. msm_routing_put_port_mixer),
  19086. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19087. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19088. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19089. msm_routing_get_port_mixer,
  19090. msm_routing_put_port_mixer),
  19091. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19092. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19093. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19094. msm_routing_get_port_mixer,
  19095. msm_routing_put_port_mixer),
  19096. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19097. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19098. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19099. msm_routing_get_port_mixer,
  19100. msm_routing_put_port_mixer),
  19101. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19102. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19103. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19104. msm_routing_get_port_mixer,
  19105. msm_routing_put_port_mixer),
  19106. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19107. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19108. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19109. msm_routing_get_port_mixer,
  19110. msm_routing_put_port_mixer),
  19111. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19112. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19113. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19114. msm_routing_get_port_mixer,
  19115. msm_routing_put_port_mixer),
  19116. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19117. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19118. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19119. msm_routing_get_port_mixer,
  19120. msm_routing_put_port_mixer),
  19121. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19122. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19123. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19124. msm_routing_get_port_mixer,
  19125. msm_routing_put_port_mixer),
  19126. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19127. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19128. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19129. msm_routing_get_port_mixer,
  19130. msm_routing_put_port_mixer),
  19131. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19132. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19133. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19134. msm_routing_get_port_mixer,
  19135. msm_routing_put_port_mixer),
  19136. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19137. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19138. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19139. msm_routing_get_port_mixer,
  19140. msm_routing_put_port_mixer),
  19141. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19142. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19143. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19144. msm_routing_get_port_mixer,
  19145. msm_routing_put_port_mixer),
  19146. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19147. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19148. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19149. msm_routing_get_port_mixer,
  19150. msm_routing_put_port_mixer),
  19151. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19152. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19153. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19154. msm_routing_get_port_mixer,
  19155. msm_routing_put_port_mixer),
  19156. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19157. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19158. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19159. msm_routing_get_port_mixer,
  19160. msm_routing_put_port_mixer),
  19161. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19162. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19163. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19164. msm_routing_get_port_mixer,
  19165. msm_routing_put_port_mixer),
  19166. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19167. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19168. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19169. msm_routing_get_port_mixer,
  19170. msm_routing_put_port_mixer),
  19171. };
  19172. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  19173. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19174. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19175. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19176. msm_routing_put_port_mixer),
  19177. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19178. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19179. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19180. msm_routing_put_port_mixer),
  19181. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19182. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19183. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19184. msm_routing_put_port_mixer),
  19185. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19186. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19187. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19188. msm_routing_put_port_mixer),
  19189. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19190. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19191. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19192. msm_routing_put_port_mixer),
  19193. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19194. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19195. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19196. msm_routing_put_port_mixer),
  19197. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19198. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19199. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19200. msm_routing_put_port_mixer),
  19201. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  19202. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19203. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  19204. msm_routing_put_port_mixer),
  19205. };
  19206. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  19207. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19208. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19209. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19210. msm_routing_put_port_mixer),
  19211. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19212. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19213. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19214. msm_routing_put_port_mixer),
  19215. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19216. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19217. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19218. msm_routing_put_port_mixer),
  19219. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19220. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19221. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19222. msm_routing_put_port_mixer),
  19223. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19224. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19225. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19226. msm_routing_put_port_mixer),
  19227. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19228. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19229. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19230. msm_routing_put_port_mixer),
  19231. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19232. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19233. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19234. msm_routing_put_port_mixer),
  19235. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19236. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19237. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  19238. msm_routing_put_port_mixer),
  19239. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  19240. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19241. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  19242. msm_routing_put_port_mixer),
  19243. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19244. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19245. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  19246. msm_routing_put_port_mixer),
  19247. };
  19248. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  19249. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19250. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19251. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19252. msm_routing_put_listen_mixer),
  19253. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19255. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19256. msm_routing_put_listen_mixer),
  19257. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19258. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19259. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19260. msm_routing_put_listen_mixer),
  19261. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19262. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19263. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19264. msm_routing_put_listen_mixer),
  19265. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19266. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19267. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19268. msm_routing_put_listen_mixer),
  19269. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19270. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19271. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19272. msm_routing_put_listen_mixer),
  19273. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19275. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19276. msm_routing_put_listen_mixer),
  19277. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19278. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19279. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19280. msm_routing_put_listen_mixer),
  19281. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19282. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19283. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19284. msm_routing_put_listen_mixer),
  19285. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19286. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19287. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19288. msm_routing_put_listen_mixer),
  19289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19291. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19292. msm_routing_put_listen_mixer),
  19293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19295. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19296. msm_routing_put_listen_mixer),
  19297. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19298. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19299. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19300. msm_routing_put_listen_mixer),
  19301. };
  19302. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  19303. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19304. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19305. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19306. msm_routing_put_listen_mixer),
  19307. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  19308. SND_SOC_NOPM,
  19309. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19310. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19311. msm_routing_put_listen_mixer),
  19312. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19313. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19314. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19315. msm_routing_put_listen_mixer),
  19316. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19317. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19318. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19319. msm_routing_put_listen_mixer),
  19320. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19321. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19322. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19323. msm_routing_put_listen_mixer),
  19324. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19325. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19326. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19327. msm_routing_put_listen_mixer),
  19328. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19329. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19330. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19331. msm_routing_put_listen_mixer),
  19332. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19333. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19334. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19335. msm_routing_put_listen_mixer),
  19336. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19337. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19338. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19339. msm_routing_put_listen_mixer),
  19340. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19341. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19342. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19343. msm_routing_put_listen_mixer),
  19344. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19345. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19346. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19347. msm_routing_put_listen_mixer),
  19348. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19349. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19350. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19351. msm_routing_put_listen_mixer),
  19352. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19353. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19354. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19355. msm_routing_put_listen_mixer),
  19356. };
  19357. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  19358. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19359. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19360. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19361. msm_routing_put_listen_mixer),
  19362. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19363. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19364. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19365. msm_routing_put_listen_mixer),
  19366. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19367. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19368. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19369. msm_routing_put_listen_mixer),
  19370. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19372. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19373. msm_routing_put_listen_mixer),
  19374. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19375. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19376. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19377. msm_routing_put_listen_mixer),
  19378. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19379. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19380. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19381. msm_routing_put_listen_mixer),
  19382. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19383. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19384. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19385. msm_routing_put_listen_mixer),
  19386. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19387. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19388. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19389. msm_routing_put_listen_mixer),
  19390. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19392. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19393. msm_routing_put_listen_mixer),
  19394. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19395. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19396. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19397. msm_routing_put_listen_mixer),
  19398. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19399. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19400. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19401. msm_routing_put_listen_mixer),
  19402. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19403. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19404. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19405. msm_routing_put_listen_mixer),
  19406. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19407. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19408. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19409. msm_routing_put_listen_mixer),
  19410. };
  19411. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  19412. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19413. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19414. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19415. msm_routing_put_listen_mixer),
  19416. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19417. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19418. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19419. msm_routing_put_listen_mixer),
  19420. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19421. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19422. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19423. msm_routing_put_listen_mixer),
  19424. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19425. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19426. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19427. msm_routing_put_listen_mixer),
  19428. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19429. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19430. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19431. msm_routing_put_listen_mixer),
  19432. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19433. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19434. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19435. msm_routing_put_listen_mixer),
  19436. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19437. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19438. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19439. msm_routing_put_listen_mixer),
  19440. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19441. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19442. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19443. msm_routing_put_listen_mixer),
  19444. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19446. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19447. msm_routing_put_listen_mixer),
  19448. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19449. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19450. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19451. msm_routing_put_listen_mixer),
  19452. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19453. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19454. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19455. msm_routing_put_listen_mixer),
  19456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19458. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19459. msm_routing_put_listen_mixer),
  19460. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19461. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19462. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19463. msm_routing_put_listen_mixer),
  19464. };
  19465. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  19466. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19467. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19468. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19469. msm_routing_put_listen_mixer),
  19470. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19471. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19472. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19473. msm_routing_put_listen_mixer),
  19474. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19475. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19476. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19477. msm_routing_put_listen_mixer),
  19478. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19479. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19480. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19481. msm_routing_put_listen_mixer),
  19482. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19483. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19484. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19485. msm_routing_put_listen_mixer),
  19486. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19487. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19488. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19489. msm_routing_put_listen_mixer),
  19490. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19491. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19492. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19493. msm_routing_put_listen_mixer),
  19494. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19495. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19496. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19497. msm_routing_put_listen_mixer),
  19498. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19499. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19500. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19501. msm_routing_put_listen_mixer),
  19502. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19503. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19504. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19505. msm_routing_put_listen_mixer),
  19506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19508. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19509. msm_routing_put_listen_mixer),
  19510. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19511. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19512. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19513. msm_routing_put_listen_mixer),
  19514. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19515. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19516. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19517. msm_routing_put_listen_mixer),
  19518. };
  19519. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  19520. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19521. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19522. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19523. msm_routing_put_listen_mixer),
  19524. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19525. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19526. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19527. msm_routing_put_listen_mixer),
  19528. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19529. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19530. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19531. msm_routing_put_listen_mixer),
  19532. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19533. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19534. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19535. msm_routing_put_listen_mixer),
  19536. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19537. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19538. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19539. msm_routing_put_listen_mixer),
  19540. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19541. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19542. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19543. msm_routing_put_listen_mixer),
  19544. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19545. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19546. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19547. msm_routing_put_listen_mixer),
  19548. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19549. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19550. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19551. msm_routing_put_listen_mixer),
  19552. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19553. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19554. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19555. msm_routing_put_listen_mixer),
  19556. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19557. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19558. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19559. msm_routing_put_listen_mixer),
  19560. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19561. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19562. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19563. msm_routing_put_listen_mixer),
  19564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19566. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19567. msm_routing_put_listen_mixer),
  19568. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19569. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19570. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19571. msm_routing_put_listen_mixer),
  19572. };
  19573. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  19574. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19575. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19576. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19577. msm_routing_put_listen_mixer),
  19578. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19579. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19580. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19581. msm_routing_put_listen_mixer),
  19582. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19583. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19584. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19585. msm_routing_put_listen_mixer),
  19586. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19587. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19588. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19589. msm_routing_put_listen_mixer),
  19590. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19591. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19592. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19593. msm_routing_put_listen_mixer),
  19594. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19595. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19596. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19597. msm_routing_put_listen_mixer),
  19598. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19599. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19600. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19601. msm_routing_put_listen_mixer),
  19602. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19603. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19604. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19605. msm_routing_put_listen_mixer),
  19606. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19607. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19608. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19609. msm_routing_put_listen_mixer),
  19610. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19611. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19612. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19613. msm_routing_put_listen_mixer),
  19614. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19615. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19616. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19617. msm_routing_put_listen_mixer),
  19618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19620. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19621. msm_routing_put_listen_mixer),
  19622. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19623. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19624. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19625. msm_routing_put_listen_mixer),
  19626. };
  19627. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  19628. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19629. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19630. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19631. msm_routing_put_listen_mixer),
  19632. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19633. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19634. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19635. msm_routing_put_listen_mixer),
  19636. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19637. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19638. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19639. msm_routing_put_listen_mixer),
  19640. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19641. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19642. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19643. msm_routing_put_listen_mixer),
  19644. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19646. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19647. msm_routing_put_listen_mixer),
  19648. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19649. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19650. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19651. msm_routing_put_listen_mixer),
  19652. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19653. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19654. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19655. msm_routing_put_listen_mixer),
  19656. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19657. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19658. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19659. msm_routing_put_listen_mixer),
  19660. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19662. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19663. msm_routing_put_listen_mixer),
  19664. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19666. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19667. msm_routing_put_listen_mixer),
  19668. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19670. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19671. msm_routing_put_listen_mixer),
  19672. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19673. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19674. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19675. msm_routing_put_listen_mixer),
  19676. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19677. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19678. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  19679. msm_routing_put_listen_mixer),
  19680. };
  19681. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  19682. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19683. 0, 1, 0, msm_routing_get_switch_mixer,
  19684. msm_routing_put_switch_mixer);
  19685. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  19686. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19687. 0, 1, 0, msm_routing_get_switch_mixer,
  19688. msm_routing_put_switch_mixer);
  19689. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  19690. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19691. 0, 1, 0, msm_routing_get_switch_mixer,
  19692. msm_routing_put_switch_mixer);
  19693. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  19694. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19695. 0, 1, 0, msm_routing_get_switch_mixer,
  19696. msm_routing_put_switch_mixer);
  19697. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  19698. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19699. 0, 1, 0, msm_routing_get_switch_mixer,
  19700. msm_routing_put_switch_mixer);
  19701. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  19702. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19703. 0, 1, 0, msm_routing_get_switch_mixer,
  19704. msm_routing_put_switch_mixer);
  19705. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  19706. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19707. 0, 1, 0, msm_routing_get_switch_mixer,
  19708. msm_routing_put_switch_mixer);
  19709. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  19710. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19711. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  19712. msm_routing_put_fm_pcmrx_switch_mixer);
  19713. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  19714. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19715. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  19716. msm_routing_put_int0_mi2s_switch_mixer);
  19717. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  19718. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19719. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  19720. msm_routing_put_int4_mi2s_switch_mixer);
  19721. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  19722. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19723. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  19724. msm_routing_put_pri_mi2s_switch_mixer);
  19725. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  19726. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19727. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  19728. msm_routing_put_sec_mi2s_switch_mixer);
  19729. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  19730. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19731. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  19732. msm_routing_put_tert_mi2s_switch_mixer);
  19733. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  19734. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19735. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  19736. msm_routing_put_quat_mi2s_switch_mixer);
  19737. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  19738. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19739. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  19740. msm_routing_put_quin_mi2s_switch_mixer);
  19741. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  19742. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19743. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  19744. msm_routing_put_sen_mi2s_switch_mixer);
  19745. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  19746. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19747. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  19748. msm_routing_put_hfp_switch_mixer);
  19749. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  19750. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19751. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  19752. msm_routing_put_hfp_switch_mixer);
  19753. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  19754. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19755. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  19756. msm_routing_put_hfp_switch_mixer);
  19757. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  19758. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19759. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  19760. msm_routing_put_hfp_switch_mixer);
  19761. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  19762. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19763. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  19764. msm_routing_put_usb_switch_mixer);
  19765. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  19766. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19767. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  19768. msm_routing_a2dp_switch_mixer_put);
  19769. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  19770. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  19771. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  19772. msm_routing_sco_switch_mixer_put);
  19773. static const struct soc_enum lsm_port_enum =
  19774. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  19775. static const char * const lsm_func_text[] = {
  19776. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  19777. };
  19778. static const struct soc_enum lsm_func_enum =
  19779. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  19780. static const struct snd_kcontrol_new lsm_controls[] = {
  19781. /* kcontrol of lsm_function */
  19782. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19783. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19784. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19785. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19786. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19787. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19788. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19789. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19790. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19791. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19792. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19793. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19794. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19795. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19796. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19797. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19798. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19799. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19800. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19801. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19802. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  19803. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19804. /* kcontrol of lsm_port */
  19805. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  19806. msm_routing_lsm_port_get,
  19807. msm_routing_lsm_port_put),
  19808. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  19809. msm_routing_lsm_port_get,
  19810. msm_routing_lsm_port_put),
  19811. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  19812. msm_routing_lsm_port_get,
  19813. msm_routing_lsm_port_put),
  19814. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  19815. msm_routing_lsm_port_get,
  19816. msm_routing_lsm_port_put),
  19817. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  19818. msm_routing_lsm_port_get,
  19819. msm_routing_lsm_port_put),
  19820. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  19821. msm_routing_lsm_port_get,
  19822. msm_routing_lsm_port_put),
  19823. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  19824. msm_routing_lsm_port_get,
  19825. msm_routing_lsm_port_put),
  19826. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  19827. msm_routing_lsm_port_get,
  19828. msm_routing_lsm_port_put),
  19829. };
  19830. static const char * const aanc_slim_0_rx_text[] = {
  19831. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  19832. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  19833. };
  19834. static const struct soc_enum aanc_slim_0_rx_enum =
  19835. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  19836. aanc_slim_0_rx_text);
  19837. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  19838. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  19839. msm_routing_slim_0_rx_aanc_mux_get,
  19840. msm_routing_slim_0_rx_aanc_mux_put)
  19841. };
  19842. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  19843. struct snd_ctl_elem_value *ucontrol)
  19844. {
  19845. ucontrol->value.integer.value[0] = aanc_level;
  19846. return 0;
  19847. }
  19848. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  19849. struct snd_ctl_elem_value *ucontrol)
  19850. {
  19851. int ret = 0;
  19852. mutex_lock(&routing_lock);
  19853. aanc_level = ucontrol->value.integer.value[0];
  19854. pr_debug("%s: value: %ld\n",
  19855. __func__, ucontrol->value.integer.value[0]);
  19856. ret = afe_set_aanc_noise_level(aanc_level);
  19857. mutex_unlock(&routing_lock);
  19858. return ret;
  19859. }
  19860. static const struct snd_kcontrol_new aanc_noise_level[] = {
  19861. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  19862. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  19863. };
  19864. static int msm_routing_get_stereo_to_custom_stereo_control(
  19865. struct snd_kcontrol *kcontrol,
  19866. struct snd_ctl_elem_value *ucontrol)
  19867. {
  19868. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  19869. return 0;
  19870. }
  19871. static int msm_routing_put_stereo_to_custom_stereo_control(
  19872. struct snd_kcontrol *kcontrol,
  19873. struct snd_ctl_elem_value *ucontrol)
  19874. {
  19875. int flag = 0, i = 0, rc = 0, idx = 0;
  19876. int be_index = 0, port_id, topo_id;
  19877. unsigned int session_id = 0;
  19878. uint16_t op_FL_ip_FL_weight = 0;
  19879. uint16_t op_FL_ip_FR_weight = 0;
  19880. uint16_t op_FR_ip_FL_weight = 0;
  19881. uint16_t op_FR_ip_FR_weight = 0;
  19882. flag = ucontrol->value.integer.value[0];
  19883. pr_debug("%s E flag %d\n", __func__, flag);
  19884. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  19885. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  19886. __func__, is_custom_stereo_on, flag);
  19887. return 0;
  19888. }
  19889. is_custom_stereo_on = flag ? true : false;
  19890. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  19891. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19892. port_id = msm_bedais[be_index].port_id;
  19893. if (!msm_bedais[be_index].active)
  19894. continue;
  19895. if ((port_id != SLIMBUS_0_RX) &&
  19896. (port_id != RT_PROXY_PORT_001_RX) &&
  19897. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  19898. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  19899. continue;
  19900. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19901. MSM_FRONTEND_DAI_MM_SIZE) {
  19902. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  19903. LEGACY_PCM_MODE)
  19904. goto skip_send_custom_stereo;
  19905. session_id =
  19906. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  19907. if (is_custom_stereo_on) {
  19908. op_FL_ip_FL_weight =
  19909. Q14_GAIN_ZERO_POINT_FIVE;
  19910. op_FL_ip_FR_weight =
  19911. Q14_GAIN_ZERO_POINT_FIVE;
  19912. op_FR_ip_FL_weight =
  19913. Q14_GAIN_ZERO_POINT_FIVE;
  19914. op_FR_ip_FR_weight =
  19915. Q14_GAIN_ZERO_POINT_FIVE;
  19916. } else {
  19917. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  19918. op_FL_ip_FR_weight = 0;
  19919. op_FR_ip_FL_weight = 0;
  19920. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  19921. }
  19922. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19923. unsigned long copp =
  19924. session_copp_map[i]
  19925. [SESSION_TYPE_RX][be_index];
  19926. if (!test_bit(idx, &copp))
  19927. goto skip_send_custom_stereo;
  19928. topo_id = adm_get_topology_for_port_copp_idx(
  19929. msm_bedais[be_index].port_id, idx);
  19930. if (topo_id < 0)
  19931. pr_debug("%s:Err:custom stereo topo %d",
  19932. __func__, topo_id);
  19933. pr_debug("idx %d\n", idx);
  19934. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  19935. rc = msm_ds2_dap_set_custom_stereo_onoff
  19936. (msm_bedais[be_index].port_id,
  19937. idx, is_custom_stereo_on);
  19938. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  19939. rc = dolby_dap_set_custom_stereo_onoff(
  19940. msm_bedais[be_index].port_id,
  19941. idx, is_custom_stereo_on);
  19942. else
  19943. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  19944. (msm_bedais[be_index].port_id,
  19945. idx, session_id,
  19946. op_FL_ip_FL_weight,
  19947. op_FL_ip_FR_weight,
  19948. op_FR_ip_FL_weight,
  19949. op_FR_ip_FR_weight);
  19950. if (rc < 0)
  19951. skip_send_custom_stereo:
  19952. pr_err("%s: err setting custom stereo\n",
  19953. __func__);
  19954. }
  19955. }
  19956. }
  19957. return 0;
  19958. }
  19959. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  19960. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  19961. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  19962. msm_routing_put_stereo_to_custom_stereo_control),
  19963. };
  19964. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19965. struct snd_ctl_elem_value *ucontrol)
  19966. {
  19967. return 0;
  19968. }
  19969. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19970. struct snd_ctl_elem_value *ucontrol)
  19971. {
  19972. int i = 0, j;
  19973. int num_app_types = ucontrol->value.integer.value[i++];
  19974. pr_debug("%s\n", __func__);
  19975. memset(app_type_cfg, 0, MAX_APP_TYPES*
  19976. sizeof(struct msm_pcm_routing_app_type_data));
  19977. if (num_app_types > MAX_APP_TYPES) {
  19978. pr_err("%s: number of app types exceed the max supported\n",
  19979. __func__);
  19980. return -EINVAL;
  19981. }
  19982. for (j = 0; j < num_app_types; j++) {
  19983. app_type_cfg[j].app_type =
  19984. ucontrol->value.integer.value[i++];
  19985. app_type_cfg[j].sample_rate =
  19986. ucontrol->value.integer.value[i++];
  19987. app_type_cfg[j].bit_width =
  19988. ucontrol->value.integer.value[i++];
  19989. }
  19990. return 0;
  19991. }
  19992. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  19993. struct snd_ctl_elem_value *ucontrol)
  19994. {
  19995. int j, fe_id, be_id, port_type;
  19996. int ret = 0;
  19997. unsigned long copp;
  19998. struct msm_pcm_routing_bdai_data *bedai;
  19999. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20000. SESSION_TYPE_RX;
  20001. int app_type = ucontrol->value.integer.value[1];
  20002. int gain = (ucontrol->value.integer.value[2] +
  20003. ucontrol->value.integer.value[3])/2;
  20004. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20005. MSM_AFE_PORT_TYPE_TX;
  20006. mutex_lock(&routing_lock);
  20007. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20008. if (is_be_dai_extproc(be_id))
  20009. continue;
  20010. bedai = &msm_bedais[be_id];
  20011. if (afe_get_port_type(bedai->port_id) != port_type)
  20012. continue;
  20013. if (!bedai->active)
  20014. continue;
  20015. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20016. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20017. continue;
  20018. if (app_type !=
  20019. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20020. continue;
  20021. copp = session_copp_map[fe_id][dir][be_id];
  20022. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  20023. if (!test_bit(j, &copp))
  20024. continue;
  20025. ret |= adm_set_volume(bedai->port_id, j, gain);
  20026. }
  20027. }
  20028. }
  20029. mutex_unlock(&routing_lock);
  20030. return ret ? -EINVAL : 0;
  20031. }
  20032. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  20033. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  20034. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  20035. msm_routing_put_app_type_cfg_control),
  20036. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  20037. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  20038. };
  20039. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  20040. struct snd_ctl_elem_value *ucontrol)
  20041. {
  20042. int copp_idx, fe_id, be_id, port_type;
  20043. int ret = 0;
  20044. unsigned long copp;
  20045. struct msm_pcm_routing_bdai_data *bedai;
  20046. u8 *packed_params = NULL;
  20047. struct param_hdr_v3 param_hdr;
  20048. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  20049. sizeof(uint32_t));
  20050. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20051. SESSION_TYPE_RX;
  20052. int app_type = ucontrol->value.integer.value[1];
  20053. int module_id = ucontrol->value.integer.value[2];
  20054. int instance_id = ucontrol->value.integer.value[3];
  20055. int param_id = ucontrol->value.integer.value[4];
  20056. int param_value = ucontrol->value.integer.value[5];
  20057. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20058. MSM_AFE_PORT_TYPE_TX;
  20059. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  20060. __func__, app_type, module_id,
  20061. instance_id, param_id, param_value);
  20062. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  20063. if (!packed_params)
  20064. return -ENOMEM;
  20065. memset(&param_hdr, 0, sizeof(param_hdr));
  20066. param_hdr.module_id = module_id;
  20067. param_hdr.instance_id = instance_id;
  20068. param_hdr.param_id = param_id;
  20069. param_hdr.param_size = sizeof(uint32_t);
  20070. packed_param_size = 0;
  20071. mutex_lock(&routing_lock);
  20072. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20073. if (is_be_dai_extproc(be_id))
  20074. continue;
  20075. bedai = &msm_bedais[be_id];
  20076. if (afe_get_port_type(bedai->port_id) != port_type)
  20077. continue;
  20078. if (!bedai->active)
  20079. continue;
  20080. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20081. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20082. continue;
  20083. if (app_type !=
  20084. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20085. continue;
  20086. copp = session_copp_map[fe_id][dir][be_id];
  20087. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  20088. copp_idx++) {
  20089. if (!test_bit(copp_idx, &copp))
  20090. continue;
  20091. ret = q6common_pack_pp_params(packed_params,
  20092. &param_hdr,
  20093. (u8 *) &param_value,
  20094. &packed_param_size);
  20095. if (ret) {
  20096. pr_err("%s: Failed to pack params, error %d\n",
  20097. __func__, ret);
  20098. goto done;
  20099. }
  20100. ret = adm_set_pp_params(bedai->port_id,
  20101. copp_idx, NULL,
  20102. packed_params,
  20103. packed_param_size);
  20104. if (ret) {
  20105. pr_err("%s: Setting param failed with err=%d\n",
  20106. __func__, ret);
  20107. ret = -EINVAL;
  20108. goto done;
  20109. }
  20110. }
  20111. }
  20112. }
  20113. done:
  20114. mutex_unlock(&routing_lock);
  20115. kfree(packed_params);
  20116. return ret;
  20117. }
  20118. static const struct snd_kcontrol_new module_cfg_controls[] = {
  20119. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  20120. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  20121. };
  20122. static int msm_routing_get_lsm_app_type_cfg_control(
  20123. struct snd_kcontrol *kcontrol,
  20124. struct snd_ctl_elem_value *ucontrol)
  20125. {
  20126. int shift = ((struct soc_multi_mixer_control *)
  20127. kcontrol->private_value)->shift;
  20128. int i = 0, j = 0;
  20129. ucontrol->value.integer.value[i] = num_app_cfg_types;
  20130. for (j = 0; j < num_app_cfg_types; ++j) {
  20131. ucontrol->value.integer.value[++i] =
  20132. lsm_app_type_cfg[j].app_type;
  20133. ucontrol->value.integer.value[++i] =
  20134. lsm_app_type_cfg[j].sample_rate;
  20135. ucontrol->value.integer.value[++i] =
  20136. lsm_app_type_cfg[j].bit_width;
  20137. if (shift == 1)
  20138. ucontrol->value.integer.value[++i] =
  20139. lsm_app_type_cfg[j].num_out_channels;
  20140. }
  20141. return 0;
  20142. }
  20143. static int msm_routing_put_lsm_app_type_cfg_control(
  20144. struct snd_kcontrol *kcontrol,
  20145. struct snd_ctl_elem_value *ucontrol)
  20146. {
  20147. int shift = ((struct soc_multi_mixer_control *)
  20148. kcontrol->private_value)->shift;
  20149. int i = 0, j;
  20150. num_app_cfg_types = ucontrol->value.integer.value[i++];
  20151. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  20152. sizeof(struct msm_pcm_routing_app_type_data));
  20153. if (num_app_cfg_types > MAX_APP_TYPES) {
  20154. pr_err("%s: number of app types exceed the max supported\n",
  20155. __func__);
  20156. return -EINVAL;
  20157. }
  20158. for (j = 0; j < num_app_cfg_types; j++) {
  20159. lsm_app_type_cfg[j].app_type =
  20160. ucontrol->value.integer.value[i++];
  20161. lsm_app_type_cfg[j].sample_rate =
  20162. ucontrol->value.integer.value[i++];
  20163. lsm_app_type_cfg[j].bit_width =
  20164. ucontrol->value.integer.value[i++];
  20165. /* Shift of 1 indicates this is V2 mixer control */
  20166. if (shift == 1)
  20167. lsm_app_type_cfg[j].num_out_channels =
  20168. ucontrol->value.integer.value[i++];
  20169. }
  20170. return 0;
  20171. }
  20172. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  20173. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  20174. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20175. msm_routing_put_lsm_app_type_cfg_control),
  20176. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  20177. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20178. msm_routing_put_lsm_app_type_cfg_control),
  20179. };
  20180. static int msm_routing_get_use_ds1_or_ds2_control(
  20181. struct snd_kcontrol *kcontrol,
  20182. struct snd_ctl_elem_value *ucontrol)
  20183. {
  20184. ucontrol->value.integer.value[0] = is_ds2_on;
  20185. return 0;
  20186. }
  20187. static int msm_routing_put_use_ds1_or_ds2_control(
  20188. struct snd_kcontrol *kcontrol,
  20189. struct snd_ctl_elem_value *ucontrol)
  20190. {
  20191. is_ds2_on = ucontrol->value.integer.value[0];
  20192. return 0;
  20193. }
  20194. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  20195. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  20196. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  20197. msm_routing_put_use_ds1_or_ds2_control),
  20198. };
  20199. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  20200. struct snd_ctl_elem_value *ucontrol) {
  20201. int rc = 0;
  20202. int be_idx = 0;
  20203. char *param_value;
  20204. int *update_param_value;
  20205. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  20206. struct param_hdr_v3 param_hdr;
  20207. param_value = kzalloc(param_size, GFP_KERNEL);
  20208. if (!param_value)
  20209. return -ENOMEM;
  20210. memset(&param_hdr, 0, sizeof(param_hdr));
  20211. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  20212. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  20213. break;
  20214. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  20215. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  20216. param_hdr.instance_id = INSTANCE_ID_0;
  20217. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  20218. param_hdr.param_size = param_size;
  20219. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  20220. NULL, &param_hdr, (u8 *) param_value);
  20221. if (rc) {
  20222. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  20223. kfree(param_value);
  20224. return -EINVAL;
  20225. }
  20226. update_param_value = (int *)param_value;
  20227. ucontrol->value.integer.value[0] = update_param_value[0];
  20228. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  20229. __func__, update_param_value[0]);
  20230. }
  20231. kfree(param_value);
  20232. return 0;
  20233. }
  20234. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  20235. struct snd_ctl_elem_value *ucontrol)
  20236. {
  20237. voc_session_id = ucontrol->value.integer.value[0];
  20238. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  20239. return 0;
  20240. }
  20241. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  20242. struct snd_ctl_elem_value *ucontrol)
  20243. {
  20244. ucontrol->value.integer.value[0] = voc_session_id;
  20245. return 0;
  20246. }
  20247. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  20248. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  20249. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  20250. msm_voc_session_id_put),
  20251. };
  20252. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  20253. struct snd_ctl_elem_info *uinfo)
  20254. {
  20255. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20256. uinfo->count = sizeof(struct sound_focus_param);
  20257. return 0;
  20258. }
  20259. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  20260. struct snd_ctl_elem_value *ucontrol)
  20261. {
  20262. int ret = 0;
  20263. struct sound_focus_param soundFocusData;
  20264. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  20265. sizeof(struct sound_focus_param));
  20266. ret = voc_set_sound_focus(soundFocusData);
  20267. if (ret) {
  20268. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  20269. __func__, ret);
  20270. ret = -EINVAL;
  20271. }
  20272. return ret;
  20273. }
  20274. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  20275. struct snd_ctl_elem_value *ucontrol)
  20276. {
  20277. int ret = 0;
  20278. struct sound_focus_param soundFocusData;
  20279. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  20280. ret = voc_get_sound_focus(&soundFocusData);
  20281. if (ret) {
  20282. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  20283. __func__, ret);
  20284. ret = -EINVAL;
  20285. goto done;
  20286. }
  20287. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  20288. sizeof(struct sound_focus_param));
  20289. done:
  20290. return ret;
  20291. }
  20292. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  20293. struct snd_ctl_elem_info *uinfo)
  20294. {
  20295. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20296. uinfo->count = sizeof(struct source_tracking_param);
  20297. return 0;
  20298. }
  20299. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  20300. struct snd_ctl_elem_value *ucontrol)
  20301. {
  20302. int ret = 0;
  20303. struct source_tracking_param sourceTrackingData;
  20304. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  20305. ret = voc_get_source_tracking(&sourceTrackingData);
  20306. if (ret) {
  20307. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  20308. __func__, ret);
  20309. ret = -EINVAL;
  20310. goto done;
  20311. }
  20312. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  20313. sizeof(struct source_tracking_param));
  20314. done:
  20315. return ret;
  20316. }
  20317. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  20318. int *copp_idx)
  20319. {
  20320. int i, idx, be_idx;
  20321. int ret = 0;
  20322. unsigned long copp;
  20323. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  20324. ret = q6audio_validate_port(port_id);
  20325. if (ret < 0) {
  20326. pr_err("%s: port validation failed id 0x%x ret %d\n",
  20327. __func__, port_id, ret);
  20328. ret = -EINVAL;
  20329. goto done;
  20330. }
  20331. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  20332. if (msm_bedais[be_idx].port_id == port_id)
  20333. break;
  20334. }
  20335. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  20336. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  20337. ret = -EINVAL;
  20338. goto done;
  20339. }
  20340. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  20341. MSM_FRONTEND_DAI_MAX) {
  20342. if (!(is_mm_lsm_fe_id(i) &&
  20343. route_check_fe_id_adm_support(i)))
  20344. continue;
  20345. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20346. copp = session_copp_map[i]
  20347. [session_type][be_idx];
  20348. if (test_bit(idx, &copp))
  20349. break;
  20350. }
  20351. if (idx >= MAX_COPPS_PER_PORT)
  20352. continue;
  20353. else
  20354. break;
  20355. }
  20356. if (i >= MSM_FRONTEND_DAI_MAX) {
  20357. pr_debug("%s: Invalid FE, exiting\n", __func__);
  20358. ret = -EINVAL;
  20359. goto done;
  20360. }
  20361. *copp_idx = idx;
  20362. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  20363. done:
  20364. return ret;
  20365. }
  20366. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  20367. const char *prefix, int *port_id)
  20368. {
  20369. int ret = 0;
  20370. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  20371. /*
  20372. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  20373. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  20374. * and compare the string with the backend name to derive the port id.
  20375. */
  20376. if (!strcmp(kcontrol->id.name + strlen(prefix),
  20377. "SLIMBUS_0")) {
  20378. *port_id = SLIMBUS_0_TX;
  20379. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20380. "TERT_MI2S")) {
  20381. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  20382. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20383. "INT3_MI2S")) {
  20384. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  20385. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20386. "VA_CDC_DMA_TX_0")) {
  20387. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  20388. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20389. "TX_CDC_DMA_TX_3")) {
  20390. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  20391. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20392. "QUIN_TDM_TX_0")) {
  20393. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  20394. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20395. "PRIMARY_TDM")) {
  20396. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  20397. } else {
  20398. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  20399. __func__, kcontrol->id.name);
  20400. ret = -EINVAL;
  20401. goto done;
  20402. }
  20403. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  20404. __func__, kcontrol->id.name, *port_id);
  20405. done:
  20406. return ret;
  20407. }
  20408. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  20409. struct snd_ctl_elem_value *ucontrol)
  20410. {
  20411. int ret = 0;
  20412. struct sound_focus_param soundFocusData;
  20413. int port_id, copp_idx;
  20414. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20415. "Sound Focus Audio Tx ", &port_id);
  20416. if (ret != 0) {
  20417. pr_err("%s: Error in deriving port id, err=%d\n",
  20418. __func__, ret);
  20419. ret = -EINVAL;
  20420. goto done;
  20421. }
  20422. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20423. &copp_idx);
  20424. if (ret) {
  20425. pr_err("%s: Could not get copp idx for port_id=%d\n",
  20426. __func__, port_id);
  20427. ret = -EINVAL;
  20428. goto done;
  20429. }
  20430. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  20431. sizeof(struct sound_focus_param));
  20432. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  20433. if (ret) {
  20434. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  20435. __func__, ret);
  20436. ret = -EINVAL;
  20437. goto done;
  20438. }
  20439. done:
  20440. return ret;
  20441. }
  20442. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  20443. struct snd_ctl_elem_value *ucontrol)
  20444. {
  20445. int ret = 0;
  20446. struct sound_focus_param soundFocusData;
  20447. int port_id, copp_idx;
  20448. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20449. "Sound Focus Audio Tx ", &port_id);
  20450. if (ret) {
  20451. pr_err("%s: Error in deriving port id, err=%d\n",
  20452. __func__, ret);
  20453. ret = -EINVAL;
  20454. goto done;
  20455. }
  20456. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20457. &copp_idx);
  20458. if (ret) {
  20459. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  20460. __func__, port_id);
  20461. ret = -EINVAL;
  20462. goto done;
  20463. }
  20464. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  20465. if (ret) {
  20466. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  20467. __func__, ret);
  20468. ret = -EINVAL;
  20469. goto done;
  20470. }
  20471. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  20472. sizeof(struct sound_focus_param));
  20473. done:
  20474. return ret;
  20475. }
  20476. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  20477. struct snd_ctl_elem_value *ucontrol)
  20478. {
  20479. int ret = 0;
  20480. struct source_tracking_param sourceTrackingData;
  20481. int port_id, copp_idx;
  20482. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20483. "Source Tracking Audio Tx ", &port_id);
  20484. if (ret) {
  20485. pr_err("%s: Error in deriving port id, err=%d\n",
  20486. __func__, ret);
  20487. ret = -EINVAL;
  20488. goto done;
  20489. }
  20490. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20491. &copp_idx);
  20492. if (ret) {
  20493. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  20494. __func__, port_id);
  20495. ret = -EINVAL;
  20496. goto done;
  20497. }
  20498. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  20499. if (ret) {
  20500. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  20501. __func__, ret);
  20502. ret = -EINVAL;
  20503. goto done;
  20504. }
  20505. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  20506. sizeof(struct source_tracking_param));
  20507. done:
  20508. return ret;
  20509. }
  20510. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  20511. struct snd_ctl_elem_info *uinfo)
  20512. {
  20513. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20514. uinfo->count = sizeof(struct doa_tracking_mon_param);
  20515. return 0;
  20516. }
  20517. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  20518. struct snd_ctl_elem_value *ucontrol)
  20519. {
  20520. int ret = 0;
  20521. struct doa_tracking_mon_param doa_tracking_data;
  20522. int port_id, copp_idx;
  20523. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  20524. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20525. "Doa Tracking Monitor Listen ", &port_id);
  20526. if (ret) {
  20527. pr_err("%s: Error in deriving port id, err=%d\n",
  20528. __func__, ret);
  20529. ret = -EINVAL;
  20530. goto done;
  20531. }
  20532. /*
  20533. * If copp id exists for given port id, query adm to get doa data.
  20534. * Else query afe for doa tracking params.
  20535. * This is to support in cases where LSM directly connects to
  20536. * AFE for FFNS.
  20537. */
  20538. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20539. &copp_idx);
  20540. if (!ret)
  20541. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  20542. &doa_tracking_data);
  20543. else
  20544. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  20545. if (ret) {
  20546. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  20547. __func__, ret);
  20548. ret = -EINVAL;
  20549. goto done;
  20550. }
  20551. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  20552. sizeof(struct doa_tracking_mon_param));
  20553. done:
  20554. return ret;
  20555. }
  20556. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  20557. {
  20558. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20560. .name = "Sound Focus Voice Tx SLIMBUS_0",
  20561. .info = msm_sound_focus_info,
  20562. .get = msm_voice_sound_focus_get,
  20563. .put = msm_voice_sound_focus_put,
  20564. },
  20565. {
  20566. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20567. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20568. .name = "Source Tracking Voice Tx SLIMBUS_0",
  20569. .info = msm_source_tracking_info,
  20570. .get = msm_voice_source_tracking_get,
  20571. },
  20572. {
  20573. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20574. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20575. .name = "Sound Focus Audio Tx SLIMBUS_0",
  20576. .info = msm_sound_focus_info,
  20577. .get = msm_audio_sound_focus_get,
  20578. .put = msm_audio_sound_focus_put,
  20579. },
  20580. {
  20581. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20582. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20583. .name = "Source Tracking Audio Tx SLIMBUS_0",
  20584. .info = msm_source_tracking_info,
  20585. .get = msm_audio_source_tracking_get,
  20586. },
  20587. {
  20588. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20590. .name = "Sound Focus Voice Tx TERT_MI2S",
  20591. .info = msm_sound_focus_info,
  20592. .get = msm_voice_sound_focus_get,
  20593. .put = msm_voice_sound_focus_put,
  20594. },
  20595. {
  20596. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20597. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20598. .name = "Source Tracking Voice Tx TERT_MI2S",
  20599. .info = msm_source_tracking_info,
  20600. .get = msm_voice_source_tracking_get,
  20601. },
  20602. {
  20603. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20604. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20605. .name = "Sound Focus Audio Tx TERT_MI2S",
  20606. .info = msm_sound_focus_info,
  20607. .get = msm_audio_sound_focus_get,
  20608. .put = msm_audio_sound_focus_put,
  20609. },
  20610. {
  20611. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20612. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20613. .name = "Source Tracking Audio Tx TERT_MI2S",
  20614. .info = msm_source_tracking_info,
  20615. .get = msm_audio_source_tracking_get,
  20616. },
  20617. {
  20618. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20620. .name = "Sound Focus Voice Tx INT3_MI2S",
  20621. .info = msm_sound_focus_info,
  20622. .get = msm_voice_sound_focus_get,
  20623. .put = msm_voice_sound_focus_put,
  20624. },
  20625. {
  20626. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20627. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20628. .name = "Source Tracking Voice Tx INT3_MI2S",
  20629. .info = msm_source_tracking_info,
  20630. .get = msm_voice_source_tracking_get,
  20631. },
  20632. {
  20633. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20634. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20635. .name = "Sound Focus Audio Tx INT3_MI2S",
  20636. .info = msm_sound_focus_info,
  20637. .get = msm_audio_sound_focus_get,
  20638. .put = msm_audio_sound_focus_put,
  20639. },
  20640. {
  20641. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20642. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20643. .name = "Source Tracking Audio Tx INT3_MI2S",
  20644. .info = msm_source_tracking_info,
  20645. .get = msm_audio_source_tracking_get,
  20646. },
  20647. {
  20648. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20650. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  20651. .info = msm_sound_focus_info,
  20652. .get = msm_voice_sound_focus_get,
  20653. .put = msm_voice_sound_focus_put,
  20654. },
  20655. {
  20656. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20657. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20658. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  20659. .info = msm_source_tracking_info,
  20660. .get = msm_voice_source_tracking_get,
  20661. },
  20662. {
  20663. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20664. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20665. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  20666. .info = msm_sound_focus_info,
  20667. .get = msm_audio_sound_focus_get,
  20668. .put = msm_audio_sound_focus_put,
  20669. },
  20670. {
  20671. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20672. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20673. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  20674. .info = msm_source_tracking_info,
  20675. .get = msm_audio_source_tracking_get,
  20676. },
  20677. {
  20678. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20680. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  20681. .info = msm_sound_focus_info,
  20682. .get = msm_voice_sound_focus_get,
  20683. .put = msm_voice_sound_focus_put,
  20684. },
  20685. {
  20686. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20687. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20688. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  20689. .info = msm_source_tracking_info,
  20690. .get = msm_voice_source_tracking_get,
  20691. },
  20692. {
  20693. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20694. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20695. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  20696. .info = msm_sound_focus_info,
  20697. .get = msm_audio_sound_focus_get,
  20698. .put = msm_audio_sound_focus_put,
  20699. },
  20700. {
  20701. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20702. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20703. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  20704. .info = msm_source_tracking_info,
  20705. .get = msm_audio_source_tracking_get,
  20706. },
  20707. {
  20708. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20710. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  20711. .info = msm_sound_focus_info,
  20712. .get = msm_voice_sound_focus_get,
  20713. .put = msm_voice_sound_focus_put,
  20714. },
  20715. {
  20716. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20717. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20718. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  20719. .info = msm_source_tracking_info,
  20720. .get = msm_voice_source_tracking_get,
  20721. },
  20722. {
  20723. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20724. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20725. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  20726. .info = msm_sound_focus_info,
  20727. .get = msm_audio_sound_focus_get,
  20728. .put = msm_audio_sound_focus_put,
  20729. },
  20730. {
  20731. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20732. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20733. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  20734. .info = msm_source_tracking_info,
  20735. .get = msm_audio_source_tracking_get,
  20736. },
  20737. {
  20738. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20740. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  20741. .info = msm_sound_focus_info,
  20742. .get = msm_audio_sound_focus_get,
  20743. .put = msm_audio_sound_focus_put,
  20744. },
  20745. {
  20746. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20747. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20748. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  20749. .info = msm_source_tracking_info,
  20750. .get = msm_audio_source_tracking_get,
  20751. },
  20752. {
  20753. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20754. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20755. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  20756. .info = msm_doa_tracking_mon_info,
  20757. .get = msm_doa_tracking_mon_get,
  20758. },
  20759. };
  20760. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  20761. struct snd_ctl_elem_value *ucontrol)
  20762. {
  20763. int ret = 0;
  20764. int item;
  20765. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  20766. pr_debug("%s item is %d\n", __func__,
  20767. ucontrol->value.enumerated.item[0]);
  20768. mutex_lock(&routing_lock);
  20769. item = ucontrol->value.enumerated.item[0];
  20770. if (item < e->items) {
  20771. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  20772. __func__, e->shift_l, e->values[item]);
  20773. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  20774. e->values[item] < MSM_BACKEND_DAI_MAX)
  20775. /* Enable feedback TX path */
  20776. ret = afe_spk_prot_feed_back_cfg(
  20777. msm_bedais[e->values[item]].port_id,
  20778. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  20779. else {
  20780. pr_debug("%s values are out of range item %d\n",
  20781. __func__, e->values[item]);
  20782. /* Disable feedback TX path */
  20783. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  20784. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  20785. else
  20786. ret = -EINVAL;
  20787. }
  20788. } else {
  20789. pr_err("%s item value is out of range item\n", __func__);
  20790. ret = -EINVAL;
  20791. }
  20792. mutex_unlock(&routing_lock);
  20793. return ret;
  20794. }
  20795. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  20796. struct snd_ctl_elem_value *ucontrol)
  20797. {
  20798. int ret = 0;
  20799. int item;
  20800. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  20801. pr_debug("%s item is %d\n", __func__,
  20802. ucontrol->value.enumerated.item[0]);
  20803. mutex_lock(&routing_lock);
  20804. item = ucontrol->value.enumerated.item[0];
  20805. if (item < e->items) {
  20806. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  20807. __func__, e->shift_l, e->values[item]);
  20808. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  20809. e->values[item] < MSM_BACKEND_DAI_MAX)
  20810. /* Enable feedback TX path */
  20811. ret = afe_spk_prot_feed_back_cfg(
  20812. msm_bedais[e->values[item]].port_id,
  20813. msm_bedais[e->shift_l].port_id,
  20814. 1, 1, 1);
  20815. else {
  20816. pr_debug("%s values are out of range item %d\n",
  20817. __func__, e->values[item]);
  20818. /* Disable feedback TX path */
  20819. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  20820. ret = afe_spk_prot_feed_back_cfg(0,
  20821. 0, 0, 0, 0);
  20822. else
  20823. ret = -EINVAL;
  20824. }
  20825. } else {
  20826. pr_err("%s item value is out of range item\n", __func__);
  20827. ret = -EINVAL;
  20828. }
  20829. mutex_unlock(&routing_lock);
  20830. return ret;
  20831. }
  20832. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  20833. struct snd_ctl_elem_value *ucontrol)
  20834. {
  20835. pr_debug("%s\n", __func__);
  20836. return 0;
  20837. }
  20838. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  20839. struct snd_ctl_elem_value *ucontrol)
  20840. {
  20841. pr_debug("%s\n", __func__);
  20842. ucontrol->value.enumerated.item[0] = 0;
  20843. return 0;
  20844. }
  20845. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  20846. "ZERO", "SLIM4_TX"
  20847. };
  20848. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  20849. "ZERO", "SLIM4_TX"
  20850. };
  20851. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  20852. "ZERO", "WSA_CDC_DMA_TX_0"
  20853. };
  20854. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  20855. "ZERO", "WSA_CDC_DMA_TX_0"
  20856. };
  20857. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  20858. "ZERO", "SENARY_TX"
  20859. };
  20860. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  20861. "ZERO", "INT5_MI2S_TX"
  20862. };
  20863. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  20864. "ZERO", "INT5_MI2S_TX"
  20865. };
  20866. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  20867. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  20868. };
  20869. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  20870. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  20871. };
  20872. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  20873. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  20874. };
  20875. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  20876. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  20877. };
  20878. static const int mi2s_rx_vi_fb_tx_value[] = {
  20879. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  20880. };
  20881. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  20882. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  20883. };
  20884. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  20885. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  20886. };
  20887. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  20888. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  20889. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  20890. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  20891. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  20892. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  20893. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  20894. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  20895. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  20896. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  20897. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  20898. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  20899. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  20900. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  20901. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  20902. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  20903. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  20904. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  20905. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  20906. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  20907. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  20908. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  20909. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  20910. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  20911. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  20912. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  20913. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  20914. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  20915. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  20916. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  20917. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  20918. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  20919. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  20920. spkr_prot_put_vi_lch_port);
  20921. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  20922. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  20923. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20924. spkr_prot_put_vi_rch_port);
  20925. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  20926. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  20927. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  20928. spkr_prot_put_vi_lch_port);
  20929. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  20930. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  20931. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20932. spkr_prot_put_vi_rch_port);
  20933. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  20934. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  20935. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  20936. spkr_prot_put_vi_lch_port);
  20937. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  20938. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  20939. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  20940. spkr_prot_put_vi_lch_port);
  20941. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  20942. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  20943. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  20944. spkr_prot_put_vi_rch_port);
  20945. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  20946. /* Frontend AIF */
  20947. /* Widget name equals to Front-End DAI name<Need confirmation>,
  20948. * Stream name must contains substring of front-end dai name
  20949. */
  20950. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  20951. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  20952. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  20953. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  20954. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  20955. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  20956. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  20957. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  20958. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  20959. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  20960. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  20961. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  20962. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  20963. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  20964. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  20965. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  20966. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  20967. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  20968. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  20969. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  20970. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  20971. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  20972. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  20973. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  20974. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  20975. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  20976. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  20977. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  20978. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  20979. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  20980. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  20981. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  20982. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  20983. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  20984. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  20985. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  20986. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  20987. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  20988. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  20989. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  20990. "VoiceMMode1 Playback", 0, 0, 0, 0),
  20991. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  20992. "VoiceMMode1 Capture", 0, 0, 0, 0),
  20993. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  20994. "VoiceMMode2 Playback", 0, 0, 0, 0),
  20995. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  20996. "VoiceMMode2 Capture", 0, 0, 0, 0),
  20997. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  20998. 0, 0, 0, 0),
  20999. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  21000. 0, 0, 0, 0),
  21001. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  21002. 0, 0, 0, 0),
  21003. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  21004. 0, 0, 0, 0),
  21005. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  21006. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  21007. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  21008. 0, 0, 0, 0),
  21009. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  21010. 0, 0, 0, 0),
  21011. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  21012. 0, 0, 0, 0),
  21013. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  21014. 0, 0, 0, 0),
  21015. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  21016. 0, 0, 0, 0),
  21017. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  21018. 0, 0, 0, 0),
  21019. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  21020. 0, 0, 0, 0),
  21021. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  21022. 0, 0, 0, 0),
  21023. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  21024. 0, 0, 0, 0),
  21025. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  21026. 0, 0, 0, 0),
  21027. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  21028. 0, 0, 0, 0),
  21029. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  21030. 0, 0, 0, 0),
  21031. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  21032. 0, 0, 0, 0),
  21033. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  21034. 0, 0, 0, 0),
  21035. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  21036. 0, 0, 0, 0),
  21037. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  21038. 0, 0, 0, 0),
  21039. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  21040. 0, 0, 0, 0),
  21041. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  21042. 0, 0, 0, 0),
  21043. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  21044. 0, 0, 0, 0),
  21045. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  21046. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  21047. 0, 0, 0, 0),
  21048. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  21049. "INT0 MI2S_RX Hostless Playback",
  21050. 0, 0, 0, 0),
  21051. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  21052. "INT4 MI2S_RX Hostless Playback",
  21053. 0, 0, 0, 0),
  21054. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  21055. "Primary MI2S_RX Hostless Playback",
  21056. 0, 0, 0, 0),
  21057. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  21058. "Secondary MI2S_RX Hostless Playback",
  21059. 0, 0, 0, 0),
  21060. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  21061. "Tertiary MI2S_RX Hostless Playback",
  21062. 0, 0, 0, 0),
  21063. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  21064. "Quaternary MI2S_RX Hostless Playback",
  21065. 0, 0, 0, 0),
  21066. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  21067. "Quinary MI2S_RX Hostless Playback",
  21068. 0, 0, 0, 0),
  21069. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  21070. "Senary MI2S_RX Hostless Playback",
  21071. 0, 0, 0, 0),
  21072. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  21073. 0, 0, 0, 0),
  21074. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  21075. 0, 0, 0, 0),
  21076. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  21077. 0, 0, 0, 0),
  21078. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  21079. 0, 0, 0, 0),
  21080. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  21081. 0, 0, 0, 0),
  21082. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  21083. "INT3 MI2S_TX Hostless Capture",
  21084. 0, 0, 0, 0),
  21085. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  21086. "Tertiary MI2S_TX Hostless Capture",
  21087. 0, 0, 0, 0),
  21088. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  21089. "Secondary MI2S_TX Hostless Capture",
  21090. 0, 0, 0, 0),
  21091. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  21092. "Primary MI2S_TX Hostless Capture",
  21093. 0, 0, 0, 0),
  21094. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  21095. 0, 0, 0, 0),
  21096. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  21097. 0, 0, 0, 0),
  21098. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  21099. "Quaternary MI2S_TX Hostless Capture",
  21100. 0, 0, 0, 0),
  21101. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  21102. "Quinary MI2S_TX Hostless Capture",
  21103. 0, 0, 0, 0),
  21104. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  21105. "Senary MI2S_TX Hostless Capture",
  21106. 0, 0, 0, 0),
  21107. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  21108. "Primary TDM0 Hostless Playback",
  21109. 0, 0, 0, 0),
  21110. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  21111. "Primary TDM0 Hostless Capture",
  21112. 0, 0, 0, 0),
  21113. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  21114. "Primary TDM1 Hostless Playback",
  21115. 0, 0, 0, 0),
  21116. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  21117. "Primary TDM1 Hostless Capture",
  21118. 0, 0, 0, 0),
  21119. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  21120. "Primary TDM2 Hostless Playback",
  21121. 0, 0, 0, 0),
  21122. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  21123. "Primary TDM2 Hostless Capture",
  21124. 0, 0, 0, 0),
  21125. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  21126. "Primary TDM3 Hostless Playback",
  21127. 0, 0, 0, 0),
  21128. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  21129. "Primary TDM3 Hostless Capture",
  21130. 0, 0, 0, 0),
  21131. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  21132. "Primary TDM4 Hostless Playback",
  21133. 0, 0, 0, 0),
  21134. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  21135. "Primary TDM4 Hostless Capture",
  21136. 0, 0, 0, 0),
  21137. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  21138. "Primary TDM5 Hostless Playback",
  21139. 0, 0, 0, 0),
  21140. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  21141. "Primary TDM5 Hostless Capture",
  21142. 0, 0, 0, 0),
  21143. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  21144. "Primary TDM6 Hostless Playback",
  21145. 0, 0, 0, 0),
  21146. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  21147. "Primary TDM6 Hostless Capture",
  21148. 0, 0, 0, 0),
  21149. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  21150. "Primary TDM7 Hostless Playback",
  21151. 0, 0, 0, 0),
  21152. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  21153. "Primary TDM7 Hostless Capture",
  21154. 0, 0, 0, 0),
  21155. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  21156. "Secondary TDM0 Hostless Playback",
  21157. 0, 0, 0, 0),
  21158. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  21159. "Secondary TDM0 Hostless Capture",
  21160. 0, 0, 0, 0),
  21161. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  21162. "Secondary TDM1 Hostless Playback",
  21163. 0, 0, 0, 0),
  21164. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  21165. "Secondary TDM1 Hostless Capture",
  21166. 0, 0, 0, 0),
  21167. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  21168. "Secondary TDM2 Hostless Playback",
  21169. 0, 0, 0, 0),
  21170. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  21171. "Secondary TDM2 Hostless Capture",
  21172. 0, 0, 0, 0),
  21173. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  21174. "Secondary TDM3 Hostless Playback",
  21175. 0, 0, 0, 0),
  21176. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  21177. "Secondary TDM3 Hostless Capture",
  21178. 0, 0, 0, 0),
  21179. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  21180. "Secondary TDM4 Hostless Playback",
  21181. 0, 0, 0, 0),
  21182. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  21183. "Secondary TDM4 Hostless Capture",
  21184. 0, 0, 0, 0),
  21185. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  21186. "Secondary TDM5 Hostless Playback",
  21187. 0, 0, 0, 0),
  21188. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  21189. "Secondary TDM5 Hostless Capture",
  21190. 0, 0, 0, 0),
  21191. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  21192. "Secondary TDM6 Hostless Playback",
  21193. 0, 0, 0, 0),
  21194. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  21195. "Secondary TDM6 Hostless Capture",
  21196. 0, 0, 0, 0),
  21197. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  21198. "Secondary TDM7 Hostless Playback",
  21199. 0, 0, 0, 0),
  21200. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  21201. "Secondary TDM7 Hostless Capture",
  21202. 0, 0, 0, 0),
  21203. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  21204. "Tertiary TDM0 Hostless Playback",
  21205. 0, 0, 0, 0),
  21206. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  21207. "Tertiary TDM0 Hostless Capture",
  21208. 0, 0, 0, 0),
  21209. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  21210. "Tertiary TDM1 Hostless Playback",
  21211. 0, 0, 0, 0),
  21212. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  21213. "Tertiary TDM1 Hostless Capture",
  21214. 0, 0, 0, 0),
  21215. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  21216. "Tertiary TDM2 Hostless Playback",
  21217. 0, 0, 0, 0),
  21218. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  21219. "Tertiary TDM2 Hostless Capture",
  21220. 0, 0, 0, 0),
  21221. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  21222. "Tertiary TDM3 Hostless Playback",
  21223. 0, 0, 0, 0),
  21224. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  21225. "Tertiary TDM3 Hostless Capture",
  21226. 0, 0, 0, 0),
  21227. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  21228. "Tertiary TDM4 Hostless Playback",
  21229. 0, 0, 0, 0),
  21230. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  21231. "Tertiary TDM4 Hostless Capture",
  21232. 0, 0, 0, 0),
  21233. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  21234. "Tertiary TDM5 Hostless Playback",
  21235. 0, 0, 0, 0),
  21236. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  21237. "Tertiary TDM5 Hostless Capture",
  21238. 0, 0, 0, 0),
  21239. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  21240. "Tertiary TDM6 Hostless Playback",
  21241. 0, 0, 0, 0),
  21242. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  21243. "Tertiary TDM6 Hostless Capture",
  21244. 0, 0, 0, 0),
  21245. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  21246. "Tertiary TDM7 Hostless Playback",
  21247. 0, 0, 0, 0),
  21248. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  21249. "Tertiary TDM7 Hostless Capture",
  21250. 0, 0, 0, 0),
  21251. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  21252. "Quaternary TDM0 Hostless Playback",
  21253. 0, 0, 0, 0),
  21254. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  21255. "Quaternary TDM0 Hostless Capture",
  21256. 0, 0, 0, 0),
  21257. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  21258. "Quaternary TDM1 Hostless Playback",
  21259. 0, 0, 0, 0),
  21260. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  21261. "Quaternary TDM1 Hostless Capture",
  21262. 0, 0, 0, 0),
  21263. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  21264. "Quaternary TDM2 Hostless Playback",
  21265. 0, 0, 0, 0),
  21266. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  21267. "Quaternary TDM2 Hostless Capture",
  21268. 0, 0, 0, 0),
  21269. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  21270. "Quaternary TDM3 Hostless Playback",
  21271. 0, 0, 0, 0),
  21272. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  21273. "Quaternary TDM3 Hostless Capture",
  21274. 0, 0, 0, 0),
  21275. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  21276. "Quaternary TDM4 Hostless Playback",
  21277. 0, 0, 0, 0),
  21278. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  21279. "Quaternary TDM4 Hostless Capture",
  21280. 0, 0, 0, 0),
  21281. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  21282. "Quaternary TDM5 Hostless Playback",
  21283. 0, 0, 0, 0),
  21284. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  21285. "Quaternary TDM5 Hostless Capture",
  21286. 0, 0, 0, 0),
  21287. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  21288. "Quaternary TDM6 Hostless Playback",
  21289. 0, 0, 0, 0),
  21290. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  21291. "Quaternary TDM6 Hostless Capture",
  21292. 0, 0, 0, 0),
  21293. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  21294. "Quaternary TDM7 Hostless Playback",
  21295. 0, 0, 0, 0),
  21296. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  21297. "Quaternary TDM7 Hostless Capture",
  21298. 0, 0, 0, 0),
  21299. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  21300. "Quinary TDM0 Hostless Playback",
  21301. 0, 0, 0, 0),
  21302. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  21303. "Quinary TDM0 Hostless Capture",
  21304. 0, 0, 0, 0),
  21305. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  21306. "Quinary TDM1 Hostless Playback",
  21307. 0, 0, 0, 0),
  21308. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  21309. "Quinary TDM1 Hostless Capture",
  21310. 0, 0, 0, 0),
  21311. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  21312. "Quinary TDM2 Hostless Playback",
  21313. 0, 0, 0, 0),
  21314. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  21315. "Quinary TDM2 Hostless Capture",
  21316. 0, 0, 0, 0),
  21317. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  21318. "Quinary TDM3 Hostless Playback",
  21319. 0, 0, 0, 0),
  21320. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  21321. "Quinary TDM3 Hostless Capture",
  21322. 0, 0, 0, 0),
  21323. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  21324. "Quinary TDM4 Hostless Playback",
  21325. 0, 0, 0, 0),
  21326. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  21327. "Quinary TDM4 Hostless Capture",
  21328. 0, 0, 0, 0),
  21329. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  21330. "Quinary TDM5 Hostless Playback",
  21331. 0, 0, 0, 0),
  21332. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  21333. "Quinary TDM5 Hostless Capture",
  21334. 0, 0, 0, 0),
  21335. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  21336. "Quinary TDM6 Hostless Playback",
  21337. 0, 0, 0, 0),
  21338. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  21339. "Quinary TDM6 Hostless Capture",
  21340. 0, 0, 0, 0),
  21341. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  21342. "Quinary TDM7 Hostless Playback",
  21343. 0, 0, 0, 0),
  21344. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  21345. "Quinary TDM7 Hostless Capture",
  21346. 0, 0, 0, 0),
  21347. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  21348. "Senary TDM0 Hostless Playback",
  21349. 0, 0, 0, 0),
  21350. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  21351. "Senary TDM0 Hostless Capture",
  21352. 0, 0, 0, 0),
  21353. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  21354. "Senary TDM1 Hostless Playback",
  21355. 0, 0, 0, 0),
  21356. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  21357. "Senary TDM1 Hostless Capture",
  21358. 0, 0, 0, 0),
  21359. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  21360. "Senary TDM2 Hostless Playback",
  21361. 0, 0, 0, 0),
  21362. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  21363. "Senary TDM2 Hostless Capture",
  21364. 0, 0, 0, 0),
  21365. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  21366. "Senary TDM3 Hostless Playback",
  21367. 0, 0, 0, 0),
  21368. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  21369. "Senary TDM3 Hostless Capture",
  21370. 0, 0, 0, 0),
  21371. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  21372. "Senary TDM4 Hostless Playback",
  21373. 0, 0, 0, 0),
  21374. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  21375. "Senary TDM4 Hostless Capture",
  21376. 0, 0, 0, 0),
  21377. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  21378. "Senary TDM5 Hostless Playback",
  21379. 0, 0, 0, 0),
  21380. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  21381. "Senary TDM5 Hostless Capture",
  21382. 0, 0, 0, 0),
  21383. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  21384. "Senary TDM6 Hostless Playback",
  21385. 0, 0, 0, 0),
  21386. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  21387. "Senary TDM6 Hostless Capture",
  21388. 0, 0, 0, 0),
  21389. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  21390. "Senary TDM7 Hostless Playback",
  21391. 0, 0, 0, 0),
  21392. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  21393. "Senary TDM7 Hostless Capture",
  21394. 0, 0, 0, 0),
  21395. /* LSM */
  21396. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  21397. 0, 0, 0, 0),
  21398. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  21399. 0, 0, 0, 0),
  21400. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  21401. 0, 0, 0, 0),
  21402. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  21403. 0, 0, 0, 0),
  21404. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  21405. 0, 0, 0, 0),
  21406. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  21407. 0, 0, 0, 0),
  21408. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  21409. 0, 0, 0, 0),
  21410. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  21411. 0, 0, 0, 0),
  21412. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  21413. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  21414. /* Backend AIF */
  21415. /* Stream name equals to backend dai link stream name */
  21416. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  21417. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  21418. 0, 0, 0, 0),
  21419. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  21420. 0, 0, 0, 0),
  21421. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  21422. 0, 0, 0, 0),
  21423. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  21424. 0, 0, 0, 0),
  21425. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  21426. 0, 0, 0, 0),
  21427. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  21428. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  21429. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  21430. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  21431. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  21432. 0, 0, 0, 0),
  21433. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  21434. 0, 0, 0, 0),
  21435. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  21436. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  21437. 0, 0, 0, 0),
  21438. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  21439. 0, 0, 0, 0),
  21440. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  21441. 0, 0, 0, 0),
  21442. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  21443. "Secondary MI2S Playback SD1",
  21444. 0, 0, 0, 0),
  21445. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  21446. 0, 0, 0, 0),
  21447. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  21448. 0, 0, 0, 0),
  21449. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  21450. 0, 0, 0, 0),
  21451. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  21452. 0, 0, 0, 0),
  21453. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  21454. 0, 0, 0, 0),
  21455. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  21456. 0, 0, 0, 0),
  21457. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  21458. 0, 0, 0, 0),
  21459. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  21460. 0, 0, 0, 0),
  21461. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  21462. 0, 0, 0, 0),
  21463. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  21464. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  21465. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  21466. 0, 0, 0, 0),
  21467. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  21468. 0, 0, 0, 0),
  21469. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  21470. 0, 0, 0, 0),
  21471. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  21472. 0, 0, 0, 0),
  21473. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  21474. 0, 0, 0, 0),
  21475. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  21476. 0, 0, 0, 0),
  21477. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  21478. 0, 0, 0, 0),
  21479. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  21480. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  21481. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  21482. 0, 0, 0, 0),
  21483. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  21484. 0, 0, 0, 0),
  21485. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  21486. 0, 0, 0, 0),
  21487. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  21488. 0, 0, 0, 0),
  21489. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  21490. 0, 0, 0, 0),
  21491. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  21492. 0, 0, 0, 0),
  21493. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  21494. 0, 0, 0, 0),
  21495. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  21496. 0, 0, 0, 0),
  21497. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  21498. 0, 0, 0, 0),
  21499. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  21500. 0, 0, 0, 0),
  21501. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  21502. 0, 0, 0, 0),
  21503. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  21504. 0, 0, 0, 0),
  21505. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  21506. 0, 0, 0, 0),
  21507. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  21508. 0, 0, 0, 0),
  21509. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  21510. 0, 0, 0, 0),
  21511. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  21512. 0, 0, 0, 0),
  21513. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  21514. 0, 0, 0, 0),
  21515. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  21516. 0, 0, 0, 0),
  21517. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  21518. 0, 0, 0, 0),
  21519. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  21520. 0, 0, 0, 0),
  21521. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  21522. 0, 0, 0, 0),
  21523. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  21524. 0, 0, 0, 0),
  21525. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  21526. 0, 0, 0, 0),
  21527. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  21528. 0, 0, 0, 0),
  21529. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  21530. 0, 0, 0, 0),
  21531. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  21532. 0, 0, 0, 0),
  21533. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  21534. 0, 0, 0, 0),
  21535. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  21536. 0, 0, 0, 0),
  21537. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  21538. 0, 0, 0, 0),
  21539. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  21540. 0, 0, 0, 0),
  21541. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  21542. 0, 0, 0, 0),
  21543. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  21544. 0, 0, 0, 0),
  21545. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  21546. 0, 0, 0, 0),
  21547. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  21548. 0, 0, 0, 0),
  21549. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  21550. 0, 0, 0, 0),
  21551. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  21552. 0, 0, 0, 0),
  21553. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  21554. 0, 0, 0, 0),
  21555. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  21556. 0, 0, 0, 0),
  21557. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  21558. 0, 0, 0, 0),
  21559. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  21560. 0, 0, 0, 0),
  21561. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  21562. 0, 0, 0, 0),
  21563. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  21564. 0, 0, 0, 0),
  21565. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  21566. 0, 0, 0, 0),
  21567. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  21568. 0, 0, 0, 0),
  21569. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  21570. 0, 0, 0, 0),
  21571. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  21572. 0, 0, 0, 0),
  21573. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  21574. 0, 0, 0, 0),
  21575. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  21576. 0, 0, 0, 0),
  21577. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  21578. 0, 0, 0, 0),
  21579. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  21580. 0, 0, 0, 0),
  21581. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  21582. 0, 0, 0, 0),
  21583. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  21584. 0, 0, 0, 0),
  21585. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  21586. 0, 0, 0, 0),
  21587. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  21588. 0, 0, 0, 0),
  21589. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  21590. 0, 0, 0, 0),
  21591. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  21592. 0, 0, 0, 0),
  21593. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  21594. 0, 0, 0, 0),
  21595. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  21596. 0, 0, 0, 0),
  21597. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  21598. 0, 0, 0, 0),
  21599. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  21600. 0, 0, 0, 0),
  21601. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  21602. 0, 0, 0, 0),
  21603. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  21604. 0, 0, 0, 0),
  21605. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  21606. 0, 0, 0, 0),
  21607. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  21608. 0, 0, 0, 0),
  21609. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  21610. 0, 0, 0, 0),
  21611. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  21612. 0, 0, 0, 0),
  21613. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  21614. 0, 0, 0, 0),
  21615. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  21616. 0, 0, 0, 0),
  21617. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  21618. 0, 0, 0, 0),
  21619. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  21620. 0, 0, 0, 0),
  21621. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  21622. 0, 0, 0, 0),
  21623. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  21624. 0, 0, 0, 0),
  21625. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  21626. 0, 0, 0, 0),
  21627. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  21628. 0, 0, 0, 0),
  21629. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  21630. 0, 0, 0, 0),
  21631. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  21632. 0, 0, 0, 0),
  21633. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  21634. 0, 0, 0, 0),
  21635. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  21636. 0, 0, 0, 0),
  21637. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  21638. 0, 0, 0, 0),
  21639. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  21640. 0, 0, 0, 0),
  21641. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  21642. 0, 0, 0, 0),
  21643. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  21644. 0, 0, 0, 0),
  21645. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  21646. 0, 0, 0, 0),
  21647. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  21648. 0, 0, 0, 0),
  21649. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  21650. 0, 0, 0, 0),
  21651. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  21652. 0, 0, 0, 0),
  21653. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  21654. 0, 0, 0, 0),
  21655. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  21656. 0, 0, 0, 0),
  21657. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  21658. 0, 0, 0, 0),
  21659. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  21660. 0, 0, 0, 0),
  21661. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  21662. 0, 0, 0, 0),
  21663. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  21664. 0, 0, 0, 0),
  21665. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  21666. 0, 0, 0, 0),
  21667. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  21668. 0, 0, 0, 0),
  21669. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  21670. 0, 0, 0, 0),
  21671. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  21672. 0, 0, 0, 0),
  21673. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  21674. 0, 0, 0, 0),
  21675. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  21676. 0, 0, 0, 0),
  21677. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  21678. 0, 0, 0, 0),
  21679. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  21680. 0, 0, 0, 0),
  21681. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  21682. 0, 0, 0, 0),
  21683. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  21684. 0, 0, 0, 0),
  21685. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  21686. 0, 0, 0, 0),
  21687. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  21688. 0, 0, 0, 0),
  21689. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  21690. 0, 0, 0, 0),
  21691. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  21692. 0, 0, 0, 0),
  21693. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  21694. 0, 0, 0, 0),
  21695. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  21696. 0, 0, 0, 0),
  21697. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  21698. 0, 0, 0, 0),
  21699. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  21700. 0, 0, 0, 0),
  21701. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  21702. 0, 0, 0, 0),
  21703. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  21704. 0, 0, 0, 0),
  21705. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  21706. 0, 0, 0, 0),
  21707. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  21708. 0, 0, 0, 0),
  21709. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  21710. 0, 0, 0, 0),
  21711. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  21712. 0, 0, 0, 0),
  21713. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  21714. 0, 0, 0, 0),
  21715. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  21716. 0, 0, 0, 0),
  21717. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  21718. 0, 0, 0, 0),
  21719. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  21720. 0, 0, 0, 0),
  21721. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  21722. 0, 0, 0, 0),
  21723. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  21724. 0, 0, 0, 0),
  21725. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  21726. 0, 0, 0, 0),
  21727. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  21728. 0, 0, 0, 0),
  21729. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  21730. 0, 0, 0, 0),
  21731. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  21732. 0, 0, 0, 0),
  21733. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  21734. 0, 0, 0, 0),
  21735. /* incall */
  21736. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  21737. 0, 0, 0, 0),
  21738. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  21739. 0, 0, 0, 0),
  21740. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  21741. 0, 0, 0, 0),
  21742. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  21743. 0, 0, 0, 0),
  21744. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  21745. 0, 0, 0, 0),
  21746. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  21747. 0, 0, 0, 0),
  21748. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  21749. 0, 0, 0, 0),
  21750. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  21751. 0, 0, 0, 0),
  21752. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  21753. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  21754. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  21755. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  21756. 0, 0, 0, 0),
  21757. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  21758. 0, 0, 0, 0),
  21759. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  21760. 0, 0, 0, 0),
  21761. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  21762. 0, 0, 0, 0),
  21763. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  21764. 0, 0, 0, 0),
  21765. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  21766. 0, 0, 0, 0),
  21767. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  21768. 0, 0, 0, 0),
  21769. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  21770. 0, 0, 0, 0),
  21771. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  21772. 0, 0, 0, 0),
  21773. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  21774. 0, 0, 0, 0),
  21775. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  21776. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  21777. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  21778. 0, 0, 0, 0),
  21779. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  21780. 0, 0, 0, 0),
  21781. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  21782. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  21783. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  21784. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  21785. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  21786. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  21787. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  21788. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  21789. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  21790. /* In- call recording */
  21791. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  21792. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  21793. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  21794. 0, 0, 0, 0),
  21795. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  21796. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  21797. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  21798. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  21799. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  21800. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  21801. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  21802. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  21803. /* Switch Definitions */
  21804. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  21805. &slim_fm_switch_mixer_controls),
  21806. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  21807. &slim1_fm_switch_mixer_controls),
  21808. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  21809. &slim3_fm_switch_mixer_controls),
  21810. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  21811. &slim4_fm_switch_mixer_controls),
  21812. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  21813. &slim6_fm_switch_mixer_controls),
  21814. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21815. &pcm_rx_switch_mixer_controls),
  21816. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21817. &int0_mi2s_rx_switch_mixer_controls),
  21818. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21819. &int4_mi2s_rx_switch_mixer_controls),
  21820. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21821. &pri_mi2s_rx_switch_mixer_controls),
  21822. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21823. &sec_mi2s_rx_switch_mixer_controls),
  21824. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21825. &tert_mi2s_rx_switch_mixer_controls),
  21826. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21827. &quat_mi2s_rx_switch_mixer_controls),
  21828. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21829. &quin_mi2s_rx_switch_mixer_controls),
  21830. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  21831. &sco_slim7_switch_mixer_controls),
  21832. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21833. &sen_mi2s_rx_switch_mixer_controls),
  21834. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  21835. &hfp_pri_aux_switch_mixer_controls),
  21836. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  21837. &hfp_aux_switch_mixer_controls),
  21838. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  21839. &hfp_int_switch_mixer_controls),
  21840. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  21841. &hfp_slim7_switch_mixer_controls),
  21842. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  21843. &usb_switch_mixer_controls),
  21844. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  21845. &a2dp_slim7_switch_mixer_controls),
  21846. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  21847. &cdc_dma_wsa_switch_mixer_controls),
  21848. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  21849. &cdc_dma_rx_switch_mixer_controls),
  21850. /* Mixer definitions */
  21851. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21852. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  21853. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21854. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  21855. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21856. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  21857. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21858. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  21859. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21860. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  21861. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21862. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  21863. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21864. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  21865. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  21866. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  21867. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  21868. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  21869. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  21870. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  21871. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21872. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  21873. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21874. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  21875. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21876. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  21877. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21878. quaternary_mi2s_rx_mixer_controls,
  21879. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  21880. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21881. tertiary_mi2s_rx_mixer_controls,
  21882. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  21883. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21884. secondary_mi2s_rx_mixer_controls,
  21885. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  21886. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21887. secondary_mi2s_rx2_mixer_controls,
  21888. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  21889. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21890. primary_mi2s_rx_mixer_controls,
  21891. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  21892. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21893. int0_mi2s_rx_mixer_controls,
  21894. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  21895. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21896. int4_mi2s_rx_mixer_controls,
  21897. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  21898. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21899. quinary_mi2s_rx_mixer_controls,
  21900. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  21901. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21902. senary_mi2s_rx_mixer_controls,
  21903. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  21904. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21905. pri_tdm_rx_0_mixer_controls,
  21906. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  21907. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21908. pri_tdm_rx_1_mixer_controls,
  21909. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  21910. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21911. pri_tdm_rx_2_mixer_controls,
  21912. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  21913. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21914. pri_tdm_rx_3_mixer_controls,
  21915. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  21916. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21917. pri_tdm_tx_0_mixer_controls,
  21918. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  21919. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21920. sec_tdm_rx_0_mixer_controls,
  21921. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  21922. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21923. sec_tdm_rx_1_mixer_controls,
  21924. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  21925. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21926. sec_tdm_rx_2_mixer_controls,
  21927. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  21928. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21929. sec_tdm_rx_3_mixer_controls,
  21930. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  21931. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21932. sec_tdm_tx_0_mixer_controls,
  21933. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  21934. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21935. tert_tdm_rx_0_mixer_controls,
  21936. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  21937. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21938. tert_tdm_tx_0_mixer_controls,
  21939. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  21940. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21941. tert_tdm_rx_1_mixer_controls,
  21942. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  21943. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21944. tert_tdm_rx_2_mixer_controls,
  21945. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  21946. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21947. tert_tdm_rx_3_mixer_controls,
  21948. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  21949. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21950. tert_tdm_rx_4_mixer_controls,
  21951. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  21952. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21953. quat_tdm_rx_0_mixer_controls,
  21954. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  21955. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21956. quat_tdm_tx_0_mixer_controls,
  21957. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  21958. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21959. quat_tdm_rx_1_mixer_controls,
  21960. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  21961. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21962. quat_tdm_rx_2_mixer_controls,
  21963. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  21964. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21965. quat_tdm_rx_3_mixer_controls,
  21966. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  21967. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21968. quin_tdm_rx_0_mixer_controls,
  21969. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  21970. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21971. quin_tdm_tx_0_mixer_controls,
  21972. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  21973. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21974. quin_tdm_rx_1_mixer_controls,
  21975. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  21976. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21977. quin_tdm_rx_2_mixer_controls,
  21978. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  21979. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21980. quin_tdm_rx_3_mixer_controls,
  21981. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  21982. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21983. sen_tdm_tx_0_mixer_controls,
  21984. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  21985. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21986. sen_tdm_rx_0_mixer_controls,
  21987. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  21988. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21989. sen_tdm_rx_1_mixer_controls,
  21990. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  21991. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21992. sen_tdm_rx_2_mixer_controls,
  21993. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  21994. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21995. sen_tdm_rx_3_mixer_controls,
  21996. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  21997. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21998. wsa_cdc_dma_rx_0_mixer_controls,
  21999. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  22000. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22001. wsa_cdc_dma_rx_1_mixer_controls,
  22002. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  22003. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22004. rx_cdc_dma_rx_0_mixer_controls,
  22005. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  22006. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22007. rx_cdc_dma_rx_1_mixer_controls,
  22008. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  22009. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22010. rx_cdc_dma_rx_2_mixer_controls,
  22011. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  22012. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22013. rx_cdc_dma_rx_3_mixer_controls,
  22014. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  22015. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22016. rx_cdc_dma_rx_4_mixer_controls,
  22017. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  22018. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22019. rx_cdc_dma_rx_5_mixer_controls,
  22020. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  22021. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22022. rx_cdc_dma_rx_6_mixer_controls,
  22023. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  22024. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22025. rx_cdc_dma_rx_7_mixer_controls,
  22026. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  22027. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  22028. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  22029. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  22030. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  22031. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  22032. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  22033. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  22034. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  22035. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  22036. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  22037. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  22038. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  22039. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  22040. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  22041. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  22042. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  22043. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  22044. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  22045. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  22046. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  22047. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  22048. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  22049. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  22050. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  22051. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  22052. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  22053. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  22054. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  22055. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  22056. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  22057. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  22058. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  22059. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  22060. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  22061. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  22062. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  22063. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22064. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  22065. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22066. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  22067. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22068. tert_auxpcm_rx_mixer_controls,
  22069. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  22070. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22071. quat_auxpcm_rx_mixer_controls,
  22072. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  22073. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22074. quin_auxpcm_rx_mixer_controls,
  22075. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  22076. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22077. sen_auxpcm_rx_mixer_controls,
  22078. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  22079. /* incall */
  22080. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  22081. incall_music_delivery_mixer_controls,
  22082. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  22083. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22084. incall_music2_delivery_mixer_controls,
  22085. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  22086. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22087. slimbus_4_rx_mixer_controls,
  22088. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  22089. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22090. slimbus_6_rx_mixer_controls,
  22091. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  22092. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22093. usb_audio_rx_mixer_controls,
  22094. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  22095. /* Voice Mixer */
  22096. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  22097. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  22098. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  22099. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  22100. SND_SOC_NOPM, 0, 0,
  22101. sec_i2s_rx_voice_mixer_controls,
  22102. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  22103. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  22104. SND_SOC_NOPM, 0, 0,
  22105. sec_mi2s_rx_voice_mixer_controls,
  22106. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  22107. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  22108. SND_SOC_NOPM, 0, 0,
  22109. slimbus_rx_voice_mixer_controls,
  22110. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  22111. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  22112. SND_SOC_NOPM, 0, 0,
  22113. bt_sco_rx_voice_mixer_controls,
  22114. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  22115. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  22116. SND_SOC_NOPM, 0, 0,
  22117. afe_pcm_rx_voice_mixer_controls,
  22118. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  22119. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  22120. SND_SOC_NOPM, 0, 0,
  22121. aux_pcm_rx_voice_mixer_controls,
  22122. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  22123. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  22124. SND_SOC_NOPM, 0, 0,
  22125. sec_aux_pcm_rx_voice_mixer_controls,
  22126. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  22127. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  22128. SND_SOC_NOPM, 0, 0,
  22129. tert_aux_pcm_rx_voice_mixer_controls,
  22130. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  22131. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  22132. SND_SOC_NOPM, 0, 0,
  22133. quat_aux_pcm_rx_voice_mixer_controls,
  22134. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  22135. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  22136. SND_SOC_NOPM, 0, 0,
  22137. quin_aux_pcm_rx_voice_mixer_controls,
  22138. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  22139. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  22140. SND_SOC_NOPM, 0, 0,
  22141. sen_aux_pcm_rx_voice_mixer_controls,
  22142. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  22143. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  22144. SND_SOC_NOPM, 0, 0,
  22145. hdmi_rx_voice_mixer_controls,
  22146. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  22147. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  22148. SND_SOC_NOPM, 0, 0,
  22149. mi2s_rx_voice_mixer_controls,
  22150. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  22151. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  22152. SND_SOC_NOPM, 0, 0,
  22153. pri_mi2s_rx_voice_mixer_controls,
  22154. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  22155. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  22156. SND_SOC_NOPM, 0, 0,
  22157. int0_mi2s_rx_voice_mixer_controls,
  22158. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  22159. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  22160. SND_SOC_NOPM, 0, 0,
  22161. int4_mi2s_rx_voice_mixer_controls,
  22162. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  22163. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  22164. SND_SOC_NOPM, 0, 0,
  22165. tert_mi2s_rx_voice_mixer_controls,
  22166. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  22167. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  22168. SND_SOC_NOPM, 0, 0,
  22169. quat_mi2s_rx_voice_mixer_controls,
  22170. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  22171. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  22172. SND_SOC_NOPM, 0, 0,
  22173. quin_mi2s_rx_voice_mixer_controls,
  22174. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  22175. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  22176. SND_SOC_NOPM, 0, 0,
  22177. pri_tdm_rx_0_voice_mixer_controls,
  22178. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  22179. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  22180. SND_SOC_NOPM, 0, 0,
  22181. pri_tdm_rx_1_voice_mixer_controls,
  22182. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  22183. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  22184. SND_SOC_NOPM, 0, 0,
  22185. pri_tdm_rx_2_voice_mixer_controls,
  22186. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  22187. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  22188. SND_SOC_NOPM, 0, 0,
  22189. pri_tdm_rx_3_voice_mixer_controls,
  22190. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  22191. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  22192. SND_SOC_NOPM, 0, 0,
  22193. sen_mi2s_rx_voice_mixer_controls,
  22194. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  22195. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  22196. SND_SOC_NOPM, 0, 0,
  22197. quat_tdm_rx_2_voice_mixer_controls,
  22198. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  22199. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  22200. SND_SOC_NOPM, 0, 0,
  22201. wsa_cdc_dma_rx_0_voice_mixer_controls,
  22202. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  22203. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  22204. SND_SOC_NOPM, 0, 0,
  22205. rx_cdc_dma_rx_0_voice_mixer_controls,
  22206. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  22207. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  22208. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  22209. ARRAY_SIZE(tx_voip_mixer_controls)),
  22210. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  22211. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  22212. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  22213. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  22214. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  22215. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  22216. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22217. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  22218. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22219. int_bt_a2dp_rx_mixer_controls,
  22220. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  22221. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22222. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  22223. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22224. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  22225. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22226. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  22227. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22228. tx_voice2_stub_mixer_controls,
  22229. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  22230. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22231. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  22232. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  22233. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  22234. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  22235. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  22236. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22237. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  22238. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  22239. SND_SOC_NOPM, 0, 0,
  22240. slimbus_6_rx_voice_mixer_controls,
  22241. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  22242. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22243. slimbus_7_rx_voice_mixer_controls,
  22244. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  22245. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22246. slimbus_8_rx_voice_mixer_controls,
  22247. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  22248. /* port mixer */
  22249. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  22250. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  22251. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  22252. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  22253. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  22254. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  22255. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  22256. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  22257. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  22258. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  22259. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  22260. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  22261. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  22262. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  22263. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  22264. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  22265. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  22266. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  22267. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  22268. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  22269. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  22270. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22271. sbus_1_rx_port_mixer_controls,
  22272. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  22273. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22274. bt_sco_rx_port_mixer_controls,
  22275. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  22276. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  22277. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  22278. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  22279. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  22280. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  22281. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  22282. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  22283. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  22284. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  22285. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  22286. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  22287. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  22288. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  22289. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  22290. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  22291. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  22292. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  22293. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  22294. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  22295. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  22296. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  22297. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22298. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  22299. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22300. primary_mi2s_rx_port_mixer_controls,
  22301. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  22302. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22303. sec_mi2s_rx_port_mixer_controls,
  22304. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  22305. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22306. tert_mi2s_rx_port_mixer_controls,
  22307. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  22308. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22309. quat_mi2s_rx_port_mixer_controls,
  22310. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  22311. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22312. quin_mi2s_rx_port_mixer_controls,
  22313. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  22314. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22315. sen_mi2s_rx_port_mixer_controls,
  22316. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  22317. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22318. pri_tdm_rx_0_port_mixer_controls,
  22319. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  22320. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22321. pri_tdm_rx_1_port_mixer_controls,
  22322. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  22323. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22324. pri_tdm_rx_2_port_mixer_controls,
  22325. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  22326. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22327. pri_tdm_rx_3_port_mixer_controls,
  22328. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  22329. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22330. sec_tdm_rx_0_port_mixer_controls,
  22331. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  22332. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22333. sec_tdm_rx_1_port_mixer_controls,
  22334. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  22335. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22336. sec_tdm_rx_2_port_mixer_controls,
  22337. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  22338. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22339. sec_tdm_rx_3_port_mixer_controls,
  22340. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  22341. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22342. sec_tdm_rx_7_port_mixer_controls,
  22343. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  22344. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22345. tert_tdm_rx_0_port_mixer_controls,
  22346. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  22347. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22348. tert_tdm_rx_1_port_mixer_controls,
  22349. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  22350. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22351. tert_tdm_rx_2_port_mixer_controls,
  22352. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  22353. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22354. tert_tdm_rx_3_port_mixer_controls,
  22355. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  22356. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22357. quat_tdm_rx_0_port_mixer_controls,
  22358. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  22359. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22360. quat_tdm_rx_1_port_mixer_controls,
  22361. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  22362. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22363. quat_tdm_rx_2_port_mixer_controls,
  22364. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  22365. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22366. quat_tdm_rx_3_port_mixer_controls,
  22367. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  22368. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22369. quat_tdm_rx_7_port_mixer_controls,
  22370. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  22371. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22372. quin_tdm_rx_0_port_mixer_controls,
  22373. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  22374. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22375. quin_tdm_rx_1_port_mixer_controls,
  22376. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  22377. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22378. quin_tdm_rx_2_port_mixer_controls,
  22379. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  22380. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22381. quin_tdm_rx_3_port_mixer_controls,
  22382. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  22383. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22384. sen_tdm_rx_0_port_mixer_controls,
  22385. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  22386. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22387. sen_tdm_rx_1_port_mixer_controls,
  22388. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  22389. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22390. sen_tdm_rx_2_port_mixer_controls,
  22391. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  22392. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22393. sen_tdm_rx_3_port_mixer_controls,
  22394. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  22395. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22396. int0_mi2s_rx_port_mixer_controls,
  22397. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  22398. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22399. int4_mi2s_rx_port_mixer_controls,
  22400. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  22401. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22402. wsa_cdc_dma_rx_0_port_mixer_controls,
  22403. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  22404. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22405. rx_cdc_dma_rx_0_port_mixer_controls,
  22406. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  22407. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  22408. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  22409. ARRAY_SIZE(tx_qchat_mixer_controls)),
  22410. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  22411. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  22412. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  22413. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  22414. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  22415. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  22416. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  22417. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  22418. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  22419. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  22420. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  22421. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  22422. /* lsm mixer definitions */
  22423. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  22424. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  22425. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  22426. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  22427. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  22428. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  22429. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  22430. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  22431. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  22432. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  22433. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  22434. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  22435. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  22436. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  22437. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  22438. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  22439. /* Virtual Pins to force backends ON atm */
  22440. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  22441. SND_SOC_DAPM_INPUT("BE_IN"),
  22442. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  22443. &slim0_rx_vi_fb_lch_mux),
  22444. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  22445. &slim0_rx_vi_fb_rch_mux),
  22446. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  22447. &wsa_rx_0_vi_fb_lch_mux),
  22448. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  22449. &wsa_rx_0_vi_fb_rch_mux),
  22450. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  22451. &mi2s_rx_vi_fb_mux),
  22452. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  22453. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  22454. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  22455. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  22456. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  22457. &voc_ext_ec_mux),
  22458. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  22459. &ext_ec_ref_mux_ul1),
  22460. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  22461. &ext_ec_ref_mux_ul2),
  22462. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  22463. &ext_ec_ref_mux_ul3),
  22464. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  22465. &ext_ec_ref_mux_ul4),
  22466. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  22467. &ext_ec_ref_mux_ul5),
  22468. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  22469. &ext_ec_ref_mux_ul6),
  22470. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  22471. &ext_ec_ref_mux_ul8),
  22472. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  22473. &ext_ec_ref_mux_ul9),
  22474. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  22475. &ext_ec_ref_mux_ul10),
  22476. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  22477. &ext_ec_ref_mux_ul16),
  22478. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  22479. &ext_ec_ref_mux_ul17),
  22480. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  22481. &ext_ec_ref_mux_ul18),
  22482. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  22483. &ext_ec_ref_mux_ul19),
  22484. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  22485. &ext_ec_ref_mux_ul28),
  22486. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  22487. &ext_ec_ref_mux_ul29),
  22488. };
  22489. static const struct snd_soc_dapm_route intercon[] = {
  22490. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22491. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22492. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22493. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22494. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22495. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22496. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22497. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22498. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22499. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22500. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22501. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22502. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22503. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22504. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22505. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22506. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22507. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  22508. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22509. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22510. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22511. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22512. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22513. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22514. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22515. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22516. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22517. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22518. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22519. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22520. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22521. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22522. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22523. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22524. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22525. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  22526. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22527. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22528. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22529. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22530. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22531. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22532. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22533. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22534. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22535. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22536. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22537. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22538. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22539. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22540. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22541. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22542. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22543. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  22544. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22545. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22546. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22547. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22548. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22549. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22550. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22551. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22552. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22553. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22554. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22555. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22556. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22557. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22558. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22559. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22560. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22561. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  22562. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22563. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22564. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22565. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22566. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22567. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22568. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22569. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22570. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22571. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22572. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22573. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22574. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22575. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22576. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22577. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22578. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22579. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  22580. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22581. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22582. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22583. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22584. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22585. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22586. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22587. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22588. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22589. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22590. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22591. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22592. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22593. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22594. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22595. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22596. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22597. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  22598. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22599. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22600. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22601. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22602. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22603. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22604. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22605. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22606. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22607. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22608. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22609. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22610. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22611. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22612. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22613. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22614. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22615. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  22616. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22617. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22618. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22619. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22620. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22621. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22622. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22623. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22624. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22625. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22626. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22627. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22628. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22629. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22630. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22631. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22632. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22633. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  22634. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22635. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22636. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22637. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22638. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22639. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22640. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22641. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22642. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22643. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22644. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22645. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22646. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22647. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22648. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22649. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22650. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22651. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  22652. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22653. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22654. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22655. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22656. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22657. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22658. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22659. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22660. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22661. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22662. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22663. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22664. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22665. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22666. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22667. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22668. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22669. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  22670. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22671. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22672. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22673. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22674. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22675. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22676. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22677. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22678. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22679. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22680. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22681. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22682. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22683. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22684. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22685. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22686. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22687. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  22688. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22689. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22690. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22691. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22692. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22693. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22694. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22695. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22696. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22697. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22698. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22699. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22700. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22701. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22702. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22703. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22704. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22705. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  22706. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22707. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22708. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22709. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22710. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22711. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22712. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22713. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22714. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22715. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22716. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22717. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22718. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22719. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22720. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22721. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22722. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22723. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  22724. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22725. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22726. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22727. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22728. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22729. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22730. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22731. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22732. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22733. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22734. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22735. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22736. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22737. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22738. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22739. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22740. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22741. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  22742. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22743. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22744. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22745. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22746. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22747. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22748. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22749. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22750. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22751. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22752. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22753. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22754. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22755. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22756. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22757. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22758. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22759. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  22760. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  22761. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  22762. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  22763. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  22764. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  22765. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  22766. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  22767. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  22768. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  22769. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  22770. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  22771. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  22772. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  22773. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  22774. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  22775. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  22776. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  22777. {"HDMI", NULL, "HDMI Mixer"},
  22778. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  22779. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  22780. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  22781. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  22782. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  22783. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  22784. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  22785. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  22786. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  22787. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  22788. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  22789. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  22790. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  22791. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  22792. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  22793. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  22794. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  22795. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  22796. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  22797. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  22798. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  22799. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  22800. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  22801. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  22802. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  22803. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  22804. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  22805. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  22806. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  22807. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  22808. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  22809. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  22810. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  22811. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  22812. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  22813. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  22814. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22815. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22816. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22817. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22818. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22819. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22820. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22821. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22822. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22823. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22824. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22825. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22826. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22827. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22828. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22829. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22830. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22831. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  22832. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22833. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22834. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22835. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22836. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22837. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22838. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22839. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22840. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22841. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22842. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22843. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22844. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22845. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22846. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22847. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22848. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22849. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  22850. /* incall */
  22851. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  22852. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  22853. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  22854. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  22855. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  22856. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22857. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22858. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22859. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22860. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  22861. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22862. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22863. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22864. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22865. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  22866. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22867. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22868. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22869. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22870. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22871. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22872. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22873. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22874. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22875. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22876. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22877. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22878. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22879. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22880. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22881. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22882. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22883. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  22884. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22885. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22886. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22887. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22888. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22889. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22890. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22891. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22892. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22893. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22894. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22895. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22896. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22897. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22898. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22899. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22900. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22901. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  22902. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22903. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22904. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22905. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22906. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22907. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22908. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22909. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22910. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22911. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22912. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22913. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22914. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22915. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22916. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22917. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22918. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22919. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  22920. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22921. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22922. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22923. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22924. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22925. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22926. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22927. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22928. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22929. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22930. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22931. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22932. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22933. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22934. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22935. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22936. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22937. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  22938. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22939. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22940. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22941. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22942. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22943. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22944. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  22945. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22946. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22947. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22948. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22949. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22950. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22951. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22952. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22953. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22954. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22955. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22956. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22957. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22958. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22959. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22960. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22961. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22962. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22963. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22964. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22965. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22966. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22967. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22968. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22969. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22970. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22971. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22972. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22973. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22974. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22975. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22976. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22977. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22978. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22979. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22980. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22981. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22982. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22983. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22984. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22985. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22986. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22987. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22988. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22989. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22990. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22991. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22992. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22993. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22994. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22995. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22996. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22997. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22998. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22999. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23000. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23001. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23002. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23003. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23004. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23005. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23006. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23007. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23008. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23009. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23010. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23011. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23012. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23013. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23014. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23015. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23016. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23017. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23018. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23019. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23020. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23021. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23022. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23023. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23024. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23025. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23026. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23027. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  23028. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23029. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23030. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23031. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23032. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23033. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23034. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23035. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23036. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23037. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23038. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23039. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23040. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23041. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23042. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23043. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23044. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  23045. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23046. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23047. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23048. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23049. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23050. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23051. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23052. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23053. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23054. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23055. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23056. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23057. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23058. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23059. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23060. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  23061. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23062. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23063. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23064. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23065. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23066. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23067. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23068. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23069. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23070. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23071. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23072. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23073. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23074. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23075. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23076. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  23077. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23078. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  23079. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23080. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23081. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23082. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23083. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23084. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23085. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23086. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23087. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23088. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23089. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23090. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23091. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23092. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23093. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23094. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23095. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23096. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23097. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23098. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  23099. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23100. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23101. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23102. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23103. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23104. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23105. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23106. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23107. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23108. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23109. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23110. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23111. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23112. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23113. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23114. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  23115. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23116. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23117. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23118. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23119. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23120. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23121. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23122. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23123. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23124. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23125. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23126. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23127. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23128. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23129. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23130. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  23131. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23132. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23133. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23134. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23135. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23136. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23137. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23138. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23139. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23140. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23141. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23142. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23143. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23144. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23145. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23146. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23147. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23148. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  23149. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23150. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23151. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23152. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23153. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23154. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23155. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23156. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23157. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23158. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23159. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23160. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23161. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23162. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23163. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23164. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  23165. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23166. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23167. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23168. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23169. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23170. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23171. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23172. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23173. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23174. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23175. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23176. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23177. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23178. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23179. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23180. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23181. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23182. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  23183. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23184. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23185. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23186. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23187. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23188. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23189. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23190. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23191. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23192. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23193. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23194. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23195. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23196. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23197. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23198. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23199. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23200. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  23201. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23202. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23203. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23204. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23205. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23206. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23207. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23208. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23209. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23210. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23211. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23212. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23213. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23214. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23215. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23216. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23217. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23218. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  23219. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23220. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23221. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23222. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23223. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23224. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23225. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23226. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23227. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23228. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23229. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23230. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23231. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23232. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23233. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23234. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23235. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23236. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  23237. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23238. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23239. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23240. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23241. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23242. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23243. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23244. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23245. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23246. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23247. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23248. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23249. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23250. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23251. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23252. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23253. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  23254. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23255. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23256. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23257. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23258. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23259. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23260. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23261. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23262. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23263. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23264. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23265. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23266. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23267. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23268. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23269. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23270. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23271. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  23272. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23273. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23274. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23275. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23276. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23277. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23278. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23279. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23280. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23281. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23282. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23283. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23284. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23285. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23286. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23287. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23288. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23289. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  23290. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23291. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23292. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23293. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23294. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23295. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23296. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23297. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23298. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23299. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23300. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23301. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23302. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23303. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23304. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23305. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23306. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23307. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  23308. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23309. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23310. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23311. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23312. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23313. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23314. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23315. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23316. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23317. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23318. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23319. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23320. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23321. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23322. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23323. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23324. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23325. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  23326. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23327. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23328. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23329. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23330. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23331. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23332. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23333. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23334. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23335. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23336. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23337. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23338. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23339. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23340. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23341. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23342. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  23343. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23344. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23345. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23346. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23347. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23348. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23349. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23350. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23351. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23352. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23353. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23354. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23355. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23356. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23357. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23358. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23359. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23360. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  23361. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23362. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23363. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23364. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23365. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23366. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23367. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23368. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23369. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23370. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23371. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23372. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23373. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23374. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23375. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23376. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23377. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  23378. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23379. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23380. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23381. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23382. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23383. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23384. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23385. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23386. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23387. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23388. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23389. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23390. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23391. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23392. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23393. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23394. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23395. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  23396. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23397. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23398. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23399. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23400. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23401. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23402. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23403. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23404. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23405. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23406. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23407. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23408. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23409. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23410. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23411. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23412. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23413. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  23414. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23415. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23416. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23417. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23418. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23419. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23420. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23421. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23422. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23423. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23424. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23425. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23426. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23427. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23428. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23429. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23430. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23431. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  23432. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23433. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23434. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23435. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23436. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23437. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23438. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23439. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23440. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23441. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23442. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23443. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23444. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23445. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23446. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23447. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23448. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23449. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  23450. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23451. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23452. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23453. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23454. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23455. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23456. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23457. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23458. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23459. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23460. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23461. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23462. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23463. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23464. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23465. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23466. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23467. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23468. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  23469. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23470. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23471. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23472. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23473. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23474. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23475. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23476. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23477. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23478. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23479. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23480. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23481. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23482. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23483. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23484. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23485. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  23486. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23487. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23488. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23489. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23490. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23491. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23492. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23493. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23494. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23495. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23496. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23497. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23498. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23499. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23500. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23501. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23502. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23503. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23504. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  23505. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23506. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23507. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23508. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23509. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23510. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23511. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23512. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23513. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23514. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23515. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23516. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23517. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23518. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23519. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23520. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23521. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23522. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23523. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  23524. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23525. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23526. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23527. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23528. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23529. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23530. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23531. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23532. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23533. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23534. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23535. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23536. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23537. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23538. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23539. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23540. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23541. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23542. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  23543. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23544. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23545. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23546. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23547. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23548. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23549. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23550. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23551. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23552. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23553. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23554. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23555. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23556. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23557. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23558. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23559. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23560. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23561. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  23562. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23563. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23564. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23565. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23566. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23567. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23568. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23569. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23570. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23571. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23572. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23573. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23574. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23575. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23576. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23577. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23578. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  23579. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23580. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23581. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23582. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23583. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23584. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23585. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23586. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23587. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23588. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23589. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23590. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23591. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23592. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23593. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23594. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23595. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23596. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23597. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  23598. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23599. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23600. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23601. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23602. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23603. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23604. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23605. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23606. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23607. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23608. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23609. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23610. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23611. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23612. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23613. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23614. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23615. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23616. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  23617. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23618. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23619. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23620. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23621. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23622. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23623. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23624. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23625. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23626. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23627. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23628. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23629. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23630. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23631. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23632. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23633. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23634. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23635. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  23636. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23637. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23638. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23639. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23640. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23641. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23642. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23643. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23644. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23645. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23646. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23647. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23648. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23649. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23650. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23651. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23652. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23653. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23654. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  23655. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23656. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23657. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23658. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23659. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23660. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23661. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23662. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23663. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23664. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23665. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23666. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23667. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23668. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23669. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23670. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23671. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  23672. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23673. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23674. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23675. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23676. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23677. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23678. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23679. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23680. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23681. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23682. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23683. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23684. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23685. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23686. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23687. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23688. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23689. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23690. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  23691. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23692. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23693. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23694. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23695. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23696. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23697. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23698. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23699. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23700. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23701. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23702. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23703. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23704. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23705. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23706. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23707. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23708. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23709. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  23710. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23711. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23712. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23713. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23714. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23715. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23716. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23717. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23718. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23719. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23720. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23721. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23722. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23723. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23724. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23725. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23726. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23727. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23728. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  23729. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  23730. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  23731. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  23732. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  23733. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  23734. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  23735. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  23736. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23737. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23738. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23739. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23740. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23741. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23742. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23743. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23744. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23745. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23746. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23747. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23748. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23749. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23750. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23751. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23752. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  23753. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23754. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  23755. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  23756. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  23757. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  23758. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  23759. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  23760. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  23761. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  23762. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  23763. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  23764. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  23765. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  23766. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  23767. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  23768. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  23769. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  23770. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  23771. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  23772. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  23773. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  23774. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  23775. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  23776. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23777. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23778. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23779. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23780. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23781. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23782. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23783. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23784. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23785. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23786. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23787. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23788. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23789. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23790. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23791. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23792. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23793. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  23794. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23795. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23796. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23797. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23798. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23799. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23800. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23801. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23802. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23803. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23804. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23805. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23806. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  23807. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23808. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23809. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23810. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23811. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23812. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23813. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23814. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23815. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23816. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23817. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23818. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23819. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23820. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23821. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23822. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23823. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23824. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23825. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23826. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23827. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23828. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23829. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23830. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23831. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23832. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23833. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23834. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23835. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23836. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23837. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23838. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23839. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23840. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23841. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23842. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23843. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23844. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23845. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23846. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23847. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23848. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23849. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23850. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23851. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23852. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23853. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23854. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23855. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23856. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23857. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23858. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23859. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23860. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23861. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23862. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23863. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23864. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23865. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23866. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23867. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23868. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23869. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23870. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23871. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23872. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23873. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23874. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23875. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23876. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23877. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23878. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23879. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23880. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23881. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23882. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23883. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23884. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23885. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23886. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23887. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23888. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23889. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23890. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23891. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23892. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23893. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23894. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23895. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23896. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23897. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23898. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23899. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23900. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23901. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23902. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23903. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23904. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23905. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23906. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23907. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23908. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23909. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23910. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23911. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23912. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23913. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23914. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23915. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23916. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23917. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23918. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23919. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23920. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23921. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23922. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23923. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23924. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23925. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23926. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23927. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23928. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23929. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23930. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23931. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23932. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23933. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23934. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23935. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23936. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23937. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23938. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23939. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23940. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23941. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23942. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23943. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23944. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23945. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23946. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23947. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23948. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23949. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23950. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23951. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23952. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23953. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23954. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23955. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23956. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23957. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23958. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23959. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23960. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23961. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23962. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23963. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23964. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23965. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23966. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23967. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23968. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23969. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23970. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23971. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23972. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23973. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23974. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23975. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23976. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23977. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23978. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23979. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23980. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23981. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23982. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23983. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23984. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23985. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23986. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23987. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23988. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23989. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23990. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23991. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23992. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23993. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23994. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23995. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23996. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23997. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23998. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23999. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24000. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24001. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24002. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24003. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24004. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24005. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24006. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24007. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24008. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24009. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24010. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24011. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24012. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24013. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24014. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24015. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24016. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24017. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24018. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24019. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24020. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24021. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24022. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24023. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24024. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24025. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24026. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24027. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24028. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24029. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24030. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24031. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24032. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24033. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24034. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24035. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24036. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24037. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24038. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24039. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24040. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24041. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24042. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24043. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24044. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24045. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24046. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24047. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24048. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24049. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24050. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24051. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24052. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24053. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24054. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24055. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24056. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24057. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24058. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24059. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24060. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24061. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24062. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24063. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24064. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24065. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24066. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24067. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24068. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24069. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24070. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24071. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24072. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24073. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24074. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24075. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24076. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24077. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24078. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24079. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24080. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24081. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24082. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24083. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24084. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24085. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24086. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24087. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24088. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24089. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24090. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24091. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24092. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24093. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24094. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24095. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24096. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24097. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24098. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24099. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24100. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24101. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24102. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24103. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24104. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24105. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24106. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24107. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24108. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24109. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24110. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24111. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24112. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24113. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24114. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24115. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24116. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24117. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24118. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24119. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24120. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24121. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24122. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24123. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24124. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24125. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24126. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24127. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24128. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24129. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24130. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24131. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24132. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24133. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24134. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24135. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24136. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24137. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24138. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24139. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24140. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24141. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24142. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24143. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24144. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24145. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24146. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24147. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24148. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24149. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24150. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24151. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24152. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24153. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24154. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24155. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24156. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24157. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24158. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24159. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24160. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24161. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24162. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24163. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24164. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24165. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24166. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24167. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24168. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24169. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24170. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24171. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24172. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24173. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24174. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24175. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24176. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24177. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24178. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24179. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24180. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24181. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24182. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24183. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24184. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24185. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24186. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24187. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24188. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24189. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24190. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24191. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24192. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24193. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24194. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24195. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24196. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24197. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24198. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24199. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24200. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24201. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24202. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24203. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24204. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24205. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24206. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24207. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24208. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24209. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24210. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24211. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24212. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24213. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24214. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24215. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24216. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24217. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24218. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24219. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24220. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24221. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24222. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24223. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24224. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24225. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24226. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24227. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24228. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24229. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24230. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24231. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24232. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24233. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24234. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24235. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24236. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24237. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24238. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24239. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24240. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24241. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24242. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24243. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24244. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24245. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24246. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24247. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24248. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24249. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24250. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24251. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24252. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24253. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24254. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24255. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24256. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24257. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24258. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24259. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24260. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24261. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24262. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24263. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24264. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24265. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24266. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24267. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24268. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24269. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24270. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24271. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24272. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24273. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24274. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24275. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24276. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24277. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24278. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24279. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24280. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24281. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24282. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24283. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24284. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24285. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24286. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24287. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24288. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24289. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24290. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24291. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24292. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24293. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24294. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24295. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24296. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24297. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24298. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24299. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24300. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24301. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24302. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24303. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24304. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24305. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24306. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24307. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24308. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24309. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24310. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24311. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24312. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24313. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24314. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24315. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24316. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24317. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24318. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24319. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24320. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24321. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24322. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24323. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24324. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24325. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24326. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24327. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24328. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  24329. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  24330. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24331. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24332. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24333. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24334. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24335. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24336. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24337. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24338. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24339. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24340. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24341. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24342. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24343. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24344. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24345. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24346. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  24347. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  24348. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24349. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24350. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24351. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24352. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24353. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24354. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24355. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24356. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24357. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24358. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24359. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24360. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24361. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24362. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24363. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24364. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  24365. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24366. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24367. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24368. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24369. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24370. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24371. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24372. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24373. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24374. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24375. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24376. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24377. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24378. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24379. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24380. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24381. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  24382. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24383. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24384. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24385. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24386. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24387. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24388. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24389. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24390. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24391. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24392. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24393. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24394. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24395. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24396. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24397. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24398. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24399. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24400. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24401. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24402. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24403. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24404. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24405. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24406. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24407. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24408. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24409. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24410. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24411. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24412. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24413. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24414. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24415. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24416. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24417. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  24418. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24419. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  24420. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  24421. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  24422. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  24423. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  24424. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  24425. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  24426. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  24427. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  24428. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  24429. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  24430. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  24431. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  24432. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  24433. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  24434. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  24435. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  24436. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24437. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24438. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24439. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24440. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24441. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24442. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24443. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24444. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24445. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24446. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24447. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24448. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24449. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24450. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24451. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24452. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24453. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  24454. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24455. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24456. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24457. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24458. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24459. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24460. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24461. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24462. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24463. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24464. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24465. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24466. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24467. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24468. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24469. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24470. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24471. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  24472. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24473. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24474. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24475. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24476. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24477. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24478. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24479. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24480. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24481. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24482. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24483. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24484. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24485. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24486. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24487. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24488. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  24489. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24490. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24491. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24492. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24493. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24494. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24495. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24496. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24497. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24498. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24499. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24500. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24501. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24502. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24503. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24504. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24505. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  24506. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24507. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24508. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24509. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24510. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24511. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24512. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24513. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24514. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24515. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24516. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24517. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24518. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24519. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24520. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24521. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24522. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  24523. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24524. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24525. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24526. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24527. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24528. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24529. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24530. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24531. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24532. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24533. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24534. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24535. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24536. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24537. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24538. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24539. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  24540. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24541. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24542. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24543. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24544. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24545. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  24546. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24547. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24548. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24549. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  24550. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24551. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24552. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24553. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24554. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24555. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24556. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24557. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  24558. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24559. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24560. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24561. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24562. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24563. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  24564. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24565. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24566. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24567. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24568. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24569. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  24570. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24571. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24572. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24573. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24574. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24575. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  24576. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24577. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24578. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24579. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24580. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24581. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  24582. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  24583. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24584. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24585. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24586. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24587. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  24588. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24589. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24590. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24591. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24592. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24593. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  24594. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24595. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24596. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24597. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24598. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24599. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  24600. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24601. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24602. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24603. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24604. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24605. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  24606. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24607. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24608. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24609. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24610. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24611. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  24612. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24613. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24614. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24615. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24616. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24617. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  24618. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24619. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24620. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24621. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24622. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24623. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  24624. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24625. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24626. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24627. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24628. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24629. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  24630. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24631. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24632. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24633. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24634. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24635. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  24636. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24637. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24638. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24639. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24640. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24641. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  24642. {"HDMI", NULL, "HDMI_DL_HL"},
  24643. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24644. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24645. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24646. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24647. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24648. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24649. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24650. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  24651. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24652. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24653. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24654. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24655. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24656. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24657. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24658. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  24659. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24660. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24661. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24662. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24663. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24664. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  24665. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24666. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24667. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24668. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24669. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24670. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  24671. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24672. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24673. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24674. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24675. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24676. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24677. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24678. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  24679. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24680. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24681. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24682. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24683. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24684. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24685. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  24686. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24687. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24688. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24689. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24690. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24691. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24692. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  24693. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  24694. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  24695. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24696. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24697. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24698. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24699. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24700. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24701. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  24702. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  24703. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  24704. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24705. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24706. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24707. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24708. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24709. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24710. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  24711. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  24712. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  24713. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24714. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24715. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24716. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24717. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24718. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24719. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  24720. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  24721. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  24722. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24723. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24724. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24725. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24726. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24727. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24728. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  24729. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24730. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24731. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24732. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24733. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  24734. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24735. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  24736. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24737. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24738. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  24739. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24740. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24741. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  24742. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24743. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24744. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24745. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24746. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24747. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24748. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  24749. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  24750. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  24751. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  24752. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24753. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24754. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24755. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24756. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24757. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24758. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  24759. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  24760. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  24761. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24762. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  24763. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24764. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24765. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24766. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24767. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24768. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24769. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24770. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24771. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24772. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24773. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24774. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24775. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24776. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24777. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24778. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24779. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24780. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24781. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24782. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24783. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24784. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24785. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24786. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24787. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24788. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24789. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24790. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24791. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24792. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24793. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24794. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24795. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24796. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24797. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24798. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  24799. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  24800. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  24801. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24802. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  24803. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24804. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24805. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24806. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24807. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24808. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24809. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24810. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24811. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24812. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24813. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24814. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24815. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24816. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24817. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24818. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24819. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24820. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24821. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24822. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24823. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24824. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24825. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24826. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24827. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24828. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24829. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24830. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24831. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24832. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24833. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24834. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24835. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24836. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24837. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  24838. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  24839. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  24840. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  24841. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  24842. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  24843. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  24844. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  24845. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  24846. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  24847. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  24848. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  24849. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  24850. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  24851. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  24852. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  24853. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  24854. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  24855. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  24856. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  24857. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  24858. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  24859. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  24860. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  24861. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  24862. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  24863. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  24864. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  24865. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  24866. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  24867. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  24868. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  24869. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  24870. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  24871. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  24872. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  24873. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  24874. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  24875. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  24876. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  24877. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  24878. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  24879. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  24880. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  24881. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  24882. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  24883. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  24884. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  24885. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  24886. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  24887. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  24888. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  24889. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  24890. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  24891. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  24892. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  24893. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  24894. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  24895. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  24896. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  24897. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  24898. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  24899. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  24900. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  24901. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  24902. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  24903. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  24904. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  24905. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  24906. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  24907. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  24908. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  24909. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  24910. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  24911. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  24912. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  24913. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  24914. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  24915. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  24916. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  24917. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  24918. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  24919. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  24920. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  24921. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  24922. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  24923. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  24924. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  24925. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  24926. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  24927. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  24928. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  24929. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  24930. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  24931. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  24932. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  24933. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  24934. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  24935. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  24936. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  24937. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  24938. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  24939. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  24940. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  24941. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  24942. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24943. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  24944. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  24945. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24946. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  24947. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  24948. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24949. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24950. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24951. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24952. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24953. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24954. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24955. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24956. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24957. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24958. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24959. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24960. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24961. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  24962. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24963. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24964. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24965. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24966. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24967. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24968. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24969. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24970. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24971. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24972. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24973. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24974. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24975. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  24976. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24977. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24978. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24979. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24980. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24981. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24982. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24983. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24984. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24985. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24986. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24987. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24988. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24989. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  24990. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24991. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24992. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24993. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24994. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24995. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24996. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24997. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24998. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24999. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25000. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25001. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25002. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25003. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  25004. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25005. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25006. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25007. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25008. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25009. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25010. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25011. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25012. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25013. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25014. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25015. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25016. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25017. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  25018. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25019. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25020. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25021. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25022. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25023. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25024. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25025. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25026. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25027. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25028. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25029. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  25030. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25031. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25032. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25033. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25034. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25035. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25036. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25037. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25038. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25039. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25040. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25041. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  25042. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25043. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25044. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25045. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25046. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25047. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25048. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25049. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25050. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25051. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25052. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25053. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  25054. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  25055. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  25056. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  25057. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  25058. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  25059. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  25060. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  25061. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  25062. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  25063. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  25064. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  25065. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  25066. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  25067. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  25068. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  25069. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  25070. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  25071. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  25072. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  25073. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  25074. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  25075. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  25076. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  25077. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  25078. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  25079. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  25080. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  25081. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  25082. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  25083. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  25084. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  25085. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  25086. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  25087. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  25088. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  25089. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  25090. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  25091. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  25092. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  25093. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  25094. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  25095. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  25096. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  25097. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  25098. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  25099. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  25100. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  25101. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  25102. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  25103. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  25104. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  25105. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  25106. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  25107. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  25108. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  25109. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  25110. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  25111. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  25112. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  25113. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  25114. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  25115. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  25116. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  25117. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  25118. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  25119. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  25120. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  25121. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  25122. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  25123. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  25124. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  25125. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  25126. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  25127. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  25128. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  25129. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  25130. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  25131. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  25132. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  25133. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  25134. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  25135. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  25136. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  25137. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  25138. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  25139. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  25140. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  25141. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  25142. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  25143. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  25144. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  25145. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  25146. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  25147. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  25148. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  25149. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  25150. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  25151. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  25152. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  25153. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  25154. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  25155. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  25156. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  25157. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  25158. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  25159. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  25160. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  25161. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  25162. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  25163. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  25164. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  25165. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  25166. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  25167. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  25168. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  25169. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  25170. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  25171. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  25172. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  25173. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25174. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25175. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25176. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25177. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25178. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25179. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25180. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25181. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25182. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25183. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25184. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25185. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25186. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25187. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25188. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25189. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25190. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25191. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25192. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25193. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25194. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25195. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25196. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25197. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  25198. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25199. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25200. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25201. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25202. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25203. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25204. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25205. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25206. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25207. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25208. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25209. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25210. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25211. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25212. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25213. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25214. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25215. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25216. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25217. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25218. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25219. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25220. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25221. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25222. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  25223. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25224. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25225. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25226. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25227. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25228. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25229. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25230. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25231. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25232. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25233. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25234. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25235. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25236. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25237. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25238. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25239. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25240. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25241. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25242. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25243. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25244. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25245. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25246. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25247. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  25248. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25249. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25250. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25251. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25252. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25253. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25254. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25255. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25256. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25257. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25258. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25259. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25260. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25261. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25262. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25263. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25264. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25265. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25266. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25267. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25268. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25269. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25270. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25271. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25272. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  25273. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25274. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25275. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25276. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25277. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25278. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25279. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25280. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25281. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25282. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25283. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25284. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25285. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25286. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25287. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25288. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25289. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25290. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25291. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25292. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25293. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25294. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25295. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25296. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25297. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  25298. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25299. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25300. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25301. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25302. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25303. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25304. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25305. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25306. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25307. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25308. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25309. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25310. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25311. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25312. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25313. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25314. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25315. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25316. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25317. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25318. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25319. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25320. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25321. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25322. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  25323. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25324. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25325. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25326. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25327. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25328. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25329. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25330. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25331. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25332. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25333. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25334. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25335. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25336. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25337. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25338. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25339. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25340. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25341. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25342. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25343. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25344. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25345. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25346. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25347. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  25348. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25349. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25350. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25351. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25352. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25353. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25354. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25355. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25356. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25357. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25358. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25359. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25360. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25361. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25362. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25363. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25364. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25365. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25366. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25367. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25368. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25369. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25370. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25371. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25372. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  25373. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  25374. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  25375. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25376. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25377. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25378. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25379. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25380. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25381. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25382. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25383. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25384. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25385. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25386. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25387. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25388. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25389. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25390. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25391. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25392. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25393. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25394. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25395. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25396. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25397. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25398. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25399. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  25400. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25401. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25402. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25403. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25404. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25405. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25406. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25407. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25408. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25409. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25410. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25411. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25412. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25413. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25414. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25415. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25416. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25417. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25418. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25419. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25420. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25421. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25422. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25423. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25424. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  25425. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25426. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25427. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25428. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25429. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25430. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25431. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25432. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25433. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25434. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25435. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25436. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25437. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25438. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25439. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25440. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25441. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25442. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25443. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25444. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25445. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25446. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25447. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25448. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25449. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  25450. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25451. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25452. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25453. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25454. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25455. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25456. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25457. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25458. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25459. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25460. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25461. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25462. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25463. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25464. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25465. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25466. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25467. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25468. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25469. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25470. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25471. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25472. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25473. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25474. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  25475. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25476. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25477. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25478. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25479. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25480. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25481. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25482. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25483. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25484. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25485. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25486. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25487. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25488. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25489. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25490. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25491. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25492. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25493. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25494. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25495. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25496. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25497. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25498. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25499. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  25500. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25501. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25502. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25503. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25504. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25505. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25506. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25507. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25508. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25509. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25510. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25511. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25512. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25513. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25514. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25515. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25516. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25517. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25518. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25519. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25520. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25521. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25522. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25523. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25524. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  25525. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25526. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25527. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25528. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25529. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25530. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25531. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25532. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25533. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25534. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25535. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25536. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25537. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25538. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25539. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25540. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25541. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25542. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25543. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25544. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25545. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25546. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25547. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25548. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25549. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  25550. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25551. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25552. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25553. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25554. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25555. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25556. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25557. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25558. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25559. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25560. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25561. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25562. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25563. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25564. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25565. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25566. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25567. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25568. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25569. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25570. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25571. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25572. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25573. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25574. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  25575. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  25576. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  25577. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25578. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25579. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25580. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25581. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25582. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25583. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25584. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25585. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25586. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25587. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25588. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25589. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25590. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25591. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25592. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25593. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25594. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25595. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25596. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25597. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25598. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25599. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25600. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25601. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  25602. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25603. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25604. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25605. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25606. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25607. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25608. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25609. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25610. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25611. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25612. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25613. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25614. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25615. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25616. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25617. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25618. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25619. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25620. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25621. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25622. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25623. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25624. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25625. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25626. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  25627. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25628. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25629. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25630. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25631. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25632. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25633. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25634. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25635. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25636. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25637. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25638. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25639. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25640. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25641. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25642. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25643. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25644. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25645. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25646. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25647. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25648. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25649. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25650. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25651. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  25652. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25653. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25654. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25655. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25656. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25657. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25658. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25659. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25660. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25661. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25662. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25663. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25664. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25665. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25666. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25667. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25668. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25669. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25670. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25671. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25672. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25673. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25674. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25675. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25676. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  25677. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25678. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25679. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25680. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25681. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25682. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25683. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25684. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25685. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25686. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25687. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25688. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25689. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25690. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25691. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25692. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25693. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25694. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25695. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25696. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25697. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  25698. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25699. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25700. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25701. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25702. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25703. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25704. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25705. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25706. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25707. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25708. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25709. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25710. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25711. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25712. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25713. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25714. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25715. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25716. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25717. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25718. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  25719. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25720. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25721. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25722. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25723. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25724. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25725. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25726. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25727. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25728. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25729. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25730. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25731. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25732. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25733. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25734. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25735. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25736. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25737. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25738. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25739. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  25740. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25741. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25742. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25743. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25744. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25745. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25746. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25747. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25748. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25749. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25750. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25751. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25752. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25753. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25754. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25755. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25756. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25757. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25758. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25759. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25760. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  25761. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25762. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25763. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25764. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25765. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25766. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25767. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25768. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25769. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25770. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25771. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25772. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25773. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  25774. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25775. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25776. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25777. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25778. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25779. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25780. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25781. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25782. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25783. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25784. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25785. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25786. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  25787. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25788. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25789. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25790. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25791. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  25792. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25793. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25794. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25795. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  25796. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25797. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25798. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25799. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25800. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25801. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25802. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25803. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25804. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25805. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25806. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25807. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25808. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25809. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25810. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25811. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25812. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25813. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25814. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25815. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25816. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  25817. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25818. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25819. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  25820. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25821. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  25822. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  25823. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  25824. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  25825. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25826. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25827. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25828. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25829. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25830. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25831. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25832. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  25833. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25834. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25835. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25836. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25837. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  25838. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25839. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25840. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25841. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  25842. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25843. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25844. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25845. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  25846. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25847. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25848. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25849. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  25850. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  25851. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25852. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25853. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  25854. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25855. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25856. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25857. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25858. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25859. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25860. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  25861. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25862. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25863. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25864. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25865. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25866. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  25867. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25868. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25869. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  25870. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  25871. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  25872. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25873. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  25874. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25875. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25876. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  25877. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25878. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25879. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  25880. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25881. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25882. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  25883. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  25884. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25885. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  25886. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25887. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25888. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  25889. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25890. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25891. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  25892. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25893. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25894. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25895. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  25896. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25897. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25898. {"STUB_RX", NULL, "STUB_RX Mixer"},
  25899. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25900. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25901. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  25902. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25903. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25904. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  25905. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25906. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25907. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25908. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25909. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25910. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  25911. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25912. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25913. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25914. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25915. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25916. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  25917. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25918. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25919. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25920. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  25921. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25922. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25923. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  25924. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  25925. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25926. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  25927. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  25928. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  25929. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  25930. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25931. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25932. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25933. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25934. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25935. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25936. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25937. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25938. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25939. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25940. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25941. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25942. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25943. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  25944. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25945. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  25946. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25947. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  25948. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  25949. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  25950. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25951. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  25952. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25953. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25954. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  25955. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25956. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25957. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25958. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25959. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25960. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25961. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25962. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25963. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25964. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25965. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25966. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  25967. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25968. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25969. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25970. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25971. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25972. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25973. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25974. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25975. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25976. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25977. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  25978. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25979. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25980. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25981. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25982. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25983. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25984. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25985. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25986. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  25987. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25988. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25989. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25990. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25991. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25992. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25993. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25994. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25995. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25996. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25997. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  25998. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25999. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26000. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26001. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26002. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26003. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26004. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26005. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26006. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  26007. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26008. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26009. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26010. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26011. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26012. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26013. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26014. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  26015. /* Backend Enablement */
  26016. {"BE_OUT", NULL, "PRI_I2S_RX"},
  26017. {"BE_OUT", NULL, "SEC_I2S_RX"},
  26018. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26019. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26020. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26021. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26022. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  26023. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  26024. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  26025. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  26026. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  26027. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  26028. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  26029. {"BE_OUT", NULL, "HDMI"},
  26030. {"BE_OUT", NULL, "DISPLAY_PORT"},
  26031. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  26032. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  26033. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  26034. {"BE_OUT", NULL, "MI2S_RX"},
  26035. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  26036. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  26037. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  26038. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  26039. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  26040. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  26041. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  26042. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  26043. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  26044. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  26045. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  26046. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  26047. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26048. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  26049. {"BE_OUT", NULL, "INT_FM_RX"},
  26050. {"BE_OUT", NULL, "PCM_RX"},
  26051. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26052. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26053. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  26054. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  26055. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  26056. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  26057. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  26058. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26059. {"BE_OUT", NULL, "INT_FM_RX"},
  26060. {"BE_OUT", NULL, "PCM_RX"},
  26061. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26062. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  26063. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  26064. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  26065. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  26066. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  26067. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  26068. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  26069. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  26070. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  26071. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  26072. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  26073. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  26074. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  26075. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  26076. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  26077. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  26078. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  26079. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  26080. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  26081. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  26082. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  26083. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  26084. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  26085. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  26086. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  26087. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  26088. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  26089. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  26090. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  26091. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  26092. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  26093. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  26094. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  26095. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  26096. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  26097. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  26098. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  26099. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  26100. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  26101. {"PRI_I2S_TX", NULL, "BE_IN"},
  26102. {"MI2S_TX", NULL, "BE_IN"},
  26103. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  26104. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  26105. {"PRI_MI2S_TX", NULL, "BE_IN"},
  26106. {"TERT_MI2S_TX", NULL, "BE_IN"},
  26107. {"INT0_MI2S_TX", NULL, "BE_IN"},
  26108. {"INT2_MI2S_TX", NULL, "BE_IN"},
  26109. {"INT3_MI2S_TX", NULL, "BE_IN"},
  26110. {"INT4_MI2S_TX", NULL, "BE_IN"},
  26111. {"INT5_MI2S_TX", NULL, "BE_IN"},
  26112. {"SEC_MI2S_TX", NULL, "BE_IN"},
  26113. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  26114. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  26115. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  26116. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  26117. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  26118. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  26119. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  26120. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  26121. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  26122. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  26123. {"USB_AUDIO_TX", NULL, "BE_IN" },
  26124. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  26125. {"INT_FM_TX", NULL, "BE_IN"},
  26126. {"PCM_TX", NULL, "BE_IN"},
  26127. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26128. {"BE_OUT", NULL, "STUB_RX"},
  26129. {"STUB_TX", NULL, "BE_IN"},
  26130. {"STUB_1_TX", NULL, "BE_IN"},
  26131. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26132. {"AUX_PCM_TX", NULL, "BE_IN"},
  26133. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  26134. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  26135. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  26136. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  26137. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  26138. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  26139. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  26140. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26141. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26142. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26143. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26144. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  26145. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  26146. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  26147. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  26148. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  26149. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  26150. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  26151. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  26152. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  26153. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  26154. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  26155. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  26156. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  26157. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  26158. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  26159. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  26160. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  26161. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  26162. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  26163. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  26164. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  26165. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  26166. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  26167. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  26168. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  26169. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  26170. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  26171. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  26172. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  26173. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  26174. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  26175. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  26176. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  26177. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  26178. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  26179. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  26180. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  26181. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26182. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26183. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26184. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26185. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26186. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26187. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  26188. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  26189. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  26190. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  26191. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  26192. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  26193. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  26194. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  26195. };
  26196. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  26197. struct snd_pcm_hw_params *params)
  26198. {
  26199. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26200. unsigned int be_id = rtd->dai_link->id;
  26201. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26202. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26203. return -EINVAL;
  26204. }
  26205. mutex_lock(&routing_lock);
  26206. msm_bedais[be_id].sample_rate = params_rate(params);
  26207. msm_bedais[be_id].channel = params_channels(params);
  26208. msm_bedais[be_id].format = params_format(params);
  26209. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  26210. __func__, msm_bedais[be_id].sample_rate,
  26211. msm_bedais[be_id].format, be_id);
  26212. mutex_unlock(&routing_lock);
  26213. return 0;
  26214. }
  26215. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  26216. {
  26217. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26218. unsigned int be_id = rtd->dai_link->id;
  26219. int i, session_type, path_type, topology;
  26220. struct msm_pcm_routing_bdai_data *bedai;
  26221. struct msm_pcm_routing_fdai_data *fdai;
  26222. pr_debug("%s: substream->pcm->id:%s\n",
  26223. __func__, substream->pcm->id);
  26224. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26225. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26226. return -EINVAL;
  26227. }
  26228. bedai = &msm_bedais[be_id];
  26229. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  26230. 0 : 1);
  26231. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  26232. path_type = ADM_PATH_PLAYBACK;
  26233. else
  26234. path_type = ADM_PATH_LIVE_REC;
  26235. mutex_lock(&routing_lock);
  26236. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26237. if (!is_mm_lsm_fe_id(i))
  26238. continue;
  26239. fdai = &fe_dai_map[i][session_type];
  26240. if (fdai->strm_id != INVALID_SESSION) {
  26241. int idx;
  26242. int port_id;
  26243. unsigned long copp =
  26244. session_copp_map[i][session_type][be_id];
  26245. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  26246. if (test_bit(idx, &copp))
  26247. break;
  26248. if (idx >= MAX_COPPS_PER_PORT) {
  26249. pr_debug("%s: copp idx is invalid, exiting\n",
  26250. __func__);
  26251. continue;
  26252. }
  26253. fdai->be_srate = bedai->sample_rate;
  26254. port_id = get_port_id(bedai->port_id);
  26255. topology = adm_get_topology_for_port_copp_idx(port_id,
  26256. idx);
  26257. msm_routing_unload_topology(topology);
  26258. adm_close(port_id, fdai->perf_mode, idx);
  26259. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  26260. __func__, copp, i, session_type, be_id,
  26261. topology);
  26262. clear_bit(idx,
  26263. &session_copp_map[i][session_type][be_id]);
  26264. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  26265. (fdai->passthr_mode == LEGACY_PCM))
  26266. msm_pcm_routing_deinit_pp(port_id,
  26267. topology);
  26268. }
  26269. }
  26270. bedai->active = 0;
  26271. bedai->sample_rate = 0;
  26272. bedai->channel = 0;
  26273. mutex_unlock(&routing_lock);
  26274. return 0;
  26275. }
  26276. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  26277. {
  26278. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26279. unsigned int be_id = rtd->dai_link->id;
  26280. int i, path_type, topology;
  26281. int session_type = INVALID_SESSION;
  26282. struct msm_pcm_routing_bdai_data *bedai;
  26283. u32 channels, sample_rate;
  26284. uint16_t bits_per_sample = 16, voc_path_type;
  26285. struct msm_pcm_routing_fdai_data *fdai;
  26286. u32 session_id;
  26287. struct media_format_info voc_be_media_format;
  26288. bool is_lsm;
  26289. pr_debug("%s: substream->pcm->id:%s\n",
  26290. __func__, substream->pcm->id);
  26291. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26292. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26293. return -EINVAL;
  26294. }
  26295. bedai = &msm_bedais[be_id];
  26296. mutex_lock(&routing_lock);
  26297. if (bedai->active == 1)
  26298. goto done; /* Ignore prepare if back-end already active */
  26299. /* AFE port is not active at this point. However, still
  26300. * go ahead setting active flag under the notion that
  26301. * QDSP6 is able to handle ADM starting before AFE port
  26302. * is started.
  26303. */
  26304. bedai->active = 1;
  26305. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26306. if (!(is_mm_lsm_fe_id(i) &&
  26307. route_check_fe_id_adm_support(i)))
  26308. continue;
  26309. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  26310. SESSION_TYPE_RX : SESSION_TYPE_TX;
  26311. fdai = &fe_dai_map[i][session_type];
  26312. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  26313. if (fdai->passthr_mode != LEGACY_PCM)
  26314. path_type = ADM_PATH_COMPRESSED_RX;
  26315. else
  26316. path_type = ADM_PATH_PLAYBACK;
  26317. } else {
  26318. if ((fdai->passthr_mode != LEGACY_PCM) &&
  26319. (fdai->passthr_mode != LISTEN))
  26320. path_type = ADM_PATH_COMPRESSED_TX;
  26321. else
  26322. path_type = ADM_PATH_LIVE_REC;
  26323. }
  26324. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  26325. (i <= MSM_FRONTEND_DAI_LSM8);
  26326. if (fdai->strm_id != INVALID_SESSION) {
  26327. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  26328. int port_id = get_port_id(bedai->port_id);
  26329. if (session_type == SESSION_TYPE_TX &&
  26330. fdai->be_srate &&
  26331. (fdai->be_srate != bedai->sample_rate)) {
  26332. pr_debug("%s: flush strm %d diff BE rates\n",
  26333. __func__,
  26334. fdai->strm_id);
  26335. if (fdai->event_info.event_func)
  26336. fdai->event_info.event_func(
  26337. MSM_PCM_RT_EVT_BUF_RECFG,
  26338. fdai->event_info.priv_data);
  26339. fdai->be_srate = 0; /* might not need it */
  26340. }
  26341. bits_per_sample = msm_routing_get_bit_width(
  26342. bedai->format);
  26343. app_type =
  26344. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  26345. if (app_type && is_lsm) {
  26346. app_type_idx =
  26347. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  26348. sample_rate =
  26349. fe_dai_app_type_cfg[i][session_type][be_id]
  26350. .sample_rate;
  26351. bits_per_sample =
  26352. lsm_app_type_cfg[app_type_idx].bit_width;
  26353. } else if (app_type) {
  26354. app_type_idx =
  26355. msm_pcm_routing_get_app_type_idx(app_type);
  26356. sample_rate =
  26357. fe_dai_app_type_cfg[i][session_type]
  26358. [be_id].sample_rate;
  26359. bits_per_sample =
  26360. app_type_cfg[app_type_idx].bit_width;
  26361. } else
  26362. sample_rate = bedai->sample_rate;
  26363. /*
  26364. * check if ADM needs to be configured with different
  26365. * channel mapping than backend
  26366. */
  26367. if (!bedai->adm_override_ch)
  26368. channels = bedai->channel;
  26369. else
  26370. channels = bedai->adm_override_ch;
  26371. acdb_dev_id =
  26372. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  26373. topology = msm_routing_get_adm_topology(i, session_type,
  26374. be_id);
  26375. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  26376. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  26377. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  26378. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  26379. copp_idx = adm_open(port_id, path_type,
  26380. sample_rate, channels, topology,
  26381. fdai->perf_mode, bits_per_sample,
  26382. app_type, acdb_dev_id,
  26383. session_type);
  26384. if ((copp_idx < 0) ||
  26385. (copp_idx >= MAX_COPPS_PER_PORT)) {
  26386. pr_err("%s: adm open failed\n", __func__);
  26387. mutex_unlock(&routing_lock);
  26388. return -EINVAL;
  26389. }
  26390. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  26391. __func__, i, session_type, be_id);
  26392. set_bit(copp_idx,
  26393. &session_copp_map[i][session_type][be_id]);
  26394. if (msm_is_resample_needed(
  26395. sample_rate,
  26396. bedai->sample_rate))
  26397. adm_copp_mfc_cfg(port_id, copp_idx,
  26398. bedai->sample_rate);
  26399. msm_pcm_routing_build_matrix(i, session_type, path_type,
  26400. fdai->perf_mode, fdai->passthr_mode);
  26401. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  26402. (fdai->passthr_mode == LEGACY_PCM))
  26403. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  26404. topology, channels);
  26405. }
  26406. }
  26407. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26408. session_id = msm_pcm_routing_get_voc_sessionid(i);
  26409. if (session_id) {
  26410. pr_debug("%s voice session_id: 0x%x\n", __func__,
  26411. session_id);
  26412. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  26413. voc_path_type = RX_PATH;
  26414. else
  26415. voc_path_type = TX_PATH;
  26416. voc_set_route_flag(session_id, voc_path_type, 1);
  26417. memset(&voc_be_media_format, 0,
  26418. sizeof(struct media_format_info));
  26419. voc_be_media_format.port_id = bedai->port_id;
  26420. voc_be_media_format.num_channels = bedai->channel;
  26421. voc_be_media_format.sample_rate = bedai->sample_rate;
  26422. voc_be_media_format.bits_per_sample = bedai->format;
  26423. /* Defaulting this to 1 for voice call usecases */
  26424. voc_be_media_format.channel_mapping[0] = 1;
  26425. voc_set_device_config(session_id, voc_path_type,
  26426. &voc_be_media_format);
  26427. if (voc_get_route_flag(session_id, RX_PATH) &&
  26428. voc_get_route_flag(session_id, TX_PATH))
  26429. voc_enable_device(session_id);
  26430. }
  26431. }
  26432. /* Check if backend is an external ec ref port and set as needed */
  26433. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  26434. memset(&voc_be_media_format, 0,
  26435. sizeof(struct media_format_info));
  26436. /* Get format info for ec ref port from msm_bedais[] */
  26437. voc_be_media_format.port_id = bedai->port_id;
  26438. voc_be_media_format.num_channels = bedai->channel;
  26439. voc_be_media_format.bits_per_sample = bedai->format;
  26440. voc_be_media_format.sample_rate = bedai->sample_rate;
  26441. /* Defaulting this to 1 for voice call usecases */
  26442. voc_be_media_format.channel_mapping[0] = 1;
  26443. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  26444. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  26445. __func__, voc_be_media_format.port_id,
  26446. voc_be_media_format.num_channels,
  26447. voc_be_media_format.bits_per_sample,
  26448. voc_be_media_format.sample_rate);
  26449. }
  26450. done:
  26451. mutex_unlock(&routing_lock);
  26452. return 0;
  26453. }
  26454. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  26455. int fe_id)
  26456. {
  26457. int index, topo_id, be_idx;
  26458. unsigned long pp_config = 0;
  26459. bool mute_on;
  26460. int latency, session_type;
  26461. bool compr_passthr_mode = true;
  26462. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  26463. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  26464. pr_err("%s: Device pp params on invalid port %d\n",
  26465. __func__, port_id);
  26466. return -EINVAL;
  26467. }
  26468. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  26469. if (port_id == msm_bedais[be_idx].port_id)
  26470. break;
  26471. }
  26472. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  26473. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  26474. return -EINVAL;
  26475. }
  26476. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  26477. if (msm_bedais_pp_params[index].port_id == port_id)
  26478. break;
  26479. }
  26480. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  26481. pr_err("%s: Invalid backend pp params index %d\n",
  26482. __func__, index);
  26483. return -EINVAL;
  26484. }
  26485. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  26486. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  26487. pr_err("%s: Invalid passthrough topology 0x%x\n",
  26488. __func__, topo_id);
  26489. return -EINVAL;
  26490. }
  26491. session_type =
  26492. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  26493. SESSION_TYPE_RX : SESSION_TYPE_TX;
  26494. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  26495. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  26496. compr_passthr_mode = false;
  26497. pp_config = msm_bedais_pp_params[index].pp_params_config;
  26498. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  26499. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  26500. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  26501. mute_on = msm_bedais_pp_params[index].mute_on;
  26502. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26503. adm_send_compressed_device_mute(port_id,
  26504. copp_idx,
  26505. mute_on);
  26506. }
  26507. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  26508. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  26509. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  26510. &pp_config);
  26511. latency = msm_bedais_pp_params[index].latency;
  26512. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26513. adm_send_compressed_device_latency(port_id,
  26514. copp_idx,
  26515. latency);
  26516. }
  26517. return 0;
  26518. }
  26519. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  26520. {
  26521. uint32_t topology = NULL_COPP_TOPOLOGY;
  26522. void *cal_info = NULL;
  26523. uint32_t size = 0;
  26524. /* Retrieve cal_info size from cal data*/
  26525. if (data_size < sizeof(struct audio_cal_type_basic) +
  26526. sizeof(struct audio_cal_info_adm_top)) {
  26527. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  26528. goto done;
  26529. }
  26530. size = data_size - sizeof(struct audio_cal_type_basic);
  26531. cal_info = kzalloc(size, GFP_KERNEL);
  26532. if (!cal_info)
  26533. goto done;
  26534. memcpy(cal_info,
  26535. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  26536. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  26537. kfree(cal_info);
  26538. cal_info = NULL;
  26539. done:
  26540. pr_debug("%s: Using topology %d\n", __func__, topology);
  26541. return topology;
  26542. }
  26543. static void msm_routing_load_topology(size_t data_size, void *data)
  26544. {
  26545. uint32_t topology_id;
  26546. int ret = -EINVAL;
  26547. topology_id = msm_routing_get_topology(data_size, data);
  26548. if (topology_id != NULL_COPP_TOPOLOGY)
  26549. ret = q6core_load_unload_topo_modules(topology_id,
  26550. CORE_LOAD_TOPOLOGY);
  26551. if (ret < 0)
  26552. pr_debug("%s %d load topology failed\n",
  26553. __func__, topology_id);
  26554. }
  26555. static void msm_routing_unload_topology(uint32_t topology_id)
  26556. {
  26557. int ret = -EINVAL;
  26558. if (topology_id != NULL_COPP_TOPOLOGY)
  26559. ret = q6core_load_unload_topo_modules(topology_id,
  26560. CORE_UNLOAD_TOPOLOGY);
  26561. if (ret < 0)
  26562. pr_debug("%s %d unload topology failed\n",
  26563. __func__, topology_id);
  26564. }
  26565. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  26566. struct snd_ctl_elem_value *ucontrol)
  26567. {
  26568. int pp_id = ucontrol->value.integer.value[0];
  26569. int port_id = 0;
  26570. int index, be_idx, i, topo_id, idx;
  26571. bool mute;
  26572. int latency, session_type;
  26573. bool compr_passthr_mode = true;
  26574. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  26575. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  26576. port_id = msm_bedais[be_idx].port_id;
  26577. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  26578. break;
  26579. }
  26580. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  26581. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  26582. return -EINVAL;
  26583. }
  26584. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  26585. if (msm_bedais_pp_params[index].port_id == port_id)
  26586. break;
  26587. }
  26588. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  26589. pr_err("%s: Invalid pp params backend index %d\n",
  26590. __func__, index);
  26591. return -EINVAL;
  26592. }
  26593. session_type =
  26594. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  26595. SESSION_TYPE_RX : SESSION_TYPE_TX;
  26596. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  26597. MSM_FRONTEND_DAI_MM_SIZE) {
  26598. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  26599. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  26600. compr_passthr_mode = false;
  26601. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  26602. unsigned long copp =
  26603. session_copp_map[i]
  26604. [SESSION_TYPE_RX][be_idx];
  26605. if (!test_bit(idx, &copp))
  26606. continue;
  26607. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  26608. idx);
  26609. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  26610. continue;
  26611. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  26612. __func__, port_id, copp, msm_bedais[be_idx].active,
  26613. fe_dai_map[i][session_type].passthr_mode);
  26614. switch (pp_id) {
  26615. case ADM_PP_PARAM_MUTE_ID:
  26616. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  26617. mute = ucontrol->value.integer.value[1] ? true : false;
  26618. msm_bedais_pp_params[index].mute_on = mute;
  26619. set_bit(ADM_PP_PARAM_MUTE_BIT,
  26620. &msm_bedais_pp_params[index].pp_params_config);
  26621. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26622. adm_send_compressed_device_mute(port_id,
  26623. idx, mute);
  26624. break;
  26625. case ADM_PP_PARAM_LATENCY_ID:
  26626. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  26627. msm_bedais_pp_params[index].latency =
  26628. ucontrol->value.integer.value[1];
  26629. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  26630. &msm_bedais_pp_params[index].pp_params_config);
  26631. latency = msm_bedais_pp_params[index].latency =
  26632. ucontrol->value.integer.value[1];
  26633. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26634. adm_send_compressed_device_latency(port_id,
  26635. idx, latency);
  26636. break;
  26637. default:
  26638. pr_info("%s, device pp param %d not supported\n",
  26639. __func__, pp_id);
  26640. break;
  26641. }
  26642. }
  26643. }
  26644. return 0;
  26645. }
  26646. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  26647. struct snd_ctl_elem_value *ucontrol)
  26648. {
  26649. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  26650. return 0;
  26651. }
  26652. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  26653. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  26654. 0, 3, msm_routing_get_device_pp_params_mixer,
  26655. msm_routing_put_device_pp_params_mixer),
  26656. };
  26657. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  26658. struct snd_ctl_elem_value *ucontrol)
  26659. {
  26660. ucontrol->value.integer.value[0] =
  26661. core_get_license_status(ASM_MEDIA_FMT_APTX);
  26662. pr_debug("%s: status %ld\n", __func__,
  26663. ucontrol->value.integer.value[0]);
  26664. return 0;
  26665. }
  26666. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  26667. struct snd_ctl_elem_value *ucontrol)
  26668. {
  26669. int32_t status = 0;
  26670. status = core_set_license(ucontrol->value.integer.value[0],
  26671. APTX_CLASSIC_DEC_LICENSE_ID);
  26672. pr_debug("%s: status %d\n", __func__, status);
  26673. return status;
  26674. }
  26675. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  26676. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  26677. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  26678. msm_aptx_dec_license_control_put),
  26679. };
  26680. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  26681. struct snd_ctl_elem_value *ucontrol)
  26682. {
  26683. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  26684. uint32_t be_idx = ucontrol->value.integer.value[0];
  26685. int i;
  26686. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  26687. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  26688. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  26689. pr_err("%s: Invalid channel map %d\n",
  26690. __func__, channel_map[i]);
  26691. return -EINVAL;
  26692. }
  26693. }
  26694. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  26695. return 0;
  26696. }
  26697. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  26698. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  26699. MSM_BACKEND_DAI_MAX, 0,
  26700. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  26701. msm_routing_put_port_chmap_mixer),
  26702. };
  26703. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  26704. struct snd_ctl_elem_info *uinfo)
  26705. {
  26706. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  26707. uinfo->count = sizeof(be_dai_name_table);
  26708. return 0;
  26709. }
  26710. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  26711. unsigned int __user *bytes,
  26712. unsigned int size)
  26713. {
  26714. int i;
  26715. int ret = 0;
  26716. if (size < sizeof(be_dai_name_table)) {
  26717. pr_err("%s: invalid size %d requested, returning\n",
  26718. __func__, size);
  26719. ret = -EINVAL;
  26720. goto done;
  26721. }
  26722. /*
  26723. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  26724. * needed when adding new backends
  26725. */
  26726. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  26727. be_dai_name_table[i].be_id = i;
  26728. strlcpy(be_dai_name_table[i].be_name,
  26729. msm_bedais[i].name,
  26730. LPASS_BE_NAME_MAX_LENGTH);
  26731. }
  26732. ret = copy_to_user(bytes, &be_dai_name_table,
  26733. sizeof(be_dai_name_table));
  26734. if (ret) {
  26735. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  26736. ret = -EFAULT;
  26737. }
  26738. done:
  26739. return ret;
  26740. }
  26741. static const struct snd_kcontrol_new
  26742. msm_routing_be_dai_name_table_mixer_controls[] = {
  26743. {
  26744. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  26745. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  26746. .info = msm_routing_be_dai_name_table_info,
  26747. .name = "Backend DAI Name Table",
  26748. .tlv.c = snd_soc_bytes_tlv_callback,
  26749. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  26750. .max = sizeof(be_dai_name_table),
  26751. .get = msm_routing_be_dai_name_table_tlv_get,
  26752. }
  26753. },
  26754. };
  26755. static int msm_routing_stereo_channel_reverse_control_get(
  26756. struct snd_kcontrol *kcontrol,
  26757. struct snd_ctl_elem_value *ucontrol)
  26758. {
  26759. ucontrol->value.integer.value[0] = swap_ch;
  26760. pr_debug("%s: Swap channel value: %ld\n", __func__,
  26761. ucontrol->value.integer.value[0]);
  26762. return 0;
  26763. }
  26764. static int msm_routing_stereo_channel_reverse_control_put(
  26765. struct snd_kcontrol *kcontrol,
  26766. struct snd_ctl_elem_value *ucontrol)
  26767. {
  26768. int i, idx, be_index, port_id;
  26769. int ret = 0;
  26770. unsigned long copp;
  26771. pr_debug("%s Swap channel value:%ld\n", __func__,
  26772. ucontrol->value.integer.value[0]);
  26773. swap_ch = ucontrol->value.integer.value[0];
  26774. mutex_lock(&routing_lock);
  26775. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  26776. port_id = msm_bedais[be_index].port_id;
  26777. if (!msm_bedais[be_index].active)
  26778. continue;
  26779. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  26780. MSM_FRONTEND_DAI_MM_SIZE) {
  26781. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  26782. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  26783. if (!test_bit(idx, &copp))
  26784. continue;
  26785. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  26786. __func__, port_id, idx);
  26787. ret = adm_swap_speaker_channels(
  26788. port_id, idx,
  26789. msm_bedais[be_index].sample_rate,
  26790. swap_ch);
  26791. if (ret) {
  26792. pr_err("%s:Swap_channel failed, err=%d\n",
  26793. __func__, ret);
  26794. goto done;
  26795. }
  26796. }
  26797. }
  26798. }
  26799. done:
  26800. mutex_unlock(&routing_lock);
  26801. return ret;
  26802. }
  26803. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  26804. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  26805. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  26806. msm_routing_stereo_channel_reverse_control_put),
  26807. };
  26808. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  26809. struct snd_ctl_elem_info *uinfo)
  26810. {
  26811. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  26812. uinfo->count = 1;
  26813. return 0;
  26814. }
  26815. static int msm_routing_instance_id_support_put(
  26816. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  26817. {
  26818. bool supported = ucontrol->value.integer.value[0] ? true : false;
  26819. q6common_update_instance_id_support(supported);
  26820. return 0;
  26821. }
  26822. static int msm_routing_instance_id_support_get(
  26823. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  26824. {
  26825. bool supported = false;
  26826. supported = q6common_is_instance_id_supported();
  26827. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  26828. return 0;
  26829. }
  26830. static const struct snd_kcontrol_new
  26831. msm_routing_feature_support_mixer_controls[] = {
  26832. {
  26833. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  26834. SNDRV_CTL_ELEM_ACCESS_WRITE,
  26835. .info = msm_routing_instance_id_support_info,
  26836. .name = "Instance ID Support",
  26837. .put = msm_routing_instance_id_support_put,
  26838. .get = msm_routing_instance_id_support_get,
  26839. },
  26840. };
  26841. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  26842. .hw_params = msm_pcm_routing_hw_params,
  26843. .close = msm_pcm_routing_close,
  26844. .prepare = msm_pcm_routing_prepare,
  26845. };
  26846. /* Not used but frame seems to require it */
  26847. static int msm_routing_probe(struct snd_soc_component *component)
  26848. {
  26849. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  26850. ARRAY_SIZE(msm_qdsp6_widgets));
  26851. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  26852. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  26853. snd_soc_dapm_add_routes(&component->dapm, intercon,
  26854. ARRAY_SIZE(intercon));
  26855. snd_soc_dapm_new_widgets(component->dapm.card);
  26856. snd_soc_add_component_controls(component, lsm_controls,
  26857. ARRAY_SIZE(lsm_controls));
  26858. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  26859. ARRAY_SIZE(aanc_slim_0_rx_mux));
  26860. snd_soc_add_component_controls(component, aanc_noise_level,
  26861. ARRAY_SIZE(aanc_noise_level));
  26862. snd_soc_add_component_controls(component, msm_voc_session_controls,
  26863. ARRAY_SIZE(msm_voc_session_controls));
  26864. snd_soc_add_component_controls(component, app_type_cfg_controls,
  26865. ARRAY_SIZE(app_type_cfg_controls));
  26866. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  26867. ARRAY_SIZE(lsm_app_type_cfg_controls));
  26868. snd_soc_add_component_controls(component, module_cfg_controls,
  26869. ARRAY_SIZE(module_cfg_controls));
  26870. snd_soc_add_component_controls(component,
  26871. stereo_to_custom_stereo_controls,
  26872. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  26873. snd_soc_add_component_controls(component, ec_ref_param_controls,
  26874. ARRAY_SIZE(ec_ref_param_controls));
  26875. snd_soc_add_component_controls(component, channel_mixer_controls,
  26876. ARRAY_SIZE(channel_mixer_controls));
  26877. msm_qti_pp_add_controls(component);
  26878. msm_dts_srs_tm_add_controls(component);
  26879. msm_dolby_dap_add_controls(component);
  26880. snd_soc_add_component_controls(component,
  26881. use_ds1_or_ds2_controls,
  26882. ARRAY_SIZE(use_ds1_or_ds2_controls));
  26883. snd_soc_add_component_controls(component,
  26884. device_pp_params_mixer_controls,
  26885. ARRAY_SIZE(device_pp_params_mixer_controls));
  26886. snd_soc_add_component_controls(component,
  26887. msm_routing_be_dai_name_table_mixer_controls,
  26888. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  26889. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  26890. ARRAY_SIZE(msm_source_tracking_controls));
  26891. snd_soc_add_component_controls(component, adm_channel_config_controls,
  26892. ARRAY_SIZE(adm_channel_config_controls));
  26893. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  26894. ARRAY_SIZE(aptx_dec_license_controls));
  26895. snd_soc_add_component_controls(component,
  26896. stereo_channel_reverse_control,
  26897. ARRAY_SIZE(stereo_channel_reverse_control));
  26898. snd_soc_add_component_controls(
  26899. component, msm_routing_feature_support_mixer_controls,
  26900. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  26901. snd_soc_add_component_controls(component,
  26902. port_multi_channel_map_mixer_controls,
  26903. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  26904. return 0;
  26905. }
  26906. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  26907. {
  26908. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  26909. }
  26910. void msm_routing_pcm_free(struct snd_pcm *pcm)
  26911. {
  26912. msm_pcm_routing_hwdep_free(pcm);
  26913. }
  26914. static struct snd_soc_component_driver msm_soc_routing_component = {
  26915. .name = DRV_NAME,
  26916. .ops = &msm_routing_pcm_ops,
  26917. .probe = msm_routing_probe,
  26918. .pcm_new = msm_routing_pcm_new,
  26919. .pcm_free = msm_routing_pcm_free,
  26920. };
  26921. static int msm_routing_pcm_probe(struct platform_device *pdev)
  26922. {
  26923. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  26924. return snd_soc_register_component(&pdev->dev,
  26925. &msm_soc_routing_component,
  26926. NULL, 0);
  26927. }
  26928. static int msm_routing_pcm_remove(struct platform_device *pdev)
  26929. {
  26930. snd_soc_unregister_component(&pdev->dev);
  26931. return 0;
  26932. }
  26933. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  26934. {.compatible = "qcom,msm-pcm-routing"},
  26935. {}
  26936. };
  26937. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  26938. static struct platform_driver msm_routing_pcm_driver = {
  26939. .driver = {
  26940. .name = "msm-pcm-routing",
  26941. .owner = THIS_MODULE,
  26942. .of_match_table = msm_pcm_routing_dt_match,
  26943. .suppress_bind_attrs = true,
  26944. },
  26945. .probe = msm_routing_pcm_probe,
  26946. .remove = msm_routing_pcm_remove,
  26947. };
  26948. int msm_routing_check_backend_enabled(int fedai_id)
  26949. {
  26950. int i;
  26951. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  26952. /* bad ID assigned in machine driver */
  26953. pr_err("%s: bad MM ID\n", __func__);
  26954. return 0;
  26955. }
  26956. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  26957. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  26958. return msm_bedais[i].active;
  26959. }
  26960. return 0;
  26961. }
  26962. static int get_cal_type_index(int32_t cal_type)
  26963. {
  26964. int ret = -EINVAL;
  26965. switch (cal_type) {
  26966. case ADM_TOPOLOGY_CAL_TYPE:
  26967. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  26968. break;
  26969. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  26970. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  26971. break;
  26972. default:
  26973. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  26974. }
  26975. return ret;
  26976. }
  26977. static int msm_routing_set_cal(int32_t cal_type,
  26978. size_t data_size, void *data)
  26979. {
  26980. int ret = 0;
  26981. int cal_index;
  26982. pr_debug("%s\n", __func__);
  26983. cal_index = get_cal_type_index(cal_type);
  26984. if (cal_index < 0) {
  26985. pr_err("%s: Could not get cal index %d\n",
  26986. __func__, cal_index);
  26987. ret = -EINVAL;
  26988. goto done;
  26989. }
  26990. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  26991. if (ret < 0) {
  26992. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  26993. __func__, ret, cal_type);
  26994. ret = -EINVAL;
  26995. goto done;
  26996. }
  26997. /* Pre-load if it is ADM topology */
  26998. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  26999. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  27000. msm_routing_load_topology(data_size, data);
  27001. }
  27002. done:
  27003. return ret;
  27004. }
  27005. static void msm_routing_delete_cal_data(void)
  27006. {
  27007. pr_debug("%s\n", __func__);
  27008. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  27009. }
  27010. static int msm_routing_init_cal_data(void)
  27011. {
  27012. int ret = 0;
  27013. struct cal_type_info cal_type_info[] = {
  27014. {{ADM_TOPOLOGY_CAL_TYPE,
  27015. {NULL, NULL, NULL,
  27016. msm_routing_set_cal, NULL, NULL} },
  27017. {NULL, NULL, cal_utils_match_buf_num} },
  27018. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  27019. {NULL, NULL, NULL,
  27020. msm_routing_set_cal, NULL, NULL} },
  27021. {NULL, NULL, cal_utils_match_buf_num} },
  27022. };
  27023. pr_debug("%s\n", __func__);
  27024. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  27025. &cal_type_info[0]);
  27026. if (ret < 0) {
  27027. pr_err("%s: could not create cal type!\n",
  27028. __func__);
  27029. ret = -EINVAL;
  27030. goto err;
  27031. }
  27032. return ret;
  27033. err:
  27034. msm_routing_delete_cal_data();
  27035. return ret;
  27036. }
  27037. int __init msm_soc_routing_platform_init(void)
  27038. {
  27039. mutex_init(&routing_lock);
  27040. if (msm_routing_init_cal_data())
  27041. pr_err("%s: could not init cal data!\n", __func__);
  27042. afe_set_routing_callback(
  27043. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  27044. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  27045. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  27046. return platform_driver_register(&msm_routing_pcm_driver);
  27047. }
  27048. void msm_soc_routing_platform_exit(void)
  27049. {
  27050. msm_routing_delete_cal_data();
  27051. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  27052. mutex_destroy(&routing_lock);
  27053. platform_driver_unregister(&msm_routing_pcm_driver);
  27054. }
  27055. MODULE_DESCRIPTION("MSM routing platform driver");
  27056. MODULE_LICENSE("GPL v2");